diff --git a/.gitignore b/.gitignore index f3c68cb..8e3cdbe 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /zstd-0.11.2+zstd.1.5.2.crate /zstd-0.12.3+zstd.1.5.2.crate /zstd-0.12.4.crate +/zstd-0.13.0.crate diff --git a/rust-zstd.spec b/rust-zstd.spec index a3dd351..18680c7 100644 --- a/rust-zstd.spec +++ b/rust-zstd.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * tests require files that are not included in published crates %bcond_with check %global debug_package %{nil} @@ -6,18 +6,15 @@ %global crate zstd Name: rust-zstd -Version: 0.12.4 +Version: 0.13.0 Release: %autorelease Summary: Binding for the zstd compression library License: MIT URL: https://crates.io/crates/zstd Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * exclude files that are only useful for upstream development -Patch: zstd-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Binding for the zstd compression library.} @@ -219,7 +216,7 @@ use the "zstdmt" 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..0ce69ff --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["tests require files that are not included in published crates"] + diff --git a/sources b/sources index e4cdca5..e798af8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zstd-0.12.4.crate) = 69b94d18982d7adbf0d3a79dc013c98af97ec2b10e10ef4cd6c15a89049f343fd83db3a79c393a43e9d12d8c071a728b8666680cc5a23817a126340ba9500715 +SHA512 (zstd-0.13.0.crate) = daab48e7479826dbc14e7594b3c97c06eb2903f2ef94af419f0f5bb201931ecd917935d27049da363c9edca7cbc3b5d0ad3dbf3805376627df63862c658d17cd diff --git a/zstd-fix-metadata.diff b/zstd-fix-metadata.diff deleted file mode 100644 index 728ccbd..0000000 --- a/zstd-fix-metadata.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- zstd-0.12.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ zstd-0.12.4/Cargo.toml 2023-08-01T13:08:03.435950+00:00 -@@ -15,7 +15,7 @@ - name = "zstd" - version = "0.12.4" - authors = ["Alexandre Bury "] --exclude = ["assets/*.zst"] -+exclude = ["/assets/", "/appveyor.yml", "/rustfmt.toml"] - description = "Binding for the zstd compression library." - documentation = "https://docs.rs/zstd" - readme = "Readme.md"