SHA256
1
0
forked from pool/snapshot
Bjørn Lie 2023-06-28 10:10:20 +00:00 committed by Git OBS Bridge
parent fedc10d9ae
commit 7781160a4a
2 changed files with 10 additions and 4 deletions

View File

@ -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>

View File

@ -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