diff --git a/.gitignore b/.gitignore index ab15bdc..dd865ff 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /libz-sys-1.1.5.crate /libz-sys-1.1.6.crate /libz-sys-1.1.8.crate +/libz-sys-1.1.9.crate diff --git a/README.md b/README.md deleted file mode 100644 index bec32c5..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-libz-sys - -The rust-libz-sys package \ No newline at end of file diff --git a/libz-sys-fix-metadata-auto.diff b/libz-sys-fix-metadata-auto.diff new file mode 100644 index 0000000..95d5703 --- /dev/null +++ b/libz-sys-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- libz-sys-1.1.9/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libz-sys-1.1.9/Cargo.toml 2023-05-01T11:31:00.134761+00:00 +@@ -66,5 +66,3 @@ + "cmake", + ] + +-[target."cfg(target_env = \"msvc\")".build-dependencies.vcpkg] +-version = "0.2" diff --git a/libz-sys-fix-metadata.diff b/libz-sys-fix-metadata.diff index baee3ba..98ee0ff 100644 --- a/libz-sys-fix-metadata.diff +++ b/libz-sys-fix-metadata.diff @@ -1,6 +1,6 @@ ---- libz-sys-1.1.8/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ libz-sys-1.1.8/Cargo.toml 2022-05-30T19:16:36.852042+00:00 -@@ -45,25 +45,12 @@ +--- libz-sys-1.1.9/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libz-sys-1.1.9/Cargo.toml 2023-05-01T11:31:33.242720+00:00 +@@ -46,23 +46,12 @@ [build-dependencies.cc] version = "1.0.18" @@ -24,5 +24,3 @@ - "cmake", -] - --[target."cfg(target_env = \"msvc\")".build-dependencies.vcpkg] --version = "0.2" diff --git a/rust-libz-sys.spec b/rust-libz-sys.spec index 27ed8a7..49e176c 100644 --- a/rust-libz-sys.spec +++ b/rust-libz-sys.spec @@ -1,24 +1,22 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate libz-sys -Name: rust-%{crate} -Version: 1.1.8 +Name: rust-libz-sys +Version: 1.1.9 Release: %autorelease Summary: Low-level bindings to the system libz library (also known as zlib) -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/libz-sys Source: %{crates_source} -# Initial patched metadata -# * No MSVC -# * Remove asm/static/zlib-ng features -Patch0: libz-sys-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Automatically generated patch to strip foreign dependencies +Patch: libz-sys-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * drop features for zlib-ng, static linking, and unavailalbe asm optimizations +Patch: libz-sys-fix-metadata.diff BuildRequires: rust-packaging >= 21 diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index 75fa37a..72e9b4b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libz-sys-1.1.8.crate) = 0766ab72cc1414160ccefe4812e6204cbed1341607e5d17607f24fd4ff81dca68d8f2cf43e1d27f332a508d602bff0ad340c4c647a5d5f85acc120c19cfb4100 +SHA512 (libz-sys-1.1.9.crate) = 0d474b79aa55f1cdda8f52c87fd2cde84da80db5e18485b3e6845d40c49c6f3b3b92ae73e286b06acbc0e05f36ef3975231fb57e1b5b6546ad90a46752fa88b2