diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cdd2903 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lru-0.9.0.crate diff --git a/rust-lru.spec b/rust-lru.spec new file mode 100644 index 0000000..0f8f679 --- /dev/null +++ b/rust-lru.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate lru + +Name: rust-lru +Version: 0.9.0 +Release: %autorelease +Summary: LRU cache implementation + +License: MIT +URL: https://crates.io/crates/lru +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +LRU cache implementation.} + +%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}/CHANGELOG.md +%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}+hashbrown-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+hashbrown-devel %{_description} + +This package contains library source intended for building other packages which +use the "hashbrown" feature of the "%{crate}" crate. + +%files -n %{name}+hashbrown-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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..1715b93 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + nightly diff --git a/sources b/sources new file mode 100644 index 0000000..264a097 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lru-0.9.0.crate) = ed9292dfbc8b0d5ab4a2c798056b729c7e70afb57c39b3f56c82935c1faa5a345a08ec5399048c747ec7db548615a3661463d4deb687af80066e0444af3dc18d