diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4bc17e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bitmaps-2.0.0.crate diff --git a/rust-bitmaps.spec b/rust-bitmaps.spec new file mode 100644 index 0000000..5a240dd --- /dev/null +++ b/rust-bitmaps.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate bitmaps + +Name: rust-%{crate} +Version: 2.0.0 +Release: 1%{?dist} +Summary: Fixed size boolean arrays + +# Upstream license specification: MPL-2.0+ +License: MPLv2.0 +URL: https://crates.io/crates/bitmaps +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Fixed size boolean arrays.} + +%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 LICENCE.md +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-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 Feb 15 12:48:54 CET 2020 Igor Raits - 2.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..0cdd5f7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bitmaps-2.0.0.crate) = 6e89076a6ebe8256b99054a62e5112e8aba12f4393905bb4f6577f8cb19179a566df4fac01533aa83e3ae25950b9818828a9526ad370936355b8e5f761b6c81c