diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6d110e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/proc-macro-crate-2.0.1.crate diff --git a/.rust-proc-macro-crate.metadata b/.rust-proc-macro-crate.metadata index e69de29..bcde162 100644 --- a/.rust-proc-macro-crate.metadata +++ b/.rust-proc-macro-crate.metadata @@ -0,0 +1 @@ +664f1aa7a81cbf8cc5ee2923a39447e2c25a6080 SOURCES/proc-macro-crate-2.0.1.crate diff --git a/SOURCES/proc-macro-crate-1.3.1.crate b/SOURCES/proc-macro-crate-1.3.1.crate deleted file mode 100644 index aa4af98..0000000 Binary files a/SOURCES/proc-macro-crate-1.3.1.crate and /dev/null differ diff --git a/SOURCES/proc-macro-crate-fix-metadata.diff b/SOURCES/proc-macro-crate-fix-metadata.diff new file mode 100644 index 0000000..3571667 --- /dev/null +++ b/SOURCES/proc-macro-crate-fix-metadata.diff @@ -0,0 +1,15 @@ +--- proc-macro-crate-2.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ proc-macro-crate-2.0.1/Cargo.toml 2024-01-12T15:39:33.968832+00:00 +@@ -31,10 +31,10 @@ + repository = "https://github.com/bkchr/proc-macro-crate" + + [dependencies.toml_datetime] +-version = "=0.6.3" ++version = "0.6.3" + + [dependencies.toml_edit] +-version = "=0.20.2" ++version = "0.20.2" + + [dev-dependencies.proc-macro2] + version = "1.0.67" diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..ca0439f --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,5 @@ +[tests] +skip = ["workspace_deps_working"] +skip-exact = true +comments = ["skip a test that can only be run in-tree"] + diff --git a/SPECS/rust-proc-macro-crate.spec b/SPECS/rust-proc-macro-crate.spec index 9d290f1..bd73913 100644 --- a/SPECS/rust-proc-macro-crate.spec +++ b/SPECS/rust-proc-macro-crate.spec @@ -8,22 +8,25 @@ }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate proc-macro-crate Name: rust-proc-macro-crate -Version: 1.3.1 +Version: 2.0.1 Release: %autorelease Summary: Replacement for crate (macro_rules keyword) in proc-macros License: MIT OR Apache-2.0 URL: https://crates.io/crates/proc-macro-crate Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * relax exact toml_datetime and toml_edit dependencies +Patch: proc-macro-crate-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Replacement for crate (macro_rules keyword) in proc-macros.} @@ -58,7 +61,7 @@ use the "default" 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 @@ -72,13 +75,20 @@ use the "default" feature of the "%{crate}" crate. %if %{with check} %check -%cargo_test +# * skip a test that can only be run in-tree +%cargo_test -- -- --exact --skip workspace_deps_working %endif %changelog -* Mon Jan 15 2024 Arkady L. Shane - 1.3.1-1 +* Mon Jan 15 2024 Arkady L. Shane - 2.0.1-1 - Rebuilt for MSVSphere 9.3 +* Fri Jan 12 2024 Fabio Valentini - 2.0.1-1 +- Update to version 2.0.1 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Mon Apr 17 2023 Fabio Valentini - 1.3.1-1 - Update to version 1.3.1; Fixes RHBZ#2163714