diff --git a/README.md b/README.md deleted file mode 100644 index 5021daf..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-permutohedron - -The rust-permutohedron package \ No newline at end of file diff --git a/rust-permutohedron.spec b/rust-permutohedron.spec index c489a6a..b87e0de 100644 --- a/rust-permutohedron.spec +++ b/rust-permutohedron.spec @@ -1,26 +1,25 @@ -# Generated by rust2rpm +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate permutohedron -Name: rust-%{crate} +Name: rust-permutohedron Version: 0.2.4 Release: %autorelease Summary: Generate permutations of sequences # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/permutohedron -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} -ExclusiveArch: %{rust_arches} +BuildRequires: rust-packaging >= 21 -BuildRequires: rust-packaging - -%global _description \ -Generate permutations of sequences. Either lexicographical order permutations,\ -or a minimal swaps permutation sequence implemented using Heap's algorithm. +%global _description %{expand: +Generate permutations of sequences. Either lexicographical order +permutations, or a minimal swaps permutation sequence implemented using +Heap's algorithm.} %description %{_description} @@ -30,13 +29,14 @@ 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 LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,custom.css} +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.rst +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -44,11 +44,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 %package -n %{name}+std-devel Summary: %{summary} @@ -56,16 +56,19 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build