diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..425852c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bzip2-0.3.3.crate diff --git a/rust-bzip2.spec b/rust-bzip2.spec new file mode 100644 index 0000000..a960f73 --- /dev/null +++ b/rust-bzip2.spec @@ -0,0 +1,115 @@ +# Generated by rust2rpm 13 + +# not all test dependencies are packaged yet +%bcond_with check + +%global debug_package %{nil} + +%global crate bzip2 + +Name: rust-%{crate} +Version: 0.3.3 +Release: 1%{?dist} +Summary: Bindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/bzip2 +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Bindings to libbzip2 for bzip2 compression and decompression exposed as +Reader/Writer streams.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +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. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+futures-devel +Summary: %{summary} +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. + +%files -n %{name}+futures-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+tokio-devel +Summary: %{summary} +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. + +%files -n %{name}+tokio-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+tokio-io-devel +Summary: %{summary} +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. + +%files -n %{name}+tokio-io-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sat May 23 13:13:20 PDT 2020 Michel Alexandre Salim - 0.3.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..190e71f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bzip2-0.3.3.crate) = f2a844655fbd9abc866e691b57ddad166f09a183b8bd33cc6ff5952fe7f11141b1843728c6ad23fdf88a181fd40a3599df3e716c5f004ef097af6b99162a55d2