commit 53960204deb6943dc252ffc2c6dacc328183f0ed Author: MSVSphere Packaging Team Date: Fri Dec 20 17:54:12 2024 +0300 import rust-tokio-socks-0.5.2-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b713c14 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tokio-socks-0.5.2.crate diff --git a/.rust-tokio-socks.metadata b/.rust-tokio-socks.metadata new file mode 100644 index 0000000..c8d8f35 --- /dev/null +++ b/.rust-tokio-socks.metadata @@ -0,0 +1 @@ +1471fe164145357c9410b669c284d53a43f7eba5 SOURCES/tokio-socks-0.5.2.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..77e10b7 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,9 @@ +[package] +cargo-toml-patch-comments = [ + "drop smol dev-dependency which is only used by disabled integration tests", +] + +[tests] +run = ["lib", "doc"] +comments = ["integration tests require internet access"] + diff --git a/SOURCES/tokio-socks-fix-metadata.diff b/SOURCES/tokio-socks-fix-metadata.diff new file mode 100644 index 0000000..4a60d35 --- /dev/null +++ b/SOURCES/tokio-socks-fix-metadata.diff @@ -0,0 +1,12 @@ +--- tokio-socks-0.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tokio-socks-0.5.2/Cargo.toml 2024-07-28T12:12:39.491368+00:00 +@@ -115,9 +115,6 @@ + [dev-dependencies.once_cell] + version = "1.2.0" + +-[dev-dependencies.smol] +-version = "2.0.0" +- + [dev-dependencies.tokio] + version = "1.0" + features = [ diff --git a/SPECS/rust-tokio-socks.spec b/SPECS/rust-tokio-socks.spec new file mode 100644 index 0000000..89a8132 --- /dev/null +++ b/SPECS/rust-tokio-socks.spec @@ -0,0 +1,170 @@ +## 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} + +%global crate tokio-socks + +Name: rust-tokio-socks +Version: 0.5.2 +Release: %autorelease +Summary: Asynchronous SOCKS proxy support for Rust + +License: MIT +URL: https://crates.io/crates/tokio-socks +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop smol dev-dependency which is only used by disabled integration tests +Patch: tokio-socks-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Asynchronous SOCKS proxy support for Rust.} + +%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 + +%package -n %{name}+futures-io-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-io-devel %{_description} + +This package contains library source intended for building other packages which +use the "futures-io" feature of the "%{crate}" crate. + +%files -n %{name}+futures-io-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}+tor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tor-devel %{_description} + +This package contains library source intended for building other packages which +use the "tor" feature of the "%{crate}" crate. + +%files -n %{name}+tor-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 +# * integration tests require internet access +%cargo_test -- --lib +%cargo_test -- --doc +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.5.2-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sun Jul 28 2024 Fabio Valentini - 0.5.2-1 +- Update to version 0.5.2; Fixes RHBZ#2300202 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.5.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.5.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 0.5.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 17 2023 Fabio Valentini - 0.5.1-7 +- Regenerate with rust2rpm v24 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.5.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Mar 08 2021 Fabio Valentini - 0.5.1-1 +- Update to version 0.5.1. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Oct 19 2020 Fabio Valentini - 0.3.0-1 +- Update to version 0.3.0. + +* Sat Aug 01 2020 Fedora Release Engineering - 0.2.2-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 16 08:51:56 CEST 2020 Igor Raits - 0.2.2-1 +- Initial package + +## END: Generated by rpmautospec