diff --git a/README.md b/README.md deleted file mode 100644 index 94d4cd5..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-mac - -The rust-mac package \ No newline at end of file diff --git a/rust-mac.spec b/rust-mac.spec index 6ab1a20..eee4baf 100644 --- a/rust-mac.spec +++ b/rust-mac.spec @@ -1,30 +1,26 @@ -# Generated by rust2rpm 10 -# * https://github.com/reem/rust-mac/issues/15 +# Generated by rust2rpm 24 +# * tests fail to compile with recent versions of Rust: +# https://github.com/reem/rust-mac/issues/15 %bcond_with check %global debug_package %{nil} %global crate mac -Name: rust-%{crate} +Name: rust-mac Version: 0.1.1 Release: %autorelease Summary: Collection of great and ubiqutitous macros # Upstream license specification: MIT/Apache-2.0 # https://github.com/reem/rust-mac/issues/14 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/mac Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Collection of great and ubiqutitous macros.} +A collection of great and ubiqutitous macros.} %description %{_description} @@ -34,12 +30,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 -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +43,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}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1