diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b95a705 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lifeguard-0.6.1.crate diff --git a/rust-lifeguard.spec b/rust-lifeguard.spec new file mode 100644 index 0000000..338569a --- /dev/null +++ b/rust-lifeguard.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate lifeguard + +Name: rust-lifeguard +Version: 0.6.1 +Release: %autorelease +Summary: Object pool manager in Rust + +License: MIT +URL: https://crates.io/crates/lifeguard +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +An object pool manager in Rust.} + +%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 +%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/sources b/sources new file mode 100644 index 0000000..23953e6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lifeguard-0.6.1.crate) = bb70054d386c3ae73b8d911b97455bb61e16d64d621d5076abddf7586c2eb4cdef08248baa57d6aaa3294e477ac0519eb764893a00ab198450aa8080b3139f83