Blame SPECS/gucharmap.spec

72371f
%define glib2_version 2.32.0
72371f
%define gtk3_version 3.15.9
72371f
72371f
Name:           gucharmap
72371f
Version:        10.0.4
72371f
Release:        1%{?dist}
72371f
Summary:        Unicode character picker and font browser
72371f
72371f
License:        GPLv3+ and GFDL and MIT
72371f
# GPL for the source code, GFDL for the docs, MIT for Unicode data
72371f
URL:            https://wiki.gnome.org/Apps/Gucharmap
72371f
Source:         https://download.gnome.org/sources/gucharmap/10.0/gucharmap-%{version}.tar.xz
72371f
Source1:        Unihan.zip
72371f
72371f
# Backported from upstream
72371f
Patch0:         0001-build-Explicitly-link-to-libdl.patch
72371f
72371f
# no Unihan in RHEL
72371f
Patch1:         fix-locale-unihan.patch
72371f
72371f
BuildRequires:  libappstream-glib
72371f
BuildRequires:  glib2-devel >= %{glib2_version}
72371f
BuildRequires:  gtk3-devel >= %{gtk3_version}
72371f
BuildRequires:  gobject-introspection-devel
72371f
BuildRequires:  gettext
72371f
BuildRequires:  intltool
72371f
BuildRequires:  itstool
72371f
BuildRequires:  /usr/bin/appstream-util
72371f
BuildRequires:  /usr/bin/desktop-file-validate
72371f
BuildRequires:  unicode-ucd
72371f
BuildRequires:  perl(Env)
72371f
# for patch0
72371f
BuildRequires:  autoconf automake yelp-tools
72371f
72371f
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
72371f
72371f
%description
72371f
This program allows you to browse through all the available Unicode
72371f
characters and categories for the installed fonts, and to examine their
72371f
detailed properties. It is an easy way to find the character you might
72371f
only know by its Unicode name or code point.
72371f
72371f
%package libs
72371f
Summary: libgucharmap library
72371f
72371f
%description libs
72371f
The %{name}-libs package contains the libgucharmap library.
72371f
72371f
%package devel
72371f
Summary: Libraries and headers for libgucharmap
72371f
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
72371f
72371f
%description devel
72371f
The gucharmap-devel package contains header files and other resources
72371f
needed to use the libgucharmap library.
72371f
72371f
%prep
72371f
%autosetup -p1
72371f
72371f
%build
72371f
cp %{SOURCE1} %{_builddir}/%{?buildsubdir}
72371f
# for patch0
72371f
autoreconf -fi
72371f
72371f
%configure --with-gtk=3.0 \
72371f
           --enable-introspection \
72371f
           --with-unicode-data=%{_datadir}/unicode/ucd
72371f
make %{?_smp_mflags}
72371f
72371f
%install
72371f
%make_install
72371f
72371f
# Update the screenshot shown in the software center
72371f
#
72371f
# NOTE: It would be *awesome* if this file was pushed upstream.
72371f
#
72371f
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
72371f
#
72371f
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/metainfo/gucharmap.appdata.xml \
72371f
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gucharmap/a.png \
72371f
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gucharmap/b.png 
72371f
72371f
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
72371f
72371f
%find_lang gucharmap --with-gnome
72371f
72371f
%check
72371f
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gucharmap.desktop
72371f
72371f
%post libs -p /sbin/ldconfig
72371f
%postun libs -p /sbin/ldconfig
72371f
72371f
%post
72371f
update-desktop-database &> /dev/null || :
72371f
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
72371f
72371f
%postun
72371f
update-desktop-database &> /dev/null || :
72371f
if [ $1 -eq 0 ] ; then
72371f
  touch --no-create %{_datadir}/icons/hicolor &>/dev/null
72371f
  gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
72371f
  glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
