diff --git a/.gitignore b/.gitignore index b952188..4c15319 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /plist-1.2.0.crate /plist-1.2.1.crate /plist-1.3.1.crate +/plist-1.4.0.crate diff --git a/plist-fix-metadata.diff b/plist-fix-metadata.diff new file mode 100644 index 0000000..51383a9 --- /dev/null +++ b/plist-fix-metadata.diff @@ -0,0 +1,11 @@ +--- plist-1.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ plist-1.4.0/Cargo.toml 2023-01-28T21:45:37.801857+00:00 +@@ -40,7 +40,7 @@ + version = "0.1.1" + + [dependencies.quick_xml] +-version = "0.26.0" ++version = "0.25.0" + package = "quick-xml" + + [dependencies.serde] diff --git a/rust-plist.spec b/rust-plist.spec index 6c5c53b..e612720 100644 --- a/rust-plist.spec +++ b/rust-plist.spec @@ -1,22 +1,22 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate plist -Name: rust-%{crate} -Version: 1.3.1 +Name: rust-plist +Version: 1.4.0 Release: %autorelease Summary: Rusty plist parser -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/plist Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * temporarily downgrade quick-xml dependency from 0.26 to 0.25 +Patch: plist-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Rusty plist parser. Supports Serde serialization.} @@ -33,9 +33,9 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENCE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENCE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +47,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+enable_unstable_features_that_may_break_with_minor_version_bumps-devel Summary: %{summary} @@ -59,7 +59,7 @@ This package contains library source intended for building other packages which use the "enable_unstable_features_that_may_break_with_minor_version_bumps" feature of the "%{crate}" crate. %files -n %{name}+enable_unstable_features_that_may_break_with_minor_version_bumps-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -71,7 +71,7 @@ This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index d59db7f..2e1b8ed 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (plist-1.3.1.crate) = 4cf962af14b4218502eb4aae5507d93c58c4a0b716f923c3f0e53e37225940c5ab6847d7d9ad5004f77dc2dbbd28f73412cc114fd231e515f23a4ade3f969e86 +SHA512 (plist-1.4.0.crate) = b6f78129345ff18f98e0bc38cfd84371364b46ce71a5ad47bceaf6b9bb040ada4c27f0ee7882198003eb7987680b86ee53683d3463589de86f5898ce9f33a8a8