Blame SPECS/gucharmap.spec

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