diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70d9000 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bitstream-io-1.10.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index b1214e2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-bitstream-io1 - -The rust-bitstream-io1 package diff --git a/rust-bitstream-io1.spec b/rust-bitstream-io1.spec new file mode 100644 index 0000000..c0a4d6c --- /dev/null +++ b/rust-bitstream-io1.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate bitstream-io + +Name: rust-bitstream-io1 +Version: 1.10.0 +Release: %autorelease +Summary: Library for reading/writing un-aligned values from/to streams + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/bitstream-io +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Library for reading/writing un-aligned values from/to streams in big- +endian and little-endian formats.} + +%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.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} -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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..176d5db --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[package] +summary = "Library for reading/writing un-aligned values from/to streams" + + diff --git a/sources b/sources new file mode 100644 index 0000000..b0a6052 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bitstream-io-1.10.0.crate) = 72c73231cc5169e602ad493fdd29e0f63f014f4760988bf6b4094d9492500043e0eda73e94c8add8333631c506f7106c8332ab4513ef851723cd8f162c1e2bfc