commit d5d478e46a5af4ed8051a253ba9990156266acf6 Author: tigro Date: Mon Jan 15 21:15:00 2024 +0300 import rust-findshlibs-0.10.2-2.el9 diff --git a/.rust-findshlibs.metadata b/.rust-findshlibs.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/findshlibs-0.10.2.crate b/SOURCES/findshlibs-0.10.2.crate new file mode 100644 index 0000000..4abff3e Binary files /dev/null and b/SOURCES/findshlibs-0.10.2.crate differ diff --git a/SOURCES/findshlibs-fix-metadata.diff b/SOURCES/findshlibs-fix-metadata.diff new file mode 100644 index 0000000..58911fa --- /dev/null +++ b/SOURCES/findshlibs-fix-metadata.diff @@ -0,0 +1,11 @@ +--- findshlibs-0.10.2/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ findshlibs-0.10.2/Cargo.toml 2022-04-20T18:18:00.934891+00:00 +@@ -24,8 +24,3 @@ + version = "0.2.104" + [build-dependencies.cc] + version = "1.0.67" +-[target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.lazy_static] +-version = "1.4" +-[target."cfg(target_os = \"windows\")".dependencies.winapi] +-version = "0.3.9" +-features = ["psapi", "memoryapi", "libloaderapi", "processthreadsapi"] diff --git a/SPECS/rust-findshlibs.spec b/SPECS/rust-findshlibs.spec new file mode 100644 index 0000000..122d621 --- /dev/null +++ b/SPECS/rust-findshlibs.spec @@ -0,0 +1,117 @@ +## 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 findshlibs + +Name: rust-%{crate} +Version: 0.10.2 +Release: %autorelease +Summary: Find the set of shared libraries loaded in the current process with a cross platform API + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/findshlibs +Source: %{crates_source} +# Drop dependencies for Mac and Windows targets +Patch0: findshlibs-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Find the set of shared libraries loaded in the current process with a cross +platform API.} + +%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_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 - 0.10.2-2 +- Rebuilt for MSVSphere 9.3 + +* Sat Jul 23 2022 Fedora Release Engineering 0.10.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Feb 01 2022 Michel Alexandre Salim 0.10.2-1 +- Update to 0.10.2 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue May 11 2021 Fabio Valentini - 0.8.0-1 +- Update to version 0.8.0. +- Fixes RHBZ#1901653 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed May 13 07:43:29 CEST 2020 Igor Raits - 0.7.0-1 +- Update to 0.7.0 + +* Sun Feb 02 18:47:13 CET 2020 Robert-André Mauchin - 0.5.0-3 +- Remove extraneous executable bits + +* Thu Jan 30 2020 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Dec 06 18:20:28 CET 2019 Robert-André Mauchin - 0.5.0-1 +- Initial package +