commit 4dbef24960914b55ef426b25d3cd85d38ce7faa4 Author: MSVSphere Packaging Team Date: Fri Dec 20 18:09:45 2024 +0300 import rust-xz2-0.1.7-8.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ea4c84 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/xz2-0.1.7.crate diff --git a/.rust-xz2.metadata b/.rust-xz2.metadata new file mode 100644 index 0000000..03090a0 --- /dev/null +++ b/.rust-xz2.metadata @@ -0,0 +1 @@ +4306508bfb1b9df659231054ae126ef12805b4f1 SOURCES/xz2-0.1.7.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..beef4f0 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,11 @@ +[package] +summary = "Rust bindings to liblzma" +cargo-toml-patch-comments = [ + "drop unused support for tokio v0.1", + "drop feature for statically linking liblzma", +] + +[tests] +run = ["none"] +comments = ["outdated dev-dependencies: tokio v0.1"] + diff --git a/SOURCES/xz2-fix-metadata.diff b/SOURCES/xz2-fix-metadata.diff new file mode 100644 index 0000000..1be35a3 --- /dev/null +++ b/SOURCES/xz2-fix-metadata.diff @@ -0,0 +1,29 @@ +--- xz2-0.1.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ xz2-0.1.7/Cargo.toml 2024-09-21T23:12:17.487893+00:00 +@@ -39,16 +39,8 @@ + "futures", + ] + +-[dependencies.futures] +-version = "0.1.26" +-optional = true +- + [dependencies.lzma-sys] + version = "0.1.18" +- +-[dependencies.tokio-io] +-version = "0.1.12" +-optional = true + + [dev-dependencies.quickcheck] + version = "1.0.1" +@@ -59,9 +51,3 @@ + [dev-dependencies.tokio-core] + version = "0.1.17" + +-[features] +-static = ["lzma-sys/static"] +-tokio = [ +- "tokio-io", +- "futures", +-] diff --git a/SPECS/rust-xz2.spec b/SPECS/rust-xz2.spec new file mode 100644 index 0000000..8a49510 --- /dev/null +++ b/SPECS/rust-xz2.spec @@ -0,0 +1,159 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 8; + 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 +# * outdated dev-dependencies: tokio v0.1 +%bcond_with check +%global debug_package %{nil} + +%global crate xz2 + +Name: rust-xz2 +Version: 0.1.7 +Release: %autorelease +Summary: Rust bindings to liblzma + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/xz2 +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused support for tokio v0.1 +# * drop feature for statically linking liblzma +Patch: xz2-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Rust bindings to liblzma providing Read/Write streams as well as low- +level in-memory encoding/decoding.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.1.7-8 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Sep 21 2024 Fabio Valentini - 0.1.7-8 +- Disable tests and drop support for tokio v0.1 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.7-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.1.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Aug 07 2023 Fabio Valentini - 0.1.7-5 +- Regenerate with rust2rpm v24 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.1.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jul 16 2022 Fabio Valentini - 0.1.7-1 +- Update to version 0.1.7; Fixes RHBZ#2094065 + +* Sat Jan 22 2022 Fedora Release Engineering - 0.1.6-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.6-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.1.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.1.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Mar 09 2019 Igor Gnatenko - 0.1.6-3 +- Adapt to new packaging + +* Sat Feb 02 2019 Fedora Release Engineering - 0.1.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Oct 11 2018 Josh Stone - 0.1.6-1 +- Update to 0.1.6 + +* Sat Jul 28 2018 Igor Gnatenko - 0.1.5-4 +- Rebuild to trigger tests + +* Sat Jul 28 2018 Igor Gnatenko - 0.1.5-3 +- Rebuild to trigger tests + +* Sat Jul 14 2018 Fedora Release Engineering - 0.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu May 10 2018 Igor Gnatenko - 0.1.5-1 +- Update to 0.1.5 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Jan 13 2018 Igor Gnatenko - 0.1.4-1 +- Initial package + +## END: Generated by rpmautospec