diff --git a/README.md b/README.md deleted file mode 100644 index 351909b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-git-version-macro - -The rust-git-version-macro package diff --git a/rust-git-version-macro.spec b/rust-git-version-macro.spec index 41add6c..57f104c 100644 --- a/rust-git-version-macro.spec +++ b/rust-git-version-macro.spec @@ -1,26 +1,20 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 # * tests can only be run inside the upstream git repository %bcond_with check %global debug_package %{nil} %global crate git-version-macro -Name: rust-%{crate} +Name: rust-git-version-macro Version: 0.3.5 Release: %autorelease Summary: Internal macro crate for git-version -# Upstream license specification: BSD-2-Clause -License: BSD +License: BSD-2-Clause URL: https://crates.io/crates/git-version-macro Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Internal macro crate for git-version.} @@ -33,12 +27,12 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license COPYING -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYING +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +40,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nightly-devel Summary: %{summary} @@ -58,11 +52,11 @@ BuildArch: noarch %description -n %{name}+nightly-devel %{_description} -This package contains library source intended for building other packages -which use "nightly" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "nightly" feature of the "%{crate}" crate. %files -n %{name}+nightly-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1