d061162
%global         release_version %(echo %{version} | awk -F. '{print $1"."$2}')
d061162
Rui Matos ea49571
Name:           gnome-font-viewer
bf4d687
Version:        3.22.0
8df44fb
Release:        1%{?dist}
Rui Matos ea49571
Summary:        Utility for previewing fonts for GNOME
Rui Matos ea49571
Rui Matos ea49571
Group:          Applications/System
Rui Matos ea49571
License:        GPLv2+
Rui Matos ea49571
#No URL for the package specifically, as of now
Rui Matos ea49571
URL:            http://www.gnome.org/gnome-3/
Rui Matos ea49571
Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-font-viewer/%{release_version}/%{name}-%{version}.tar.xz
Rui Matos ea49571
3d0bf48
BuildRequires:  gnome-desktop3-devel
Rui Matos ea49571
BuildRequires:  gtk3-devel
Rui Matos ea49571
BuildRequires:  intltool
Rui Matos ea49571
BuildRequires:  desktop-file-utils
Richard Hughes 20f75f2
BuildRequires:  libappstream-glib
Rui Matos ea49571
Rui Matos ea49571
%description
Rui Matos ea49571
Use gnome-font-viewer, the Font Viewer, to preview fonts and display
Rui Matos ea49571
information about a specified font. You can use the Font Viewer to display the
Rui Matos ea49571
name, style, type, size, version and copyright of the font.
Rui Matos ea49571
Rui Matos ea49571
%prep
Rui Matos ea49571
%setup -q
Rui Matos ea49571
Rui Matos ea49571
%build
Rui Matos ea49571
%configure --disable-silent-rules
Rui Matos ea49571
make %{?_smp_mflags}
Rui Matos ea49571
Rui Matos ea49571
Rui Matos ea49571
%install
Rui Matos ea49571
make install DESTDIR=$RPM_BUILD_ROOT
Rui Matos ea49571
Richard Hughes 20f75f2
# Update the screenshot shown in the software center
Richard Hughes 20f75f2
#
Richard Hughes 20f75f2
# NOTE: It would be *awesome* if this file was pushed upstream.
Richard Hughes 20f75f2
#
Richard Hughes 20f75f2
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
Richard Hughes 20f75f2
#
Richard Hughes 20f75f2
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/org.gnome.font-viewer.appdata.xml \
Richard Hughes 20f75f2
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.font-viewer/a.png \
Richard Hughes 20f75f2
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/org.gnome.font-viewer/b.png 
Richard Hughes 20f75f2
Rui Matos ea49571
%find_lang %{name} --with-gnome
Rui Matos ea49571
861887d
%check
861887d
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.font-viewer.desktop
861887d
Rui Matos ea49571
%post
Rui Matos ea49571
update-desktop-database &> /dev/null || :
Rui Matos ea49571
Rui Matos ea49571
%postun
Rui Matos ea49571
update-desktop-database &> /dev/null || :
Rui Matos ea49571
Rui Matos ea49571
%files -f %{name}.lang
38fd89c
%license COPYING
38fd89c
%doc NEWS
Rui Matos ea49571
Rui Matos ea49571
%{_bindir}/%{name}
Rui Matos ea49571
%{_bindir}/gnome-thumbnail-font
861887d
%{_datadir}/appdata/org.gnome.font-viewer.appdata.xml
861887d
%{_datadir}/applications/org.gnome.font-viewer.desktop
861887d
%{_datadir}/dbus-1/services/org.gnome.font-viewer.service
Rui Matos ea49571
%{_datadir}/thumbnailers/%{name}.thumbnailer
Rui Matos ea49571
Rui Matos ea49571
Rui Matos ea49571
%changelog
bf4d687
* Thu Sep 22 2016 Kalev Lember <klember@redhat.com> - 3.22.0-1
bf4d687
- Update to 3.22.0
bf4d687
daa4743
* Thu May 12 2016 Kalev Lember <klember@redhat.com> - 3.20.2-1
daa4743
- Update to 3.20.2
daa4743
8df44fb
* Wed Mar 30 2016 Kalev Lember <klember@redhat.com> - 3.20.0-1
8df44fb
- Update to 3.20.0
8df44fb
d842096
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.16.2-4
d842096
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d842096
594733b
* Wed Jul 22 2015 David King <amigadave@amigadave.com> - 3.16.2-3
594733b
- Bump for new gnome-desktop3
594733b
27424ca
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.16.2-2
27424ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
27424ca
ecdd9b8
* Wed May 13 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.2-1
ecdd9b8
- Update to 3.16.2
38fd89c
- Use license macro for the COPYING file
ecdd9b8
Richard Hughes 20f75f2
* Mon Mar 30 2015 Richard Hughes <rhughes@redhat.com> - 3.16.0-2
Richard Hughes 20f75f2
- Use better AppData screenshots
Richard Hughes 20f75f2
80e1e01
* Tue Mar 24 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.0-1
80e1e01
- Update to 3.16.0
80e1e01
Richard Hughes 4fbd47c
* Thu Feb 19 2015 Richard Hughes <rhughes@redhat.com> - 3.15.90-1
Richard Hughes 4fbd47c
- Update to 3.15.90
Richard Hughes 4fbd47c
0c1549e
* Tue Sep 23 2014 Kalev Lember <kalevlember@gmail.com> - 3.14.0-1
0c1549e
- Update to 3.14.0
0c1549e
861887d
* Thu Aug 21 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.90-1
861887d
- Update to 3.13.90
861887d
70bc9b6
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12.0-3
70bc9b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
70bc9b6
be8ed25
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12.0-2
be8ed25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
be8ed25
Richard Hughes 84fcd4f
* Wed Mar 26 2014 Richard Hughes <rhughes@redhat.com> - 3.12.0-1
Richard Hughes 84fcd4f
- Update to 3.12.0
Richard Hughes 84fcd4f
Richard Hughes f166c77
* Wed Feb 19 2014 Richard Hughes <rhughes@redhat.com> - 3.10.0-2
Richard Hughes f166c77
- Rebuild for gnome-desktop soname bump
Richard Hughes f166c77
Richard Hughes 5a33a45
* Wed Sep 25 2013 Richard Hughes <rhughes@redhat.com> - 3.10.0-1
Richard Hughes 5a33a45
- Update to 3.10.0
Richard Hughes 5a33a45
21770ee
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 3.9.90-2
21770ee
- Rebuilt for libgnome-desktop soname bump
21770ee
62fc884
* Thu Aug 22 2013 Kalev Lember <kalevlember@gmail.com> - 3.9.90-1
62fc884
- Update to 3.9.90
62fc884
700caaa
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.0-2
700caaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
700caaa
cc6b3b3
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-1
cc6b3b3
- Update to 3.8.0
cc6b3b3
01bce1b
* Thu Mar  7 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.91-1
01bce1b
- Update to 3.7.91
01bce1b
c8aab3d
* Wed Feb 20 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.5-2
c8aab3d
- Rebuilt for libgnome-desktop soname bump
c8aab3d
67c71a9
* Thu Feb 07 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.5-1
67c71a9
- Update to 3.7.5
67c71a9
c3aea4a
* Wed Jan 16 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.4-1
c3aea4a
- Update to 3.7.4
c3aea4a
70b35df
* Fri Dec 21 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.3-1
70b35df
- Update to 3.7.3
70b35df
Rui Matos 3343fbf
* Thu Dec  6 2012 Rui Matos <rmatos@redhat.com> - 3.6.2-1
Rui Matos 3343fbf
- Update to 3.6.2
Rui Matos 3343fbf
676d23b
* Tue Nov 13 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
676d23b
- Update to 3.6.1
676d23b
dfecf44
* Tue Sep 25 2012 Matthias Clasen <mclasen@redhat.com> - 3.6.0-1
dfecf44
- Update to 3.6.0
dfecf44
1333a2d
* Wed Sep 19 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.92-1
1333a2d
- Update to 3.5.92
1333a2d
a669af5
* Wed Jul 18 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.4-1
a669af5
- Update to 3.5.4
a669af5
1e73e18
* Thu Jun 28 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.3-1
1e73e18
- Update to 3.5.3
1e73e18
59b65d6
* Fri Jun  8 2012 Matthias Clasen <mclasen@redhat.com> - 3.5.2-1
59b65d6
- Update to 3.5.2
59b65d6
62adf27
* Sat May 05 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.1-1
62adf27
- Update to 3.5.1
62adf27
Rui Matos ea49571
* Wed Mar 28 2012 Rui Matos <rmatos@redhat.com> - 3.4.0-3
Rui Matos ea49571
- Use %%global instead of %%define
Rui Matos ea49571
- Don't define Version as the result of macro expansions so that we
Rui Matos ea49571
  don't break automated tools
