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>
|
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
|
Source3: cargo_config
|
||||||
|
|
||||||
BuildRequires: appstream-glib
|
BuildRequires: appstream-glib
|
||||||
BuildRequires: cargo-packaging
|
BuildRequires: cargo-packaging >= 1.2.0+3
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: libxml2-tools
|
BuildRequires: libxml2-tools
|
||||||
BuildRequires: meson
|
BuildRequires: meson
|
||||||
@ -49,18 +49,18 @@ mkdir .cargo
|
|||||||
cp %{SOURCE3} .cargo/config
|
cp %{SOURCE3} .cargo/config
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RUSTFLAGS="%{__rustflags}"
|
export RUSTFLAGS="%{build_rustflags}"
|
||||||
%meson
|
%meson
|
||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export RUSTFLAGS="%{__rustflags}"
|
export RUSTFLAGS="%{build_rustflags}"
|
||||||
%meson_install
|
%meson_install
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
|
|
||||||
# Check disabled - no tests are run during cargo_test yet + failing manual tests...
|
# Check disabled - no tests are run during cargo_test yet + failing manual tests...
|
||||||
#%%check
|
#%%check
|
||||||
#export RUSTFLAGS="%%{__rustflags}"
|
#export RUSTFLAGS="%%{build_rustflags}"
|
||||||
#%%{cargo_test}
|
#%%{cargo_test}
|
||||||
# Checks disabled as they both fail atm :-) - NO FWD to distro atm.
|
# Checks disabled as they both fail atm :-) - NO FWD to distro atm.
|
||||||
#desktop-file-validate %%{buildroot}%%{_datadir}/applications/org.gnome.Snapshot.desktop
|
#desktop-file-validate %%{buildroot}%%{_datadir}/applications/org.gnome.Snapshot.desktop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user