diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d5a976 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lebe-0.5.2.crate diff --git a/rust-lebe.spec b/rust-lebe.spec new file mode 100644 index 0000000..b8e4776 --- /dev/null +++ b/rust-lebe.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 22 +%bcond_without check +%global debug_package %{nil} + +%global crate lebe + +Name: rust-lebe +Version: 0.5.2 +Release: %autorelease +Summary: Tiny, dead simple, high performance endianness conversions with a generic API + +License: BSD-3-Clause +URL: https://crates.io/crates/lebe +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Tiny, dead simple, high performance endianness conversions with a generic API.} + +%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-BSD-3-Clause +%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..e3ce394 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lebe-0.5.2.crate) = ae8fce41c9a934999dad672ad74acabac9d7998aac4f1d03b54910d4b941375b9e9721cb1bfc8cd7cfcc4206fc0b18d725b0ea256a3a10a125a8d5848ed761ae