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