diff --git a/.gitignore b/.gitignore index 2e99f71..0f17607 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /pem-0.8.3.crate /pem-1.0.1.crate /pem-1.0.2.crate +/pem-1.1.0.crate diff --git a/pem-fix-metadata.diff b/pem-fix-metadata.diff index 79b34bd..8990f27 100644 --- a/pem-fix-metadata.diff +++ b/pem-fix-metadata.diff @@ -1,10 +1,11 @@ ---- pem-1.0.2/Cargo.toml 2022-01-03T19:05:52+00:00 -+++ pem-1.0.2/Cargo.toml 2022-01-07T21:35:18.137964+00:00 -@@ -28,7 +28,5 @@ - harness = false - [dependencies.base64] - version = "0.13.0" +--- pem-1.1.0/Cargo.toml 2022-07-13T14:24:29+00:00 ++++ pem-1.1.0/Cargo.toml 2022-12-13T13:39:39.433003+00:00 +@@ -33,8 +33,6 @@ + version = "1" + features = ["serde_derive"] + optional = true -[dev-dependencies.criterion] -version = "0.3.0" - [badges.travis-ci] - repository = "jcreekmore/pem-rs" + + [dev-dependencies.serde_json] + version = "1" diff --git a/rust-pem.spec b/rust-pem.spec index ecb9067..329a77e 100644 --- a/rust-pem.spec +++ b/rust-pem.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate pem -Name: rust-%{crate} -Version: 1.0.2 +Name: rust-pem +Version: 1.1.0 Release: %autorelease Summary: Parse and encode PEM-encoded data -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/pem Source: %{crates_source} -# Initial patched metadata +# Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds -Patch0: pem-fix-metadata.diff +Patch: pem-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Parse and encode PEM-encoded data.} @@ -36,9 +33,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE.md -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE.md +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,7 +48,19 @@ 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}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +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 %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index f20499f..8896cbf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pem-1.0.2.crate) = 548498cdd2ba114b6f0905949fdb5880c667e6f300fdc96dc1e9abcea275ac281b85ce88830ca4478cd3318994a3c9528ba3a5597262bf8cf2da8cab8674cd0d +SHA512 (pem-1.1.0.crate) = 16cebd4a3381313dc827e289fc39f8650b89d6348383a672671323ed6afc4f661d1c363a5c32005f2b6ff75b1bf85dd8bfa3817ffd8453be52c9bee0e43d6d66