From c285a5c8d0af205b0abe121777c4d9362826cae5 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:12:24 +0300 Subject: [PATCH] import rust-libflate_lz77-2.1.0-3.el10 --- .gitignore | 1 + .rust-libflate_lz77.metadata | 1 + SOURCES/libflate_lz77-fix-metadata.diff | 18 +++ SOURCES/rust2rpm.toml | 3 + SPECS/rust-libflate_lz77.spec | 144 ++++++++++++++++++++++++ 5 files changed, 167 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-libflate_lz77.metadata create mode 100644 SOURCES/libflate_lz77-fix-metadata.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-libflate_lz77.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2fe6894 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libflate_lz77-2.1.0.crate diff --git a/.rust-libflate_lz77.metadata b/.rust-libflate_lz77.metadata new file mode 100644 index 0000000..8fd3245 --- /dev/null +++ b/.rust-libflate_lz77.metadata @@ -0,0 +1 @@ +9a76e6eba94f31121d918b2e99c747d6b2a820b9 SOURCES/libflate_lz77-2.1.0.crate diff --git a/SOURCES/libflate_lz77-fix-metadata.diff b/SOURCES/libflate_lz77-fix-metadata.diff new file mode 100644 index 0000000..9ba8cc5 --- /dev/null +++ b/SOURCES/libflate_lz77-fix-metadata.diff @@ -0,0 +1,18 @@ +--- libflate_lz77-2.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libflate_lz77-2.1.0/Cargo.toml 2024-05-01T17:54:23.366782+00:00 +@@ -33,15 +33,10 @@ + [dependencies.rle-decode-fast] + version = "1.0.0" + +-[dev-dependencies.libflate] +-version = "2.0" +-default-features = false +- + [features] + default = ["std"] + std = [ + "core2/std", +- "libflate/std", + ] + + [badges.coveralls] diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..86bed5b --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[tests] +run = ["lib"] +comments = ["Skip doc tests as they require libflate"] diff --git a/SPECS/rust-libflate_lz77.spec b/SPECS/rust-libflate_lz77.spec new file mode 100644 index 0000000..f3caab2 --- /dev/null +++ b/SPECS/rust-libflate_lz77.spec @@ -0,0 +1,144 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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} + +%global crate libflate_lz77 + +Name: rust-libflate_lz77 +Version: 2.1.0 +Release: %autorelease +Summary: LZ77 encoder for libflate crate + +License: MIT +URL: https://crates.io/crates/libflate_lz77 +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop libflate to break circular dependency +Patch: libflate_lz77-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +LZ77 encoder for libflate crate.} + +%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 + +%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 +# * Skip doc tests as they require libflate +%cargo_test -- --lib +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 2.1.0-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 2.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed May 01 2024 Davide Cavalca - 2.1.0-2 +- Drop libflate to break circular dependency + +* Wed May 01 2024 Davide Cavalca - 2.1.0-1 +- Update to 2.1.0; Fixes: RHBZ#2221371 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon May 22 2023 Fabio Valentini - 1.2.0-1 +- Update to version 1.2.0; Fixes RHBZ#2170490 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sat Apr 17 2021 Fabio Valentini - 1.1.0-1 +- Update to version 1.1.0. +- Fixes RHBZ#1950672 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon May 18 12:46:00 CEST 2020 Igor Raits - 1.0.0-2 +- Update libflate to 1 + +* Sun May 17 09:26:18 CEST 2020 Igor Raits - 1.0.0-1 +- Initial package + +## END: Generated by rpmautospec