Rui Matos ea49571
Rui Matos ea49571
* Wed Mar 28 2012 Rui Matos <rmatos@redhat.com> - 3.4.0-2
Rui Matos ea49571
- Use rpm macros to define the version number
Rui Matos ea49571
- Do verbose builds
Rui Matos ea49571
Rui Matos ea49571
* Tue Mar 27 2012 Rui Matos <rmatos@redhat.com> - 3.4.0-1
Rui Matos ea49571
- Update to 3.4.0
Rui Matos ea49571
Rui Matos ea49571
* Mon Mar  5 2012 Rui Matos <rmatos@redhat.com> - 3.3.2.1-3
Rui Matos ea49571
- spec file cleanup
Rui Matos ea49571
- removed unneeded GConf2-devel BR
Rui Matos ea49571
- call update-desktop-database to rebuild the MIME types cache
Rui Matos ea49571
Rui Matos ea49571
* Tue Dec 06 2011 Anuj More <anujmorex@gmail.com> - 3.3.2.1-2
Rui Matos ea49571
- made some formating changes in the spec file
Rui Matos ea49571
Rui Matos ea49571
* Fri Nov 18 2011 Anuj More <anujmorex@gmail.com> - 3.3.2.1-1
Rui Matos ea49571
- rebuilt
Rui Matos ea49571