commit 0072b490329161e4cabddf70b3fc55860dd72281 Author: tigro Date: Mon Jan 15 21:45:18 2024 +0300 import rust-libloading-0.8.1-1.el9 diff --git a/.rust-libloading.metadata b/.rust-libloading.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/libloading-0.8.1.crate b/SOURCES/libloading-0.8.1.crate new file mode 100644 index 0000000..04d4717 Binary files /dev/null and b/SOURCES/libloading-0.8.1.crate differ diff --git a/SOURCES/libloading-fix-metadata-auto.diff b/SOURCES/libloading-fix-metadata-auto.diff new file mode 100644 index 0000000..146f503 --- /dev/null +++ b/SOURCES/libloading-fix-metadata-auto.diff @@ -0,0 +1,13 @@ +--- libloading-0.8.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libloading-0.8.1/Cargo.toml 2023-10-24T10:29:41.445939+00:00 +@@ -43,10 +43,3 @@ + [target."cfg(unix)".dependencies.cfg-if] + version = "1" + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.48" +-features = [ +- "Win32_Foundation", +- "Win32_System_Diagnostics_Debug", +- "Win32_System_LibraryLoader", +-] diff --git a/SPECS/rust-libloading.spec b/SPECS/rust-libloading.spec new file mode 100644 index 0000000..4100792 --- /dev/null +++ b/SPECS/rust-libloading.spec @@ -0,0 +1,180 @@ +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate libloading + +Name: rust-libloading +Version: 0.8.1 +Release: %autorelease +Summary: Bindings for native dynamic library loading primitives + +License: ISC +URL: https://crates.io/crates/libloading +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: libloading-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Bindings around the platform's dynamic library loading primitives with +greatly improved memory safety.} + +%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.mkd +%{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 +* Mon Jan 15 2024 Arkady L. Shane - 0.8.1-1 +- Rebuilt for MSVSphere 9.3 + +* Tue Oct 24 2023 Fabio Valentini - 0.8.1-1 +- Update to version 0.8.1; Fixes RHBZ#2185869 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.7.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.7.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Nov 07 2022 Fabio Valentini - 0.7.4-1 +- Update to version 0.7.4; Fixes RHBZ#2140482 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.7.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 26 2022 Fabio Valentini - 0.7.3-1 +- Update to version 0.7.3; Fixes RHBZ#2040976 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.7.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 16 2021 Fabio Valentini - 0.7.2-1 +- Update to version 0.7.2; Fixes RHBZ#2023497 + +* Sun Nov 07 2021 Fabio Valentini - 0.7.1-1 +- Update to version 0.7.1; Fixes RHBZ#2012453 + +* Tue Jul 27 2021 Fedora Release Engineering - 0.7.0-2 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Mar 03 2021 Fabio Valentini - 0.7.0-1 +- Update to version 0.7.0. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.6.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 15 2021 Fabio Valentini - 0.6.7-1 +- Update to version 0.6.7. +- Fixes RHBZ#1916324 + +* Mon Dec 07 2020 Fabio Valentini - 0.6.6-1 +- Update to version 0.6.6. +- Fixes RHBZ#1904113 + +* Thu Nov 12 2020 Fabio Valentini - 0.6.5-1 +- Update to version 0.6.5. +- Fixes RHBZ#1891029 + +* Sun Oct 11 2020 Fabio Valentini - 0.6.4-1 +- Update to version 0.6.4. + +* Wed Aug 26 2020 Josh Stone - 0.6.3-1 +- Update to 0.6.3 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri May 29 2020 Josh Stone - 0.6.2-1 +- Update to 0.6.2 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.5.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jul 13 11:17:13 CEST 2019 Igor Gnatenko - 0.5.2-1 +- Update to 0.5.2 + +* Mon Jun 03 2019 Josh Stone - 0.5.1-1 +- Update to 0.5.1 + +* Sat Feb 02 2019 Fedora Release Engineering - 0.5.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 04 2018 Igor Gnatenko - 0.5.0-3 +- Adapt to new packaging + +* Sat Jul 14 2018 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 21 2018 Igor Gnatenko - 0.5.0-1 +- Update to 0.5.0 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.4.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.4.3-2 +- Rebuild for rust-packaging v5 + +* Wed Jan 03 2018 Igor Gnatenko - 0.4.3-1 +- Update to 0.4.3 + +* Mon Dec 04 2017 Igor Gnatenko - 0.4.2-1 +- Initial package +