Validate AppData in check
https://fedoraproject.org/wiki/Packaging:AppData
This commit is contained in:
parent
91ae569ab1
commit
55a5b771ae
@ -18,6 +18,7 @@ BuildRequires: gettext
|
|||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: itstool
|
BuildRequires: itstool
|
||||||
BuildRequires: mpfr-devel
|
BuildRequires: mpfr-devel
|
||||||
|
BuildRequires: /usr/bin/appstream-util
|
||||||
|
|
||||||
Provides: gcalctool = 6.6.2-3
|
Provides: gcalctool = 6.6.2-3
|
||||||
Obsoletes: gcalctool < 6.6.2-3
|
Obsoletes: gcalctool < 6.6.2-3
|
||||||
@ -39,13 +40,15 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnome-calculator.desktop
|
|
||||||
|
|
||||||
%find_lang %{name} --with-gnome --all-name
|
%find_lang %{name} --with-gnome --all-name
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/gnome-calculator.appdata.xml
|
||||||
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/gnome-calculator.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 || :
|
||||||
@ -77,6 +80,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|||||||
- Update man page globs in files section
|
- Update man page globs in files section
|
||||||
- Use pkgconfig for BuildRequires
|
- Use pkgconfig for BuildRequires
|
||||||
- Remove obsolete glib2 dependencies for GSettings schema
|
- Remove obsolete glib2 dependencies for GSettings schema
|
||||||
|
- Validate AppData in check
|
||||||
|
|
||||||
* Fri Dec 19 2014 Richard Hughes <rhughes@redhat.com> - 3.15.1-1
|
* Fri Dec 19 2014 Richard Hughes <rhughes@redhat.com> - 3.15.1-1
|
||||||
- Update to 3.15.1
|
- Update to 3.15.1
|
||||||
|
Loading…
Reference in New Issue
Block a user