diff --git a/.gitignore b/.gitignore index 5c4ca34..6d9ef44 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /libloading-0.7.2.crate /libloading-0.7.3.crate /libloading-0.7.4.crate +/libloading-0.8.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 8fb1a5b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-libloading - -The rust-libloading package \ No newline at end of file diff --git a/libloading-fix-metadata-auto.diff b/libloading-fix-metadata-auto.diff index c5cd20b..146f503 100644 --- a/libloading-fix-metadata-auto.diff +++ b/libloading-fix-metadata-auto.diff @@ -1,12 +1,13 @@ ---- libloading-0.7.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ libloading-0.7.4/Cargo.toml 1970-01-01T00:00:01+00:00 -@@ -43,9 +43,3 @@ +--- 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.winapi] --version = "0.3" +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.48" -features = [ -- "errhandlingapi", -- "libloaderapi", +- "Win32_Foundation", +- "Win32_System_Diagnostics_Debug", +- "Win32_System_LibraryLoader", -] diff --git a/rust-libloading.spec b/rust-libloading.spec index 8ad5e2a..a61acf6 100644 --- a/rust-libloading.spec +++ b/rust-libloading.spec @@ -1,25 +1,25 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate libloading Name: rust-libloading -Version: 0.7.4 +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 foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: libloading-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Bindings around the platform's dynamic library loading primitives with greatly -improved memory safety.} +Bindings around the platform's dynamic library loading primitives with +greatly improved memory safety.} %description %{_description} @@ -50,7 +50,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..44ffefb --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "Bindings for native dynamic library loading primitives" diff --git a/sources b/sources index 42950d1..1b80aad 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libloading-0.7.4.crate) = 34439d9eca68bac8fcbe2bc94a70e07550e7e95d713ab74ed60ba6736ec807fd9c9135c178d436fbeb39afb074b2a9b05775d953340845c088f5f8712f5f56a1 +SHA512 (libloading-0.8.1.crate) = f17ca367ef8e62fe80f43e5f3e2d1585be7b78b0fe4a733d80acdde38c20f9f72e710cff082442de6afa323aaafa17eda4491c4430b2d12f398d420e057cadab