diff --git a/librsvg.changes b/librsvg.changes index dff71e3..f591ea3 100644 --- a/librsvg.changes +++ b/librsvg.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 14 06:24:36 UTC 2023 - Dominique Leuenberger + +- Use %__default_rustflags instead of the deprecated %__rustflags + macro. Requires at least cargo-packaging 1.2.0+2 (boo#1212333). + ------------------------------------------------------------------- Wed May 31 07:46:07 UTC 2023 - Bjørn Lie diff --git a/librsvg.spec b/librsvg.spec index 998ef53..8799e7f 100644 --- a/librsvg.spec +++ b/librsvg.spec @@ -31,7 +31,7 @@ Source2: vendor.tar.zst Source3: cargo_config Source99: baselibs.conf -BuildRequires: cargo-packaging +BuildRequires: cargo-packaging >= 1.2.0+2 BuildRequires: gobject-introspection-devel BuildRequires: libtool BuildRequires: pkgconfig @@ -140,7 +140,7 @@ mkdir .cargo cp %{SOURCE3} .cargo/config %build -export RUSTFLAGS="%{__rustflags}" +export RUSTFLAGS="%{__default_rustflags}" NOCONFIGURE=1 ./autogen.sh %configure \ --disable-static\ @@ -150,14 +150,14 @@ NOCONFIGURE=1 ./autogen.sh %make_build %install -export RUSTFLAGS="%{__rustflags}" +export RUSTFLAGS="%{__default_rustflags}" %make_install find %{buildroot} -type f -name "*.la" -delete -print # %%doc is used to package such contents rm -rf %{buildroot}%{_datadir}/doc/%{name}/CO*.md %check -export RUSTFLAGS="%{__rustflags}" +export RUSTFLAGS="%{__default_rustflags}" %ifarch x86_64 %{?x86_64} # 2023-01-15: the pdf-related tests are failing (bsc#1207167) # 2023-03-17 cairo-1.17.8 filter_morphology svg test is failing