8216a19
%define glib2_version 2.3.0
8216a19
%define gtk2_version 2.6.0
8216a19
%define desktop_file_utils_version 0.9
8216a19
8216a19
Name:           gucharmap
ef5b184
Version:        2.24.3
1e107e6
Release:        1%{?dist}
8216a19
Summary:        Unicode character picker and font browser
8216a19
8216a19
Group:          Applications/System
5f75114
License:        GPLv2+ and GFDL and MIT
b7d608d
# GPL for the source code, GFDL for the docs, MIT for Unicode data
8216a19
URL:            http://live.gnome.org/Gucharmap
00c1566
Source:         http://download.gnome.org/sources/gucharmap/2.24/gucharmap-%{version}.tar.bz2
8216a19
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8216a19
8216a19
BuildRequires: gnome-doc-utils >= 0.3.2
8216a19
BuildRequires: glib2-devel >= %{glib2_version}
8216a19
BuildRequires: gtk2-devel >= %{gtk2_version}
8216a19
BuildRequires: libgnomeui-devel >= 2.13.2 
8216a19
BuildRequires: libgnome-devel >= 2.13.7
8216a19
BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} 
8216a19
BuildRequires: scrollkeeper
60e83e6
BuildRequires: gettext
d4f532f
BuildRequires: intltool
8216a19
8216a19
Requires(post):scrollkeeper
8216a19
Requires(post): desktop-file-utils >= %{desktop_file_utils_version} 
8216a19
Requires(postun): scrollkeeper
8216a19
Requires(postun): desktop-file-utils >= %{desktop_file_utils_version} 
8216a19
8216a19
%description
8216a19
This program allows you to browse through all the available Unicode 
8216a19
characters and categories for the installed fonts, and to examine their 
8216a19
detailed properties. It is an easy way to find the character you might 
8216a19
only know by its Unicode name or code point.
8216a19
8216a19
%package devel
8216a19
Summary: Libraries and headers for libgucharmap
8216a19
Group: Development/Libraries
8216a19
Requires: glib2-devel >= %{glib2_version}
8216a19
Requires: gtk2-devel >= %{gtk2_version}
8216a19
Requires: gucharmap = %{version}-%{release}
cb1c298
Requires: pkgconfig
8216a19
8216a19
%description devel
8216a19
The gucharmap-devel package contains header files and other resources
8216a19
needed to use the libgucharmap library.
8216a19
8216a19
%prep
8216a19
%setup -q
8216a19
8216a19
8216a19
%build
8216a19
%configure --disable-gtk-immodules --disable-scrollkeeper
8216a19
make %{?_smp_mflags}
8216a19
8216a19
8216a19
%install
8216a19
rm -rf $RPM_BUILD_ROOT
8216a19
make install DESTDIR=$RPM_BUILD_ROOT RUN_QUERY_IMMODULES_TEST=false
8216a19
8216a19
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
8216a19
ec8ef34
sed -i -e "s#Icon=gucharmap.png#Icon=/usr/share/icons/hicolor/48x48/apps/gucharmap.png#" \
ec8ef34
  $RPM_BUILD_ROOT%{_datadir}/applications/gucharmap.desktop
fdc7188
8216a19
desktop-file-install --vendor gnome --delete-original       \
8216a19
  --dir $RPM_BUILD_ROOT%{_datadir}/applications             \
