From 1e8fc7a4d26e72cc2e1c42e1ae29daf9ca283650 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 20 May 2024 14:32:54 +0200 Subject: [PATCH] Initial import (#2281027) --- .gitignore | 1 + README.md | 3 -- rust-byteorder-lite.spec | 81 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-byteorder-lite.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b8eeb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/byteorder-lite-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 1066fe7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-byteorder-lite - -The rust-byteorder-lite package diff --git a/rust-byteorder-lite.spec b/rust-byteorder-lite.spec new file mode 100644 index 0000000..f436a0b --- /dev/null +++ b/rust-byteorder-lite.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate byteorder-lite + +Name: rust-byteorder-lite +Version: 0.1.0 +Release: %autorelease +Summary: Library for reading/writing numbers in big-endian and little-endian + +License: Unlicense OR MIT +URL: https://crates.io/crates/byteorder-lite +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Library for reading/writing numbers in big-endian and little-endian.} + +%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-MIT +%license %{crate_instdir}/UNLICENSE +%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 + +%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} -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..b753109 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (byteorder-lite-0.1.0.crate) = d38837acc5926fe98ddf4336a603412f678b5f46d53a7eb926a8885d28aa24d51e3968f0eb2e6d2d7711e5ba30b8006a27076ea596b0699e93ad3d9e05483c4c