diff --git a/.gitignore b/.gitignore index 864b341..72f5a4e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /ipnet-2.7.1.crate /ipnet-2.7.2.crate /ipnet-2.8.0.crate +/ipnet-2.9.0.crate diff --git a/rust-ipnet.spec b/rust-ipnet.spec index 5288b0f..b451eae 100644 --- a/rust-ipnet.spec +++ b/rust-ipnet.spec @@ -1,19 +1,19 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate ipnet Name: rust-ipnet -Version: 2.8.0 +Version: 2.9.0 Release: %autorelease -Summary: Provides types and useful methods for working with IP prefixes +Summary: Types and useful methods for working with IP prefixes License: MIT OR Apache-2.0 URL: https://crates.io/crates/ipnet Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Provides types and useful methods for working with IPv4 and IPv6 network @@ -55,6 +55,30 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+heapless-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+heapless-devel %{_description} + +This package contains library source intended for building other packages which +use the "heapless" feature of the "%{crate}" crate. + +%files -n %{name}+heapless-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+ser_as_str-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ser_as_str-devel %{_description} + +This package contains library source intended for building other packages which +use the "ser_as_str" feature of the "%{crate}" crate. + +%files -n %{name}+ser_as_str-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch @@ -80,7 +104,7 @@ use the "std" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index e713601..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,4 +0,0 @@ -[DEFAULT] -unwanted-features = - json - schemars diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..794fbbe --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +summary = "Types and useful methods for working with IP prefixes" + +[features] +hide = ["json", "schemars"] + diff --git a/sources b/sources index c8fdcf5..098e75f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ipnet-2.8.0.crate) = 18773715f0acad731885e551a402432a6fb29f120575ddde380cd8af8d332acf2b5be4657d1a321ae7a6226fa0ae58feb6ac295b6e4cd255144465c2ea2c0692 +SHA512 (ipnet-2.9.0.crate) = 8ce429ba2bae53cfdaf8a7d6bf980e10b9dd515446ef3ed4e4e11432043a18e09454260567419818f523bc589fc367194bc345660f2cc808d281db235d3e0b54