diff --git a/.gitignore b/.gitignore index b3d78c3..e6b5a0c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /procfs-0.8.1.crate /procfs-0.9.0.crate /procfs-0.9.1.crate +/procfs-0.12.0.crate diff --git a/rust-procfs.spec b/rust-procfs.spec index 62edbb2..dc21172 100644 --- a/rust-procfs.spec +++ b/rust-procfs.spec @@ -1,26 +1,22 @@ -# Generated by rust2rpm 16 -# * procinfo depends on nom 2.x which is too old +# Generated by rust2rpm 22 +# * missing dev-dependency: procinfo (depends on outdated nom 2) %bcond_with check %global debug_package %{nil} %global crate procfs -Name: rust-%{crate} -Version: 0.9.1 +Name: rust-procfs +Version: 0.12.0 Release: %autorelease Summary: Interface to the linux procfs pseudo-filesystem -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/procfs Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Interface to the linux procfs pseudo-filesystem.} @@ -33,13 +29,16 @@ 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 COPYRIGHT.txt -%doc README.md support.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYRIGHT.txt +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/support.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +46,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}+backtrace-devel Summary: %{summary} @@ -59,11 +58,11 @@ BuildArch: noarch %description -n %{name}+backtrace-devel %{_description} -This package contains library source intended for building other packages -which use "backtrace" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "backtrace" feature of the "%{crate}" crate. %files -n %{name}+backtrace-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chrono-devel Summary: %{summary} @@ -71,11 +70,23 @@ BuildArch: noarch %description -n %{name}+chrono-devel %{_description} -This package contains library source intended for building other packages -which use "chrono" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "chrono" feature of the "%{crate}" crate. %files -n %{name}+chrono-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+flate2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+flate2-devel %{_description} + +This package contains library source intended for building other packages which +use the "flate2" feature of the "%{crate}" crate. + +%files -n %{name}+flate2-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 6d08a82..2da3a28 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (procfs-0.9.1.crate) = 9946c82b85dcaa53b0f0d98e48fe764b1f196f850eef29ac8abd1f7732c3200fbcf40b616186da43eef7ad8acdb288f5350a0ff176ceb338135f3d2ce38cbbbb +SHA512 (procfs-0.12.0.crate) = 48bdd24c0514dd9a4a16be492085d9b6be41b81333b5dfc99cf0f04e337a532dee5d50b4317ae450f396924364f00b01fcd3b63e655ad50e53eb222f29a90499