diff --git a/.gitignore b/.gitignore index 47d3488..d06fe80 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /bzip2-0.3.3.crate /bzip2-0.4.2.crate /bzip2-0.4.3.crate +/bzip2-0.4.4.crate diff --git a/rust-bzip2.spec b/rust-bzip2.spec index 9eb0724..d6f367e 100644 --- a/rust-bzip2.spec +++ b/rust-bzip2.spec @@ -1,26 +1,21 @@ -# Generated by rust2rpm 17 -# * partial-io is too new in Fedora +# Generated by rust2rpm 23 +# * dev-dependencies are outdated %bcond_with check %global debug_package %{nil} %global crate bzip2 -Name: rust-%{crate} -Version: 0.4.3 +Name: rust-bzip2 +Version: 0.4.4 Release: %autorelease -Summary: Bindings to libbzip2 for bzip2 exposed as Reader/Writer streams +Summary: Bindings to libbzip2 exposed as Reader/Writer streams # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/bzip2 Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Bindings to libbzip2 for bzip2 compression and decompression exposed as @@ -34,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-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,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_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-devel Summary: %{summary} @@ -60,11 +56,11 @@ BuildArch: noarch %description -n %{name}+futures-devel %{_description} -This package contains library source intended for building other packages -which use "futures" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "futures" feature of the "%{crate}" crate. %files -n %{name}+futures-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} @@ -72,11 +68,11 @@ BuildArch: noarch %description -n %{name}+tokio-devel %{_description} -This package contains library source intended for building other packages -which use "tokio" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-io-devel Summary: %{summary} @@ -84,11 +80,11 @@ BuildArch: noarch %description -n %{name}+tokio-io-devel %{_description} -This package contains library source intended for building other packages -which use "tokio-io" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "tokio-io" feature of the "%{crate}" crate. %files -n %{name}+tokio-io-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/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index 9d4440f..339e629 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bzip2-0.4.3.crate) = 2d4622c336f204ab28970ccb369ba55829bfea426bfe96f15da376f2375c441a9bfb03c46f5da210990f23115740250cc15e9036309034b39a1c960dca542da2 +SHA512 (bzip2-0.4.4.crate) = 9cd2b9159bd0b42ac908ecad41f0a737272af94ae0d6dcfe182d2f44bcea4632d32b0456f02322047ea9d6f46377db6cd083f468782bccd6126bcc75cb852555