diff --git a/0003-use-config.toml-as-config.patch b/0003-use-config.toml-as-config.patch new file mode 100644 index 0000000000000000000000000000000000000000..79764ac1a4597f4596a258772932a49964b2ecdb --- /dev/null +++ b/0003-use-config.toml-as-config.patch @@ -0,0 +1,13 @@ +diff --git a/data/macros.cargo b/data/macros.cargo +index e54705a..eff8bae 100644 +--- a/data/macros.cargo ++++ b/data/macros.cargo +@@ -18,7 +18,7 @@ + %cargo_prep (\ + set -eu \ + %{__mkdir} -p .cargo \ +-cat > .cargo/config << EOF \ ++cat > .cargo/config.toml << EOF \ + [build]\ + rustc = "%{__rustc}"\ + rustdoc = "%{__rustdoc}"\ diff --git a/rust-packaging.spec b/rust-packaging.spec index 163d0a570a08e7d0b2b62ff26ce4cbabf9e5805f..6a3389b87144fcb17c7143597929c580870e10a1 100644 --- a/rust-packaging.spec +++ b/rust-packaging.spec @@ -4,13 +4,14 @@ Name: rust-packaging Version: 23 -Release: 2 +Release: 3 Summary: RPM macros for building Rust packages on various architectures License: MIT URL: https://pagure.io/fedora-rust/rust2rpm Source: https://pagure.io/fedora-rust/rust2rpm/archive/v%{version}/rust2rpm-v%{version}.tar.gz Patch1: 0001-remove-test-spec-with-opensuse-tomlfile.patch Patch2: 0002-rust-macros-do-not-strip.patch +Patch3: 0003-use-config.toml-as-config.patch BuildRequires: python3-devel python3-setuptools BuildRequires: python3-pbr python3-pip python3-wheel @@ -75,6 +76,9 @@ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \ %{python3_sitelib}/rust2rpm-*.dist-info/ %changelog +* Sun Aug 17 2025 Funda Wang - 23-3 +- use config.toml rather than config for projects + * Mon Aug 04 2025 Funda Wang - 23-2 - do not strip binaries, as it is required for debugsource generating