commit 0f78a89833e29eaac34facb8a7c057c9c838e492 Author: tigro Date: Mon Jan 15 21:44:09 2024 +0300 import rust-libflate-1.4.0-1.el9 diff --git a/.rust-libflate.metadata b/.rust-libflate.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/libflate-1.4.0.crate b/SOURCES/libflate-1.4.0.crate new file mode 100644 index 0000000..e3749c5 Binary files /dev/null and b/SOURCES/libflate-1.4.0.crate differ diff --git a/SOURCES/libflate-fix-metadata.diff b/SOURCES/libflate-fix-metadata.diff new file mode 100644 index 0000000..a30111b --- /dev/null +++ b/SOURCES/libflate-fix-metadata.diff @@ -0,0 +1,27 @@ +--- libflate-1.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libflate-1.4.0/Cargo.toml 2023-05-22T21:42:54.038100+00:00 +@@ -29,12 +29,6 @@ + [dependencies.adler32] + version = "1" + +-[dependencies.core2] +-version = "0.4" +-features = ["alloc"] +-optional = true +-default_features = false +- + [dependencies.crc32fast] + version = "1.1.1" + +@@ -45,11 +39,5 @@ + [dev-dependencies.clap] + version = "2" + +-[features] +-no_std = [ +- "libflate_lz77/no_std", +- "core2", +-] +- + [badges.coveralls] + repository = "sile/libflate" diff --git a/SPECS/rust-libflate.spec b/SPECS/rust-libflate.spec new file mode 100644 index 0000000..aefc9fe --- /dev/null +++ b/SPECS/rust-libflate.spec @@ -0,0 +1,168 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate libflate + +Name: rust-libflate +Version: 1.4.0 +Release: %autorelease +Summary: Rust implementation of DEFLATE algorithm and related formats (ZLIB, GZIP) + +License: MIT +URL: https://crates.io/crates/libflate +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused no_std feature with missing dependencies +Patch: libflate-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A Rust implementation of DEFLATE algorithm and related formats (ZLIB, +GZIP).} + +%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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 1.4.0-1 +- Rebuilt for MSVSphere 9.3 + +* Mon May 22 2023 Fabio Valentini - 1.4.0-1 +- Update to version 1.4.0; Fixes RHBZ#2170489 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Mar 29 2022 Fabio Valentini - 1.2.0-1 +- Update to version 1.2.0; Fixes RHBZ#2068351 + +* Wed Jan 26 2022 Fabio Valentini - 1.1.2-1 +- Update to version 1.1.2; Fixes RHBZ#2045077 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Aug 29 2021 Fabio Valentini - 1.1.1-1 +- Update to version 1.1.1; Fixes RHBZ#1998797 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Apr 28 2021 Fabio Valentini - 1.1.0-1 +- Update to version 1.1.0. +- Fixes RHBZ#1950671 + +* Thu Mar 25 2021 Fabio Valentini - 1.0.4-1 +- Update to version 1.0.4. +- Fixes RHBZ#1939504 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Dec 28 13:31:19 CET 2020 Igor Raits - 1.0.3-2 +- Rebuild + +* Thu Nov 12 2020 Fabio Valentini - 1.0.3-1 +- Update to version 1.0.3. +- Fixes RHBZ#1891274 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Josh Stone - 1.0.2-1 +- Update to 1.0.2 + +* Sun May 31 10:13:27 CEST 2020 Igor Raits - 1.0.1-1 +- Update to 1.0.1 + +* Mon May 18 12:37:14 CEST 2020 Igor Raits - 1.0.0-1 +- Update to 1.0.0 + +* Wed Feb 12 2020 Josh Stone - 0.1.27-1 +- Update to 0.1.27 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.1.23-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.1.23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 17:37:49 CEST 2019 Igor Gnatenko - 0.1.23-1 +- Update to 0.1.23 + +* Mon Apr 15 2019 Josh Stone - 0.1.22-1 +- Update to 0.1.22 + +* Wed Mar 13 2019 Igor Gnatenko - 0.1.21-1 +- Update to 0.1.21 + +* Tue Feb 19 2019 Igor Gnatenko - 0.1.20-1 +- Update to 0.1.20 + +* Sat Feb 02 2019 Fedora Release Engineering - 0.1.19-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jan 26 2019 Igor Gnatenko - 0.1.19-2 +- Run tests in infrastructure + +* Sat Jan 26 2019 Igor Gnatenko - 0.1.19-1 +- Initial package +