diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c53f270 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/deflate-0.8.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index 9f3656b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-deflate0.8 - -The rust-deflate0.8 package diff --git a/rust-deflate0.8.spec b/rust-deflate0.8.spec new file mode 100644 index 0000000..ee60eac --- /dev/null +++ b/rust-deflate0.8.spec @@ -0,0 +1,108 @@ +# Generated by rust2rpm 20 +# * files that are required by tests are not included in published crates +%bcond_with check +%global debug_package %{nil} + +%global crate deflate + +Name: rust-%{crate}0.8 +Version: 0.8.6 +Release: %autorelease +Summary: DEFLATE, zlib and gzip encoder written in rust + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/deflate +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +DEFLATE, zlib and gzip encoder written in rust.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc README.md changelog.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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+benchmarks-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+benchmarks-devel %{_description} + +This package contains library source intended for building other packages which +use the "benchmarks" feature of the "%{crate}" crate. + +%files -n %{name}+benchmarks-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+gzip-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+gzip-devel %{_description} + +This package contains library source intended for building other packages which +use the "gzip" feature of the "%{crate}" crate. + +%files -n %{name}+gzip-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+gzip-header-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+gzip-header-devel %{_description} + +This package contains library source intended for building other packages which +use the "gzip-header" feature of the "%{crate}" crate. + +%files -n %{name}+gzip-header-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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..2b3b42d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (deflate-0.8.6.crate) = 7e2e23205c56cc4c834ade2a6a22b056253c32e29346907558117714a18d8433882a712711413addb15da79f9f59e089a06dfd680b756ab2725b500a49dc16b2