commit af5cc92b3d4cd6bc6bee90cfa7cc1743ddb022b8 Author: tigro Date: Wed Jan 10 23:16:40 2024 +0300 import rust-libloading0.7-0.7.4-1.el9 diff --git a/.rust-libloading0.7.metadata b/.rust-libloading0.7.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/libloading-0.7.4.crate b/SOURCES/libloading-0.7.4.crate new file mode 100644 index 0000000..c704224 Binary files /dev/null and b/SOURCES/libloading-0.7.4.crate differ diff --git a/SOURCES/libloading-fix-metadata-auto.diff b/SOURCES/libloading-fix-metadata-auto.diff new file mode 100644 index 0000000..bc595d1 --- /dev/null +++ b/SOURCES/libloading-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- libloading-0.7.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libloading-0.7.4/Cargo.toml 2023-10-24T10:30:52.525037+00:00 +@@ -43,9 +43,3 @@ + [target."cfg(unix)".dependencies.cfg-if] + version = "1" + +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = [ +- "errhandlingapi", +- "libloaderapi", +-] diff --git a/SPECS/rust-libloading0.7.spec b/SPECS/rust-libloading0.7.spec new file mode 100644 index 0000000..95c6b69 --- /dev/null +++ b/SPECS/rust-libloading0.7.spec @@ -0,0 +1,85 @@ +## 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-libloading0.7 +Version: 0.7.4 +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 +* Wed Jan 10 2024 Arkady L. Shane - 0.7.4-1 +- Rebuilt for MSVSphere 9.3 + +* Fri Oct 27 2023 Fabio Valentini - 0.7.4-1 +- Initial import (libloading 0.7 compat package)