8216a19
  $RPM_BUILD_ROOT%{_datadir}/applications/*
8216a19
3492560
# save space by linking identical images in translated docs
3492560
helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
3492560
for f in $helpdir/C/figures/*.png; do
3492560
  b="$(basename $f)"
3492560
  for d in $helpdir/*; do
3492560
    if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
3492560
      g="$d/figures/$b"
3492560
      if [ -f "$g" ]; then
3492560
        if cmp -s $f $g; then
3492560
          rm "$g"; ln -s "../../C/figures/$b" "$g"
3492560
        fi
3492560
      fi
3492560
    fi
3492560
  done
3492560
done
3492560
3492560
b7d608d
%find_lang gucharmap --with-gnome
8216a19
8216a19
8216a19
%clean
8216a19
rm -rf $RPM_BUILD_ROOT
8216a19
8216a19
8216a19
%post
8216a19
/sbin/ldconfig
8216a19
scrollkeeper-update -q
8216a19
update-desktop-database -q
8216a19
touch --no-create %{_datadir}/icons/hicolor
8216a19
if [ -x /usr/bin/gtk-update-icon-cache ]; then
8216a19
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
8216a19
fi
b5b9281
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
b5b9281
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null || :
8216a19
8216a19
%postun
8216a19
/sbin/ldconfig
8216a19
scrollkeeper-update -q
8216a19
update-desktop-database -q
8216a19
touch --no-create %{_datadir}/icons/hicolor
8216a19
if [ -x /usr/bin/gtk-update-icon-cache ]; then
8216a19
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
8216a19
fi
8216a19
b5b9281
%pre
b5b9281
if [ "$1" -gt 1 -a -f %{_sysconfdir}/gconf/schemas/gucharmap.schemas ]; then
b5b9281
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
b5b9281
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null || :
b5b9281
fi
b5b9281
b5b9281
%preun
b5b9281
if [ "$1" -eq 0 ]; then
b5b9281
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
b5b9281
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null || :
b5b9281
fi
8216a19
8216a19
%files -f gucharmap.lang
8216a19
%defattr(-,root,root,-)
dda388e
%doc AUTHORS COPYING NEWS README
8216a19
%{_bindir}/charmap
8216a19
%{_bindir}/gucharmap
8216a19
%{_bindir}/gnome-character-map
8216a19
%{_libdir}/libgucharmap.so.*
8216a19
%{_datadir}/applications/gnome-gucharmap.desktop
b5b9281
%{_sysconfdir}/gconf/schemas/gucharmap.schemas
8216a19
8216a19
8216a19
%files devel
8216a19
%defattr(-,root,root,-)
3e4847b
%{_includedir}/gucharmap-2
8216a19
%{_libdir}/libgucharmap.so
3e4847b
%{_libdir}/pkgconfig/gucharmap-2.pc
8216a19
8216a19
8216a19
%changelog
ef5b184
* Thu Jan 15 2009 Matthias Clasen <mclasen@redhat.com> - 2.24.3-1
ef5b184
- Update to 2.24.3
1f565e7
1e107e6
* Mon Oct 20 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.1-1
1e107e6
- Update to 2.24.1
1e107e6
3492560
* Wed Oct  8 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-2
3492560
- Save some space
3492560
00c1566
* Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-1
00c1566
- Update to 2.24.0
00c1566
3d28666
* Tue Sep  2 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.91-1
3d28666
- Update to 2.23.91
3d28666
1d0abaf
* Mon Aug  4 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.6-1
1d0abaf
- Update to 2.23.6
1d0abaf
5f75114
* Tue Jul 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.23.4-2
5f75114
- fix license tag
5f75114
518da07
* Tue Jun 17 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.4-1
518da07
- Update to 2.23.4
518da07
2ff05fd
* Mon Apr  7 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.1-1
2ff05fd
- Update to 2.22.1
2ff05fd
9eeba31
* Sun Mar  9 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.0-1
9eeba31
- Update to 2.22.0
9eeba31
dda388e
* Wed Jan 30 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.90-1
dda388e
- Update to 2.21.90
dda388e
6d411b3
* Tue Jan 15 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.5-1
6d411b3
- Update to 2.21.5
6d411b3
9b2ca2b
* Tue Dec 18 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.4-1
9b2ca2b
- Update to 2.21.4
9b2ca2b
06556e5
* Thu Dec  6 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.3-1
06556e5
- Update to 2.21.3
06556e5
db32cd2
* Tue Sep 18 2007 Matthias Clasen <mclasen@redhat.com> - 1.10.1-1
db32cd2
- Update to 1.10.1
db32cd2
b7d608d
* Tue Aug  7 2007 Matthias Clasen <mclasen@redhat.com> - 1.10.0-2
b7d608d
- Update license field
b7d608d
- Use %%find_lang for help files
b7d608d
cf683a1
* Tue Mar 13 2007 Matthias Clasen <mclasen@redhat.com> - 1.10.0-1
cf683a1
- Update to 1.10.0
cf683a1
cb1c298
* Mon Sep  4 2006 Matthias Clasen <mclasen@redhat.com> - 1.8.0-1
cb1c298
- Update to 1.8.0
cb1c298
- Require pgkconfig for the -devel package
cb1c298
622568e
* Thu Aug 02 2006 Matthias Clasen <mclasen@redhat.com> 
622568e
- Rebuild 
622568e
besfahbo adefdbb
* Wed Aug 02 2006 Behdad Esfahbod <besfahbo@redhat.com> - 1.7.0-1
besfahbo adefdbb
- Update to 1.7.0
besfahbo adefdbb
622568e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.6.0-8.1
75df5ce
- rebuild
75df5ce
ab35c58
* Fri Jun  9 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-8
ab35c58
- Add missing BuildRequires
ab35c58
3035fff
* Fri Jun  2 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-7
3035fff
- Rebuild
3035fff
8216a19
* Tue Apr 18 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-6
8216a19
- Make -devel require the exact n-v-r
8216a19
8216a19
* Tue Apr 18 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-5
8216a19
- incorporate more package review feedback
8216a19
8216a19
* Mon Apr 17 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-4
8216a19
- split off a -devel package
8216a19
8216a19
* Mon Apr 17 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-3
8216a19
- fix issues pointed out in package review
8216a19
8216a19
* Tue Apr 11 2006 Matthias Clasen <mclasen@redhat.com> 1.6.0-2
8216a19
- Initial revision