templates: drop unused %crate macro definition from "project" specs
This commit is contained in:
parent
54ccda4190
commit
2466b6abc4
12 changed files with 6 additions and 24 deletions
|
@ -164,7 +164,6 @@
|
|||
|
||||
| parameter name | type | value |
|
||||
| ------------------ | --------------- | --------------------------------------------------------- |
|
||||
| `crate_name` | `str` | crate name (from `Cargo.toml` metadata) |
|
||||
| `crate_version` | `str` | crate version (from `Cargo.toml` metadata, SemVer format) |
|
||||
| `crate_license` | `Optional[str]` | crate license (from `Cargo.toml` metadata) |
|
||||
| `upstream_version` | `str` | upstream crate version (from `crates.io`) |
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
%global crate {{ crate_name }}
|
||||
{% if crate_version != rpm_version %}
|
||||
%global crate_version {{ crate_version }}
|
||||
{% endif %}
|
||||
{% if crate_version != upstream_version %}
|
||||
{% elif crate_version != upstream_version %}
|
||||
%global upstream_version {{ upstream_version }}
|
||||
{% endif %}
|
||||
{% if conf_supported_arches %}
|
||||
|
|
|
@ -13,12 +13,11 @@
|
|||
|
||||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate {{ crate_name }}
|
||||
{% if crate_version != rpm_version %}
|
||||
|
||||
%global crate_version {{ crate_version }}
|
||||
{% endif %}
|
||||
{% if crate_version != upstream_version %}
|
||||
{% elif crate_version != upstream_version %}
|
||||
|
||||
%global upstream_version {{ upstream_version }}
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -10,10 +10,11 @@
|
|||
{% endif %}
|
||||
%bcond_with check
|
||||
{% endif %}
|
||||
|
||||
{% if rpm_version != upstream_version %}
|
||||
|
||||
%global upstream_version {{ upstream_version }}
|
||||
{% endif %}
|
||||
|
||||
Name: {{ rpm_name }}
|
||||
Version: {{ rpm_version }}
|
||||
Release: {{ rpm_release }}
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate rust2rpm-helper
|
||||
|
||||
Name: rust2rpm-helper
|
||||
Version: 0.1.3
|
||||
Release: %autorelease
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate rust2rpm-helper
|
||||
|
||||
Name: rust2rpm-helper
|
||||
Version: 0.1.3
|
||||
Release: %mkrel 1
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate rust2rpm-helper
|
||||
|
||||
Name: rust2rpm-helper
|
||||
Version: 0.1.3
|
||||
Release: 0
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate rust2rpm-helper
|
||||
|
||||
Name: rust2rpm-helper
|
||||
Version: 0.1.3
|
||||
Release: 1%{?dist}
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate stgit
|
||||
|
||||
Name: stgit
|
||||
Version: 2.3.3
|
||||
Release: %autorelease
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate stgit
|
||||
|
||||
Name: stgit
|
||||
Version: 2.3.3
|
||||
Release: %mkrel 1
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate stgit
|
||||
|
||||
Name: stgit
|
||||
Version: 2.3.3
|
||||
Release: 0
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# prevent library files from being installed
|
||||
%global cargo_install_lib 0
|
||||
|
||||
%global crate stgit
|
||||
|
||||
Name: stgit
|
||||
Version: 2.3.3
|
||||
Release: 1%{?dist}
|
||||
|
|
Loading…
Reference in a new issue