diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e5ebef3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/progpool-0.2.1.crate diff --git a/rust-progpool.spec b/rust-progpool.spec new file mode 100644 index 0000000..2644e56 --- /dev/null +++ b/rust-progpool.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate progpool + +Name: rust-progpool +Version: 0.2.1 +Release: %autorelease +Summary: Job pool with terminal progress bar + +License: Apache-2.0 +URL: https://crates.io/crates/progpool +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Job pool with terminal progress bar.} + +%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 %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 %{crate_instdir}/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..3b13076 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (progpool-0.2.1.crate) = d6acb81b10bc89a1b953192e9fe52288531e7285b4e93ed05a46339e757f8eb2c624a3dd5f85b5a592a79b6f3f0c9db07f958f4e0a82f55a471c237e23609a30