Accepting request 1094347 from GNOME:Factory

OBS-URL: https://build.opensuse.org/request/show/1094347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/librsvg?expand=0&rev=134
This commit is contained in:
Dominique Leuenberger 2023-06-22 21:24:37 +00:00 committed by Git OBS Bridge
commit 464b9856df
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jun 21 06:22:07 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %build_rustflags instead of the deprecated
%__default_rustflags macro. Requires at least cargo-packaging
1.2.0+3 (boo#1212333).
-------------------------------------------------------------------
Wed Jun 14 06:24:36 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -31,7 +31,7 @@ Source2: vendor.tar.zst
Source3: cargo_config
Source99: baselibs.conf
BuildRequires: cargo-packaging >= 1.2.0+2
BuildRequires: cargo-packaging >= 1.2.0+3
BuildRequires: gobject-introspection-devel
BuildRequires: libtool
BuildRequires: pkgconfig
@ -140,7 +140,7 @@ mkdir .cargo
cp %{SOURCE3} .cargo/config
%build
export RUSTFLAGS="%{__default_rustflags}"
export RUSTFLAGS="%{build_rustflags}"
NOCONFIGURE=1 ./autogen.sh
%configure \
--disable-static\
@ -150,14 +150,14 @@ NOCONFIGURE=1 ./autogen.sh
%make_build
%install
export RUSTFLAGS="%{__default_rustflags}"
export RUSTFLAGS="%{build_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="%{__default_rustflags}"
export RUSTFLAGS="%{build_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