Summary: A Unicode/ISO10646 character map and font viewer.
Summary(ja): Unicode/ISO10646 文字コード表およびフォントビューワ
Name: gucharmap
Version: 2.30.0
Release: 1%{?_dist_release}
License: GPL
Group: Applications/System
URL: http://gucharmap.sourceforge.net/

Source: http://ftp.gnome.org/pub/gnome/sources/gucharmap/2.26/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-root

BuildRequires: glib2-devel >= 2.16.3
BuildRequires: gtk2-devel >= 2.13.6
BuildRequires: GConf2-devel
BuildRequires: gnome-doc-utils >= 0.9.0
#BuildRequires: libgnomeui-devel >= 2.2.0, libgnome-devel >= 2.2.0
### Needed to know if we should link gnome-character-map
BuildRequires: gnome-utils

Requires(post,postun): scrollkeeper
Requires(post,pre,preun): GConf2

Vendor: Project Vine
Distribution: Vine Linux

%description
gucharmap is a Unicode/ISO10646 character map and font viewer.

%description -l ja
gucharmap は Unicode/ISO10646 文字コード表およびフォントビューワです。

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Summary(ja): %{name} のヘッダファイル、ライブラリおよび開発用ドキュメント
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: gtk2-devel
Requires: glib2-devel
Requires: GConf2-devel

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%description devel -l ja
このパッケージには %{name} のヘッダファイル、ライブラリおよび開発用
ドキュメントが含まれています。%{name} を使ったプログラムを開発する場合、
%{name}-devel をインストールする必要があります。

%prep
%setup -q

%build
%configure \
        --disable-static \
	--disable-schemas-install \
        --disable-scrollkeeper 
make %{?_smp_mflags}

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
%find_lang %{name}

### Remove gnome-character-map link from buildroot if it is in gnome-utils
# this process is not appropriate,
# because gnome-character-map will be removed if gucharmap is installed
#[ -e %{_bindir}/gnome-character-map ] && rm -f %{buildroot}%{_bindir}/gnome-character-map

# remove unneeded files
rm -rf %{buildroot}%{_localstatedir}/scrollkeeper
rm -f %{buildroot}%{_libdir}/*.{a,la}
rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%post 
/sbin/ldconfig
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null
scrollkeeper-update -q || :

touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
fi

%pre
if [ "$1" -gt 1 ]; then
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null
fi

%preun
if [ "$1" -eq 0 ]; then
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null
fi

%postun
/sbin/ldconfig
scrollkeeper-update -q || :

touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
fi

%files -f %{name}.lang
%defattr(-, root, root, 0755)
%doc ChangeLog COPYING* README TODO
%{_sysconfdir}/gconf/schemas/gucharmap.schemas
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/applications/*
#{_datadir}/icons/hicolor/48x48/apps/*
%{_datadir}/omf/gucharmap
%doc %{_datadir}/gnome/help/gucharmap

%files devel
%defattr(-, root, root, 0755)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/gucharmap-2

%changelog
* Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
- new upstream release

* Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1
- new upstream release

* Sun Nov  1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.1-1
- new upstream release

* Sat Jul 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.3.1-1
- new upstream release

* Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.2-1
- new upstream release

* Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.1-1
- new upstream release
- remove static library

* Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.1-1
- new upstream release

* Mon Oct 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.24.0-1vl5
- new upstream release
- spec in UTF-8

* Thu Apr 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1-1vl5
- new upstream release
- added %%pre, %%preun section

* Mon Jan 14 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.2-0vl1
- new upstream release

* Sun Jan  7 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.4-0vl2
- add Vendor/Distribution tag
- add BuildRequires: gnome-doc-utils, libgnomeui-devel, libgnome-devel
- add Requires: {gtk2,glib2,libgnomeui,libgnome}-devel to -devel package
- not run gtk-query-immodules-2.0 at %%post and %%postun
- use %%{buildroot} consistently

* Sat Oct  8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.4-0vl1
- new upstream release
- added --disable-scrollkeeper option

* Thu Mar 31 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.3-0vl1
- new upstream release

* Fri Nov 12 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.2-0vl1
- new upstream release
- added Japanese summay and description

* Sun Jan 11 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl1
- build for Vine Linux
- based on Dag Apt Repository, http://dag.wieers.com/apt/

* Sat Nov 22 2003 Dag Wieers <dag@wieers.com> - 1.2.0-0
- Updated to release 1.2.0.

* Tue Sep 09 2003 Dag Wieers <dag@wieers.com> - 1.0.0-0
- Updated to release 1.0.0.

* Fri Aug 22 2003 Dag Wieers <dag@wieers.com> - 0.9.0-0
- Updated to release 0.9.0.

* Wed Jun 11 2003 Dag Wieers <dag@wieers.com> - 0.8.0-0
- Updated to release 0.8.0.

* Wed Jun 04 2003 Dag Wieers <dag@wieers.com> - 0.6.1.20030604-0
- Updated to release 0.6.1.20030604.

* Mon May 19 2003 Dag Wieers <dag@wieers.com> - 0.6.1-0
- Updated to release 0.6.1.

* Fri May 02 2003 Dag Wieers <dag@wieers.com> - 0.6.0-0
- Updated to release 0.6.0.

* Tue Mar 25 2003 Dag Wieers <dag@wieers.com> - 0.4.0-1
- Added extra documents.

* Tue Mar 18 2003 Dag Wieers <dag@wieers.com> - 0.4.0-0
- Initial package. (using DAR)
