Validate AppData and desktop file during check

f38
David King 10 years ago
parent df2d8a8ba5
commit 6647067dd1

@ -0,0 +1,26 @@
=== modified file 'po/fr.po'
--- po/fr.po 2015-02-23 05:16:45 +0000
+++ po/fr.po 2015-03-02 07:29:26 +0000
@@ -302,7 +302,7 @@
#: ../data/simple-scan.desktop.in.h:4
msgid "scan;scanner;flatbed;adf;"
-msgstr "scanner;numériseur;à plat;adf"
+msgstr "scanner;numériseur;à plat;adf;"
#: ../data/org.gnome.SimpleScan.gschema.xml.in.h:1
msgid "Device to scan from"
=== modified file 'po/sv.po'
--- po/sv.po 2015-02-23 05:16:45 +0000
+++ po/sv.po 2015-03-02 07:29:50 +0000
@@ -301,7 +301,7 @@
#: ../data/simple-scan.desktop.in.h:4
msgid "scan;scanner;flatbed;adf;"
-msgstr "scan;scanner;flatbädd;adf;skan;skanner"
+msgstr "scan;scanner;flatbädd;adf;skan;skanner;"
#: ../data/org.gnome.SimpleScan.gschema.xml.in.h:1
msgid "Device to scan from"

@ -6,10 +6,14 @@ Summary: Simple scanning utility
License: GPLv3+ License: GPLv3+
URL: https://launchpad.net/%{name} URL: https://launchpad.net/%{name}
Source0: https://launchpad.net/%{name}/3.15/%{version}/+download/%{name}-%{version}.tar.xz Source0: https://launchpad.net/%{name}/3.15/%{version}/+download/%{name}-%{version}.tar.xz
# https://bugs.launchpad.net/simple-scan/+bug/1427090
Patch0: simple-scan-3.15.91-desktop-keywords.patch
BuildRequires: intltool BuildRequires: intltool
BuildRequires: sane-backends-devel BuildRequires: sane-backends-devel
BuildRequires: itstool BuildRequires: itstool
BuildRequires: /usr/bin/appstream-util
BuildRequires: /usr/bin/desktop-file-validate
BuildRequires: /usr/bin/valac BuildRequires: /usr/bin/valac
BuildRequires: pkgconfig(colord) BuildRequires: pkgconfig(colord)
BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gtk+-3.0)
@ -25,6 +29,7 @@ scanner and quickly have the image/document in an appropriate format.
%prep %prep
%setup -q %setup -q
%patch0 -p0
%build %build
%configure %configure
@ -34,6 +39,12 @@ make V=1 %{?_smp_mflags}
make DESTDIR=%{buildroot} INSTALL="install -p" install make DESTDIR=%{buildroot} INSTALL="install -p" install
%find_lang %{name} --with-man --with-gnome %find_lang %{name} --with-man --with-gnome
%check
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%postun %postun
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
@ -55,6 +66,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%changelog %changelog
* Mon Mar 02 2015 David King <amigadave@amigadave.com> - 3.15.91-1 * Mon Mar 02 2015 David King <amigadave@amigadave.com> - 3.15.91-1
- Update to 3.15.91 - Update to 3.15.91
- Validate AppData and desktop file during check
* Mon Feb 16 2015 David King <amigadave@amigadave.com> - 3.15.90-1 * Mon Feb 16 2015 David King <amigadave@amigadave.com> - 3.15.90-1
- Update to 3.15.90 - Update to 3.15.90

Loading…
Cancel
Save