72371f
fi
72371f
72371f
%posttrans
72371f
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
72371f
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
72371f
72371f
%files -f gucharmap.lang
72371f
%license COPYING
72371f
%doc AUTHORS NEWS
72371f
%{_bindir}/charmap
72371f
%{_bindir}/gucharmap
72371f
%{_bindir}/gnome-character-map
72371f
%{_datadir}/applications/gucharmap.desktop
72371f
%{_datadir}/glib-2.0/schemas/org.gnome.Charmap.enums.xml
72371f
%{_datadir}/glib-2.0/schemas/org.gnome.Charmap.gschema.xml
72371f
%{_datadir}/metainfo/gucharmap.appdata.xml
72371f
72371f
%files libs
72371f
%license COPYING
72371f
%{_libdir}/libgucharmap_2_90.so.*
72371f
%{_libdir}/girepository-1.0/
72371f
72371f
%files devel
72371f
%{_includedir}/gucharmap-2.90
72371f
%{_libdir}/libgucharmap_2_90.so
72371f
%{_libdir}/pkgconfig/gucharmap-2.90.pc
72371f
%{_datadir}/gir-1.0
72371f
72371f
72371f
%changelog
72371f
* Wed Jun 06 2018 Richard Hughes <rhughes@redhat.com> - 10.0.4-1
72371f
- Update to 10.0.4
72371f
- Resolves: #1569279
72371f
72371f
* Fri Mar 10 2017 Kalev Lember <klember@redhat.com> - 3.18.2-1
72371f
- Update to 3.18.2
72371f
- Resolves: #1386984
72371f
72371f
* Fri Jul 01 2016 Kalev Lember <klember@redhat.com> - 3.14.2-2
72371f
- Update translations
72371f
- Resolves: #1304259
72371f
72371f
* Mon Mar 23 2015 Richard Hughes <rhughes@redhat.com> - 3.14.2-1
72371f
- Update to 3.14.2
72371f
- Resolves: #1174590
72371f
72371f
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.8.2-3
72371f
- Mass rebuild 2014-01-24
72371f
72371f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.8.2-2
72371f
- Mass rebuild 2013-12-27
72371f
72371f
* Mon May 13 2013 Richard Hughes <rhughes@redhat.com> - 3.8.2-1
72371f
- Update to 3.8.2
72371f
72371f
* Mon Apr 15 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.1-1
72371f
- Update to 3.8.1
72371f
72371f
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-1
72371f
- Update to 3.8.0
72371f
72371f
* Tue Mar 19 2013 Richard Hughes <rhughes@redhat.com> - 3.7.92-1
72371f
- Update to 3.7.92
72371f
72371f
* Fri Feb 22 2013 Kalev Lember <kalevlember@gmail.com> - 3.6.1-3
72371f
- Drop the desktop file vendor prefix
72371f
72371f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.1-2
72371f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
72371f
72371f
* Tue Nov 13 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
72371f
- Update to 3.6.1
72371f
72371f
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.0-1
72371f
- Update to 3.6.0
72371f
72371f
* Tue Sep 25 2012 Matthias Clasen <mclasen@redhat.com> - 3.5.99-1
72371f
- Update to 3.5.99
72371f
72371f
* Tue Aug 21 2012 Richard Hughes <hughsient@gmail.com> - 3.5.90-1
72371f
- Update to 3.5.90
72371f
72371f
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-2
72371f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
72371f
72371f
* Mon Jun 25 2012 Richard Hughes <hughsient@gmail.com> - 3.5.1-1
72371f
- Update to 3.5.1
72371f
72371f
* Thu Jun 07 2012 Richard Hughes <hughsient@gmail.com> - 3.5.0-1
72371f
- Update to 3.5.0
72371f
72371f
* Tue Apr 24 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1.1-2
72371f
- Silence rpm scriptlet output
72371f
72371f
* Tue Apr 17 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1.1-1
72371f
- Update to 3.4.1.1
72371f
72371f
* Tue Mar 27 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.0.1-1
72371f
- Update to 3.4.0.1
72371f
72371f
* Wed Mar  7 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.1-2
72371f
- Fix pc file
72371f
72371f
* Tue Feb  7 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.1-1
72371f
- Update to 3.3.1
72371f
72371f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-2
72371f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
72371f
72371f
* Tue Dec 20 2011 Matthias Clasen <mclasen@redhat.com> - 3.3.0-1
72371f
- Update to 3.3.0
72371f
72371f
* Tue Nov 22 2011 Matthias Clasen <mclasen@redhat.com> - 3.2.2-1
72371f
- Update to 3.2.2
72371f
72371f
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
72371f
- Rebuilt for glibc bug#747377
72371f
72371f
* Tue Oct 18 2011 Matthias Clasen <mclasen@redhat.com> - 3.2.1-1
72371f
- Update to 3.2.1
72371f
72371f
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 3.2.0-1
72371f
- Update to 3.2.0
72371f
72371f
* Tue Sep 20 2011 Matthias Clasen <mclasen@redhat.com> - 3.1.92-1
72371f
- Update to 3.1.92
72371f
72371f
* Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 3.0.1-2
72371f
- Update scriptlets
72371f
72371f
* Mon Apr 25 2011 Matthias Clasen <mclasen@redhat.com> - 3.0.1-1
72371f
- Update to 3.0.1
72371f
72371f
* Mon Apr  4 2011 Matthias Clasen <mclasen@redhat.com> - 3.0.0-1
72371f
- Update to 3.0.0
72371f
72371f
* Thu Feb 24 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.2-6
72371f
- Enable introspection
72371f
72371f
* Thu Feb 10 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.2-5
72371f
- Rebuild against newer gtk
72371f
72371f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.33.2-4
72371f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
72371f
72371f
* Wed Feb  2 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.2-3
72371f
- Rebuild
72371f
72371f
* Mon Jan 10 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.2-2
72371f
- Rebuild
72371f
72371f
* Fri Jan  7 2011 Matthias Clasen <mclasen@redhat.com> - 2.33.2-1
72371f
- Update to 2.33.2
72371f
72371f
* Fri Dec  3 2010 Matthias Clasen <mclasen@redhat.com> - 2.33.2-0.2.gitc50414f
72371f
- Rebuild against new gtk
72371f
72371f
* Tue Nov  2 2010 Matthias Clasen <mclasen@redhat.com> - 2.33.2-0.1.gitc50414f
72371f
- Git snapshot that builds against new gtk3
72371f
72371f
* Mon Nov  1 2010 Matthias Clasen <mclasen@redhat.com> - 2.33.0-3
72371f
- Update license field to match changed license (#639133)
72371f
72371f
* Wed Oct  6 2010 Paul Howarth <paul@city-fan.org> - 2.33.0-2
72371f
- gtk2 dependencies become gtk3 dependencies
72371f
72371f
* Mon Oct  4 2010 Matthias Clasen <mclasen@redhat.com> - 2.33.0-1
72371f
- Update to 2.33.0
72371f
72371f
* Wed Sep 29 2010 Matthias Clasen <mclasen@redhat.com> - 2.32.0-1
72371f
- Update to 2.32.0
72371f
72371f
* Tue Aug 31 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.91-1
72371f
- Update to 2.31.91
72371f
72371f
* Thu Aug 19 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.90-1
72371f
- Update to 2.31.90
72371f
72371f
* Mon Apr 26 2010 Matthias Clasen <mclasen@redhat.com> - 2.30.1-1
72371f
- Update to 2.30.1
72371f
72371f
* Mon Mar 29 2010 Matthias Clasen <mclasen@redhat.com> - 2.30.0-1
72371f
- Update to 2.30.0
72371f
72371f
* Thu Mar 11 2010 Matthias Clasen <mclasen@redhat.com> - 2.29.92-1
72371f
- Update to 2.29.92
72371f
72371f
* Fri Dec  4 2009 Matthias Clasen <mclasen@redhat.com> - 2.29.1-1
72371f
- Update to 2.29.1
72371f
72371f
* Mon Oct 19 2009 Matthias Clasen <mclasen@redhat.com> - 2.28.1-1
72371f
- Update to 2.28.1
72371f
72371f
* Mon Sep 21 2009 Matthias Clasen <mclasen@redhat.com> - 2.28.0-1
72371f
- Update to 2.28.0
72371f
72371f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.26.3.1-3
72371f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
72371f
72371f
* Wed Jul 15 2009 Matthias Clasen <mclasen@redhat.com> - 2.26.3.1-2
72371f
- Fix some stubborn button images
72371f
72371f
* Sun Jul 12 2009 Matthias Clasen <mclasen@redhat.com> - 2.26.3.1-1
72371f
- Update to 2.26.3.1
72371f
72371f
* Mon Apr 13 2009 Matthias Clasen <mclasen@redhat.com> - 2.26.1-1
72371f
- Update to 2.26.1
72371f
72371f
* Mon Mar 16 2009 Matthias Clasen <mclasen@redhat.com> - 2.26.0-1
72371f
- Update to 2.26.0
72371f
72371f
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25.91-2
72371f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
72371f
72371f
* Wed Feb 18 2009 Matthias Clasen <mclasen@redhat.com> - 2.25.91-1
72371f
- Update to 2.25.91
72371f
72371f
* Thu Jan 15 2009 Matthias Clasen <mclasen@redhat.com> - 2.24.3-1
72371f
- Update to 2.24.3
72371f
72371f
* Mon Oct 20 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.1-1
72371f
- Update to 2.24.1
72371f
72371f
* Wed Oct  8 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-2
72371f
- Save some space
72371f
72371f
* Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-1
72371f
- Update to 2.24.0
72371f
72371f
* Tue Sep  2 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.91-1
72371f
- Update to 2.23.91
72371f
72371f
* Mon Aug  4 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.6-1
72371f
- Update to 2.23.6
72371f
72371f
* Tue Jul 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.23.4-2
72371f
- fix license tag
72371f
72371f
* Tue Jun 17 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.4-1
72371f
- Update to 2.23.4
72371f
72371f
* Mon Apr  7 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.1-1
72371f
- Update to 2.22.1
72371f
72371f
* Sun Mar  9 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.0-1
72371f
- Update to 2.22.0
72371f
72371f
* Wed Jan 30 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.90-1
72371f
- Update to 2.21.90
72371f
72371f
* Tue Jan 15 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.5-1
72371f
- Update to 2.21.5
72371f
72371f
* Tue Dec 18 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.4-1
72371f
- Update to 2.21.4
72371f
72371f
* Thu Dec  6 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.3-1
72371f
- Update to 2.21.3
72371f
72371f
* Tue Sep 18 2007 Matthias Clasen <mclasen@redhat.com> - 1.10.1-1
72371f
- Update to 1.10.1
72371f
72371f
* Tue Aug  7 2007 Matthias Clasen <mclasen@redhat.com> - 1.10.0-2
72371f
- Update license field
72371f
- Use %%find_lang for help files
72371f
72371f
* Tue Mar 13 2007 Matthias Clasen <mclasen@redhat.com> - 1.10.0-1
72371f
- Update to 1.10.0
72371f
72371f
* Mon Sep  4 2006 Matthias Clasen <mclasen@redhat.com> - 1.8.0-1
72371f
- Update to 1.8.0
72371f
- Require pgkconfig for the -devel package
72371f
72371f
* Thu Aug 02 2006 Matthias Clasen <mclasen@redhat.com> 
72371f
- Rebuild 
72371f
72371f
* Wed Aug 02 2006 Behdad Esfahbod <besfahbo@redhat.com> - 1.7.0-1
72371f
- Update to 1.7.0
72371f
72371f
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.6.0-8.1
72371f
- rebuild
72371f
72371f
* Fri Jun  9 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-8
72371f
- Add missing BuildRequires
72371f
72371f
* Fri Jun  2 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-7
72371f
- Rebuild
72371f
72371f
* Tue Apr 18 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-6
72371f
- Make -devel require the exact n-v-r
72371f
72371f
* Tue Apr 18 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-5
72371f
- incorporate more package review feedback
72371f
72371f
* Mon Apr 17 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-4
72371f
- split off a -devel package
72371f
72371f
* Mon Apr 17 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-3
72371f
- fix issues pointed out in package review
72371f
72371f
* Tue Apr 11 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-2
72371f
- Initial revision