diff --git a/.gitignore b/.gitignore index 7581914..3f24242 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /ipnet-2.2.0.crate /ipnet-2.3.0.crate /ipnet-2.3.1.crate +/ipnet-2.4.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..e713601 --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,4 @@ +[DEFAULT] +unwanted-features = + json + schemars diff --git a/rust-ipnet.spec b/rust-ipnet.spec index cb85952..99d9626 100644 --- a/rust-ipnet.spec +++ b/rust-ipnet.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate ipnet Name: rust-%{crate} -Version: 2.3.1 +Version: 2.4.0 Release: %autorelease Summary: Provides types and useful methods for working with IP prefixes @@ -15,11 +15,8 @@ URL: https://crates.io/crates/ipnet Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Provides types and useful methods for working with IPv4 and IPv6 network @@ -39,13 +36,15 @@ 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-MIT LICENSE-APACHE -%doc README.md RELEASES.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/RELEASES.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -53,11 +52,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}+serde-devel Summary: %{summary} @@ -65,11 +64,11 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 658834d..550b6e6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ipnet-2.3.1.crate) = db74ad4850e61b20b5280d0637a33a0a1dc2e3388bda38efbbdc221c04dfe04d304d57c3704fa68a824e65e8a3bdea2e743b2d0c2d06b1a8710c192cec1b6100 +SHA512 (ipnet-2.4.0.crate) = 8658cf15c500969f58b3515cca0f7d055b6060cc2978121f184d51e2ea7eb876fd36a947b41939a0d9929ce492b377d3502d69507ffe3f08507ca597eee2b689