Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-07-29 19:52:27 +02:00
parent 4fd8b73c35
commit c5ee002e8e
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -10,12 +10,17 @@ License: GPLv2+
URL: http://www.gnome.org/gnome-3/
Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-font-viewer/%{release_version}/%{name}-%{version}.tar.xz
BuildRequires: gnome-desktop3-devel
BuildRequires: meson >= 0.40.1
BuildRequires: gcc
BuildRequires: pkgconfig(glib-2.0) >= 2.35.1
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20.0
BuildRequires: pkgconfig(harfbuzz) >= 0.9.9
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: gettext
BuildRequires: gtk3-devel
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
BuildRequires: meson
BuildRequires: %{_bindir}/desktop-file-validate
BuildRequires: %{_bindir}/appstream-util
%description
Use gnome-font-viewer, the Font Viewer, to preview fonts and display
@ -35,13 +40,8 @@ name, style, type, size, version and copyright of the font.
%find_lang %{name} --with-gnome
%check
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.font-viewer.desktop
%post
update-desktop-database &> /dev/null || :
%postun
update-desktop-database &> /dev/null || :
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.font-viewer.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome.font-viewer.appdata.xml
%files -f %{name}.lang
%license COPYING