Accepting request 1095785 from GNOME:Next
- Use %build_rustflags instead of the deprecated %__rustflags macro. Requires at least cargo-packaging 1.2.0+3. OBS-URL: https://build.opensuse.org/request/show/1095785 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/loupe?expand=0&rev=6
This commit is contained in:
parent
0e6ef729fa
commit
bfd5662d37
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 28 09:49:06 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Use %build_rustflags instead of the deprecated
|
||||
%__rustflags macro. Requires at least cargo-packaging 1.2.0+3.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 23 19:02:34 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
|
10
loupe.spec
10
loupe.spec
@ -21,7 +21,7 @@ Version: 44.2
|
||||
Release: 0
|
||||
Summary: A simple image viewer application
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://gitlab.gnome.org/Incubator/loupe
|
||||
URL: https://gitlab.gnome.org/GNOME/Incubator/loupe
|
||||
Source: %{name}-%{version}.tar.xz
|
||||
Source2: vendor.tar.zst
|
||||
Source3: cargo_config
|
||||
@ -29,7 +29,7 @@ Source3: cargo_config
|
||||
Patch: loupe-revert-gtk4-unstable-bump.patch
|
||||
|
||||
BuildRequires: appstream-glib
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: cargo-packaging >= 1.2.0+3
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkgconfig
|
||||
@ -50,18 +50,18 @@ mkdir .cargo
|
||||
cp %{SOURCE3} .cargo/config
|
||||
|
||||
%build
|
||||
export RUSTFLAGS="%{__rustflags}"
|
||||
export RUSTFLAGS="%{build_rustflags}"
|
||||
%meson \
|
||||
%{nil}
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
export RUSTFLAGS="%{__rustflags}"
|
||||
export RUSTFLAGS="%{build_rustflags}"
|
||||
%meson_install
|
||||
%find_lang %{name} %{?no_lang_C}
|
||||
|
||||
%check
|
||||
export RUSTFLAGS="%{__rustflags}"
|
||||
export RUSTFLAGS="%{build_rustflags}"
|
||||
%cargo_test
|
||||
# No meson_test exsist upstream yet, so run these manually
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome.Loupe.metainfo.xml
|
||||
|
Loading…
Reference in New Issue
Block a user