commit c44bb416e7ab01eda10c6d8db7d7a6017a6ac090 Author: tigro Date: Sun Jan 5 22:25:46 2025 +0300 import rust-lz4-1.28.0-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cccf312 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lz4-1.28.0.crate diff --git a/.rust-lz4.metadata b/.rust-lz4.metadata new file mode 100644 index 0000000..8e01b56 --- /dev/null +++ b/.rust-lz4.metadata @@ -0,0 +1 @@ +7093ed15da442c52cb66cbaf880c4d205f9e22c0 SOURCES/lz4-1.28.0.crate diff --git a/SPECS/rust-lz4.spec b/SPECS/rust-lz4.spec new file mode 100644 index 0000000..4e68c6c --- /dev/null +++ b/SPECS/rust-lz4.spec @@ -0,0 +1,109 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +# prevent executables from being installed +%global cargo_install_bin 0 + +%global crate lz4 + +Name: rust-lz4 +Version: 1.28.0 +Release: %autorelease +Summary: Rust LZ4 bindings library + +License: MIT +URL: https://crates.io/crates/lz4 +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 26 + +%global _description %{expand: +Rust LZ4 bindings library.} + +%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 + +%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 +* Sun Jan 05 2025 Arkady L. Shane - 1.28.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Thu Sep 26 2024 Benjamin A. Beasley - 1.28.0-1 +- Update to 1.28.0 (close RHBZ#2312162) + +* Thu Sep 26 2024 Benjamin A. Beasley - 1.27.0-1 +- Update to 1.27.0 + +* Wed Aug 07 2024 Benjamin A. Beasley - 1.26.0-1 +- Update to 1.26.0 (close RHBZ#2299410) + +* Sat Jul 20 2024 Fedora Release Engineering - 1.25.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jun 11 2024 Benjamin A. Beasley - 1.25.0-1 +- Update to 1.25.0 (close RHBZ#2291270) + +* Thu Mar 14 2024 Benjamin A. Beasley - 1.24.0-4 +- Use rust2rpm 26 features to simplify packaging + +* Fri Jan 26 2024 Fedora Release Engineering - 1.24.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 06 2024 Benjamin A. Beasley - 1.24.0-1 +- Initial package (close RHBZ#2256960) +## END: Generated by rpmautospec