diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3699736 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fixedbitset-0.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 0d140b9..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-fixedbitset0.2 - -The rust-fixedbitset0.2 package diff --git a/rust-fixedbitset0.2.spec b/rust-fixedbitset0.2.spec new file mode 100644 index 0000000..d70d52e --- /dev/null +++ b/rust-fixedbitset0.2.spec @@ -0,0 +1,84 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate fixedbitset + +Name: rust-%{crate}0.2 +Version: 0.2.0 +Release: %autorelease +Summary: Simple bitset collection + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/fixedbitset +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Simple bitset collection.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.rst +%{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 + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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..f4e42db --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fixedbitset-0.2.0.crate) = 44642b270d52f71637a87e5311f70ac77baa2a377f94254d1bd728b4ff02a3176f3a5d07732c0c4fb9bf303dbeecf327432ae01e2779d966cc13b5fb97cbc28c