appdata.xml needs to be in %%{_datadir}/metainfo
This commit is contained in:
parent
c8c103d91c
commit
e59c9e0058
13
hplip.spec
13
hplip.spec
@ -7,7 +7,7 @@
|
||||
Summary: HP Linux Imaging and Printing Project
|
||||
Name: hplip
|
||||
Version: 3.20.6
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+ and MIT and BSD and IJG and Public Domain and GPLv2+ with exceptions and ISC
|
||||
|
||||
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
||||
@ -507,8 +507,8 @@ rm -f %{buildroot}%{_bindir}/foomatic-rip \
|
||||
%{buildroot}%{_datadir}/applications/hplip.desktop \
|
||||
%{buildroot}%{_datadir}/ppd/HP/*.ppd
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/appdata
|
||||
cp %{SOURCE3} %{buildroot}%{_datadir}/appdata/
|
||||
mkdir -p %{buildroot}%{_datadir}/metainfo
|
||||
cp %{SOURCE3} %{buildroot}%{_datadir}/metainfo/
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,64x64}/apps
|
||||
install -p -m644 %{buildroot}%{_datadir}/hplip/data/images/16x16/hp_logo.png \
|
||||
@ -531,7 +531,7 @@ desktop-file-install \
|
||||
--add-category HardwareSettings \
|
||||
hplip.desktop
|
||||
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
|
||||
|
||||
# install hp-uiscan desktop file
|
||||
sed -i 's/\/usr\/share\/icons\/Humanity\/devices\/48\/printer\.svg/hp_logo/' hp-uiscan.desktop
|
||||
@ -700,7 +700,7 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
||||
%{_bindir}/hp-uiscan
|
||||
%{_bindir}/hp-wificonfig
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/appdata/hplip.appdata.xml
|
||||
%{_datadir}/metainfo/hplip.appdata.xml
|
||||
# Files
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
%{_datadir}/hplip/check.py*
|
||||
@ -725,6 +725,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
||||
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
|
||||
|
||||
%changelog
|
||||
* Tue Jun 23 2020 Zdenek Dohnal <zdohnal@redhat.com> - 3.20.6-2
|
||||
- appdata.xml needs to be in %%{_datadir}/metainfo
|
||||
|
||||
* Wed Jun 17 2020 Zdenek Dohnal <zdohnal@redhat.com> - 3.20.6-1
|
||||
- 3.20.6
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user