diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..555dec1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/bitreader-0.3.4.crate +/bitreader-0.3.5.crate diff --git a/README.md b/README.md new file mode 100644 index 0000000..252c0ce --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rust-bitreader + +The rust-bitreader package diff --git a/changelog b/changelog new file mode 100644 index 0000000..56933a0 --- /dev/null +++ b/changelog @@ -0,0 +1,2 @@ +* Fri Jun 25 2021 RĂ©mi Lauzier - 0.3.4-1 +- Initial package diff --git a/dead.package b/dead.package deleted file mode 100644 index c7912ba..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -no longer needed diff --git a/rust-bitreader.spec b/rust-bitreader.spec new file mode 100644 index 0000000..6c978b2 --- /dev/null +++ b/rust-bitreader.spec @@ -0,0 +1,85 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate bitreader + +Name: rust-%{crate} +Version: 0.3.5 +Release: %autorelease +Summary: BitReader helps reading individual bits from a slice of bytes + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/bitreader +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +BitReader helps reading individual bits from a slice of bytes. +You can read "unusual" numbers of bits from the byte slice, for example 13 bits +at once. The reader internally keeps track of position within the buffer.} + +%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 +%{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}+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 %{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..323a3e9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bitreader-0.3.5.crate) = a336cc5929d1449c09eed66be0c959be0301e1e9f929817df57e0a42d09ae73f393b32ab6ab43bb532db0e6bd7f9d4fb2f5c01854ae042a1b3c30dcee979f2ab