- add appstream-glib BuildRequires: for validate xml file
OBS-URL: https://build.opensuse.org/package/show/graphics/oculante?expand=0&rev=35
This commit is contained in:
parent
0d1f9ab2b2
commit
2638e3217b
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 22 00:07:11 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
|
||||
|
||||
- add appstream-glib BuildRequires: for validate xml file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 21 12:23:35 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
%bcond_without test
|
||||
%define force_gcc_version 13
|
||||
%define appid io.github.woelper.Oculante
|
||||
Name: oculante
|
||||
Version: 0.9.0
|
||||
Release: 0
|
||||
@ -26,6 +27,7 @@ License: MIT
|
||||
URL: https://github.com/woelper/oculante
|
||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.zst
|
||||
BuildRequires: appstream-glib
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
@ -61,8 +63,12 @@ export CXX="g++-%{?force_gcc_version}"
|
||||
|
||||
%install
|
||||
install -Dpm755 target/release/%{name} -t %{buildroot}%{_bindir}
|
||||
install -Dpm644 res/icons/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
install -Dpm644 res/%{name}.desktop -t %{buildroot}%{_datadir}/applications
|
||||
install -Dpm644 res/icons/icon.png \
|
||||
%{buildroot}%{_datadir}/pixmaps/%{appid}.png
|
||||
install -Dpm644 res/flathub/%{appid}.desktop -t \
|
||||
%{buildroot}%{_datadir}/applications
|
||||
install -Dpm644 res/flathub/%{appid}.metainfo.xml -t \
|
||||
%{buildroot}%{_datadir}/metainfo
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
@ -72,14 +78,16 @@ export CXX="g++-%{?force_gcc_version}"
|
||||
%endif
|
||||
%{cargo_test} -- --skip=tests::net --skip=bench
|
||||
%endif
|
||||
|
||||
appstream-util validate-relax --nonet \
|
||||
%{buildroot}%{_datadir}/metainfo/%{appid}.metainfo.xml
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
||||
|
||||
%files
|
||||
%license LICENSE*
|
||||
%doc README* CHANGELOG.md
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/pixmaps/%{appid}.png
|
||||
%{_datadir}/applications/%{appid}.desktop
|
||||
%{_datadir}/metainfo
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user