diff --git a/README.md b/README.md deleted file mode 100644 index 720ff2e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-approx - -The rust-approx package \ No newline at end of file diff --git a/rust-approx.spec b/rust-approx.spec index fa619d3..819eb5e 100644 --- a/rust-approx.spec +++ b/rust-approx.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate approx -Name: rust-%{crate} +Name: rust-approx Version: 0.5.1 Release: %autorelease Summary: Approximate floating point equality comparisons and assertions -# Upstream license specification: Apache-2.0 -License: ASL 2.0 +License: Apache-2.0 URL: https://crates.io/crates/approx Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Approximate floating point equality comparisons and assertions.} @@ -33,9 +30,9 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +44,7 @@ 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}+num-complex-devel Summary: %{summary} @@ -59,7 +56,7 @@ This package contains library source intended for building other packages which use the "num-complex" feature of the "%{crate}" crate. %files -n %{name}+num-complex-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -71,7 +68,7 @@ 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_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1