commit 09703778f57554e5a1c875a9fd4be09b0ed1d7e0 Author: tigro Date: Mon Jan 15 23:11:02 2024 +0300 import rust-xz2-0.1.7-2.el9 diff --git a/.rust-xz2.metadata b/.rust-xz2.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/xz2-0.1.7.crate b/SOURCES/xz2-0.1.7.crate new file mode 100644 index 0000000..b2b5417 Binary files /dev/null and b/SOURCES/xz2-0.1.7.crate differ diff --git a/SOURCES/xz2-fix-metadata.diff b/SOURCES/xz2-fix-metadata.diff new file mode 100644 index 0000000..1836a79 --- /dev/null +++ b/SOURCES/xz2-fix-metadata.diff @@ -0,0 +1,10 @@ +--- xz2-0.1.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ xz2-0.1.7/Cargo.toml 2022-07-16T12:16:30.646078+00:00 +@@ -60,7 +60,6 @@ + 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..c84d279 --- /dev/null +++ b/SPECS/rust-xz2.spec @@ -0,0 +1,175 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.0) +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 21 +%bcond_without check +%global debug_package %{nil} + +%global crate xz2 + +Name: rust-%{crate} +Version: 0.1.7 +Release: %autorelease +Summary: Rust bindings to liblzma + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/xz2 +Source: %{crates_source} +# Initial patched metadata +# * drop feature for statically linking liblzma +Patch0: xz2-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%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 + +%package -n %{name}+futures-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-devel %{_description} + +This package contains library source intended for building other packages which +use the "futures" feature of the "%{crate}" crate. + +%files -n %{name}+futures-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+tokio-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-devel %{_description} + +This package contains library source intended for building other packages which +use the "tokio" feature of the "%{crate}" crate. + +%files -n %{name}+tokio-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+tokio-io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-io-devel %{_description} + +This package contains library source intended for building other packages which +use the "tokio-io" feature of the "%{crate}" crate. + +%files -n %{name}+tokio-io-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 +# * skip a test that relies on files which are not included in published crates +%cargo_test -- -- --skip standard_files +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.1.7-2 +- Rebuilt for MSVSphere 9.3 + +* 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 +