forked from pool/snapshot
Use new rustflags
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/snapshot?expand=0&rev=2
This commit is contained in:
parent
fedc10d9ae
commit
7781160a4a
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 28 10:09:30 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 31 19:07:56 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
|
@ -27,7 +27,7 @@ Source2: vendor.tar.zst
|
||||
Source3: cargo_config
|
||||
|
||||
BuildRequires: appstream-glib
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: cargo-packaging >= 1.2.0+3
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libxml2-tools
|
||||
BuildRequires: meson
|
||||
@ -49,18 +49,18 @@ mkdir .cargo
|
||||
cp %{SOURCE3} .cargo/config
|
||||
|
||||
%build
|
||||
export RUSTFLAGS="%{__rustflags}"
|
||||
export RUSTFLAGS="%{build_rustflags}"
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
export RUSTFLAGS="%{__rustflags}"
|
||||
export RUSTFLAGS="%{build_rustflags}"
|
||||
%meson_install
|
||||
%find_lang %{name} %{?no_lang_C}
|
||||
|
||||
# Check disabled - no tests are run during cargo_test yet + failing manual tests...
|
||||
#%%check
|
||||
#export RUSTFLAGS="%%{__rustflags}"
|
||||
#export RUSTFLAGS="%%{build_rustflags}"
|
||||
#%%{cargo_test}
|
||||
# Checks disabled as they both fail atm :-) - NO FWD to distro atm.
|
||||
#desktop-file-validate %%{buildroot}%%{_datadir}/applications/org.gnome.Snapshot.desktop
|
||||
|
Loading…
x
Reference in New Issue
Block a user