Update the screenshot shown in the software center

This commit is contained in:
Richard Hughes 2015-03-30 17:41:20 +01:00
parent 35c525fced
commit ae832064df

View File

@ -2,7 +2,7 @@
Name: devhelp
Version: 3.16.0
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 1
License: GPLv2+
Group: Development/Tools
@ -19,6 +19,7 @@ BuildRequires: gettext
BuildRequires: intltool
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: libappstream-glib
%description
Devhelp is an API documentation browser for the GNOME desktop.
@ -44,6 +45,15 @@ make %{?_smp_mflags} CFLAGS="$CFLAGS -fno-strict-aliasing"
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Update the screenshot shown in the software center
#
# NOTE: It would be *awesome* if this file was pushed upstream.
#
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
#
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/devhelp.appdata.xml \
https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/devhelp/a.png
find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
mkdir -p $RPM_BUILD_ROOT%{_datadir}/devhelp/books
@ -99,6 +109,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%{_libdir}/pkgconfig/*
%changelog
* Mon Mar 30 2015 Richard Hughes <rhughes@redhat.com> - 1:3.16.0-2
- Use better AppData screenshots
* Mon Mar 23 2015 Kalev Lember <kalevlember@gmail.com> - 1:3.16.0-1
- Update to 3.16.0