diff --git a/.gitignore b/.gitignore index 762abad..b1b5cd0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /pem-1.0.2.crate /pem-1.1.0.crate /pem-1.1.1.crate +/pem-2.0.1.crate diff --git a/pem-fix-metadata.diff b/pem-fix-metadata.diff index 836cbec..f746737 100644 --- a/pem-fix-metadata.diff +++ b/pem-fix-metadata.diff @@ -1,21 +1,23 @@ ---- pem-1.1.1/Cargo.toml 2023-01-11T13:28:15+00:00 -+++ pem-1.1.1/Cargo.toml 2023-03-27T08:13:55.018205+00:00 -@@ -23,9 +23,6 @@ - license = "MIT" +--- pem-2.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pem-2.0.1/Cargo.toml 2023-06-22T15:34:42.288224+00:00 +@@ -29,10 +29,6 @@ repository = "https://github.com/jcreekmore/pem-rs.git" + resolver = "2" -[[bench]] -name = "pem_benchmark" -harness = false +- [dependencies.base64] - version = "0.13.0" - -@@ -33,8 +30,6 @@ + version = "0.21.0" + features = ["alloc"] +@@ -42,9 +38,6 @@ version = "1" - features = ["serde_derive"] optional = true + default-features = false +- -[dev-dependencies.criterion] -version = "0.3.0" - [dev-dependencies.serde_json] + [dev-dependencies.proptest] version = "1" diff --git a/rust-pem.spec b/rust-pem.spec index 81b3252..914ca13 100644 --- a/rust-pem.spec +++ b/rust-pem.spec @@ -5,7 +5,7 @@ %global crate pem Name: rust-pem -Version: 1.1.1 +Version: 2.0.1 Release: %autorelease Summary: Parse and encode PEM-encoded data @@ -16,7 +16,7 @@ Source: %{crates_source} # * drop unused, benchmark-only criterion dev-dependency to speed up builds Patch: pem-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Parse and encode PEM-encoded data.} @@ -62,6 +62,18 @@ use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 13949d8..52e0bd6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pem-1.1.1.crate) = a61105cf968db35c0136e2da5575f1f2eefeb1849e15152d6d6bbaeedec8aaa6ed7e6fd86892a4094bfae2495065b090263b760ebf4ccbe131f536963d985bd2 +SHA512 (pem-2.0.1.crate) = 245d6b70be6139a3a34ecccedbf050cf5ff686f2ccf0fb27870b768704b68555da5c1cdaf3bbf57d131ccc7182dc6f5040dda292678d0d50af66fc55c28c70ae