File gucharmap.spec of Package gucharmap

#
# spec file for package gucharmap (Version 2.28.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           gucharmap
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  gconf2-devel
BuildRequires:  gtk2-devel
BuildRequires:  python-gtk-devel
BuildRequires:  scrollkeeper
BuildRequires:  update-desktop-files
License:        GPL v2 or later; LGPL v2.1 or later
Group:          System/GUI/GNOME
Version:        2.28.2
Release:        0.1.152
Summary:        A Feature-Rich Unicode Character Map
Source:         %{name}-%{version}.tar.bz2
Url:            http://gucharmap.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}
%gconf_schemas_prereq

%description
Gucharmap is a feature-rich Unicode character map and font viewer.



Authors:
--------
    Noah Levitt

%package devel
License:        GPL v2 or later; LGPL v2.1 or later
Summary:        Include Files and Libraries mandatory for Development.
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version} gconf2-devel glib2-devel gtk2-devel

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    Noah Levitt

%package doc
License:        GPL v2 or later; LGPL v2.1 or later
Summary:        A Feature-Rich Unicode Character Map
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}

%description doc
Gucharmap is a feature-rich Unicode character map and font viewer.



Authors:
--------
    Noah Levitt

%lang_package
%prep
%setup -q

%build
# FIXME: Build as root modifies system!
#   gucharmap-1.8.0: --disable-scrollkeeper does not work properly.
%configure --disable-static --with-pic \
    --disable-scrollkeeper \
    --enable-gtk-doc \
    --enable-python-bindings
make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%find_lang %{name}
%find_gconf_schemas
%fdupes $RPM_BUILD_ROOT
# We need X-SuSE-Editor to avoid an error for the categories check. We don't
# want TextEditor, since that's too wide.
%suse_update_desktop_file -N "GNOME Character Map" -G "Character Map" %{name} X-SuSE-Editor

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS README TODO
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/applications/*.desktop
%{py_sitedir}/gtk-2.0/gucharmap.so
%{_datadir}/pygtk/2.0/defs/*

%files lang -f %{name}.lang

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

%files doc  
%defattr(-,root,root)  
%{_datadir}/gtk-doc/html/*

%changelog
* Tue Jan  5 2010 sreeves@novell.com
- (Fate #308121) Update to version 2.28.2:
  + Updated translations.
* Wed Dec  2 2009 gburt@suse.de
- Undo the doc packaging changes
* Fri Nov 27 2009 michael.meeks@novell.com
- Fate #308121. Update to GNOME 2.28.
  Last Changelog entry from new version
    Tue Sep 22 12:35:38 CEST 2009 - dimstar@opensuse.org
  - Update to version 2.28.0:
* Wed Oct 22 2008 mboman@suse.de
- Update to version 2.24.1:
  + Translation updates
* Fri Oct  3 2008 vuntz@novell.com
- Fix build by removing the call to autoreconf. It somehow breaks
  stuff by not generating libtool early enough...
- Create a doc package for the library documentation.
  Add gtk-doc dependency.
* Tue Sep 23 2008 mboman@suse.de
- Update to version 2.24.0:
  + Translation updates
* Tue Sep  2 2008 mboman@novell.com
- Update to version 2.23.91:
  + Plug a mem leak.
  + Use single / in the help file path.
  + Use gtk_show_uri here.
  + Use GIO to launch the help URI instead of calling gnome-open.
  + Updated translations.
* Mon Aug 11 2008 maw@suse.de
- Update to version 2.23.6:
  + Misc. changes
  + Updated translations.
* Wed Jun 25 2008 maw@suse.de
- Update to version 2.23.4:
  + API change: the pkg-config name is now gucharmap-2
  + Support for Unicode 5.1
  + gtk-doc API docs
  + Python bindings
  + Many bug fixes
- Add gucharmap-abuild.patch.
* Fri Apr 11 2008 maw@suse.de
- Update to version 2.22.1:
  + Bug fixed: bgo#506752.
* Fri Mar 14 2008 maw@suse.de
- Update to version 2.22.0:
  + Cosmetic version bump.
* Fri Feb 29 2008 maw@suse.de
- Make the %%clean section do something again.
* Fri Feb 29 2008 maw@suse.de
- Update to version 2.21.90:
  + Fix bgo#510813
  + Fix the installed .pc file, which contained some bogosities.
* Fri Feb  1 2008 maw@suse.de
- Update to version 2.21.5:
  + Fix character popup sizing (bnc#501915)
  + Fix the build with --disable-gconf (bnc#501710)
  + Remove gnome option (bnc#469131)
  + Translation updates
- Remove gucharmap-glib-breakage.patch because it's no longer
  necessary.
* Thu Dec 20 2007 maw@suse.de
- Add gucharmap-glib-breakage.patch (#350152).
* Thu Dec 20 2007 maw@suse.de
- Update to version 2.21.4:
  + The large version bump is gucharmap synchronizing its version
    number with that of GNOME
  + Bugs (bugzilla.gnome.org) fixed: #501915, #331103, #501710,
    [#469131]
  + Install gconf schemas
- Remove bogus dependencies
- Remove bogus stuff in %%post and %%postun.
* Wed Sep 19 2007 mauro@suse.de
- Update to version 1.10.1
- Bugfixes for bgo: #311912, #357471, #396265, #434276, #433134
* Tue Aug  7 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage
- s#%%run_ldconfig#/sbin/ldconfig/ in %%post and %%postun.
* Mon May 14 2007 pgajdos@suse.cz
- removed gnome-icon-theme from Requires and BuildRequires
  [#247450]
* Fri Apr 27 2007 sbrabec@suse.cz
- Do not call meinproc (#227624).
* Mon Apr  9 2007 maw@suse.de
- Update to version 1.10.0
- Now requires a newer version of libtool.
* Fri Mar  9 2007 maw@suse.de
- Update to version 1.9.0.
  - Updated build system.
  - Updated translations.
* Fri Mar  9 2007 sbrabec@suse.cz
- Removed obsolete hicolor icon symlink (#248676).
* Mon Jan  8 2007 sbrabec@suse.cz
- Spec file cleanup.
* Fri Dec 15 2006 maw@suse.de
- Move to /usr.
* Thu Oct 12 2006 ro@suse.de
- added gnome-doc-utils-devel to buildreq
* Sat Sep 30 2006 aj@suse.de
- Cleanup BuildRequires.
* Thu Sep 14 2006 jhargadon@suse.de
- update to version 1.8.0
- Small fixes and new translations
* Tue Aug 15 2006 jhargadon@suse.de
- update to version 1.7.0
- Bug 341260 – String "Snap Columns to Power of Two" not marked for
  translation
- Bug 334505 – Search buttons Prev Next unsensitive when they
  shouldn't be.
- Bug 335952 – refcount leak in main
- Bug 334865 – tiny string leak
- Bothersome gucharmap input method removed.
- updated translations
* Fri May  5 2006 sreeves@suse.de
- Fix for 167218 - change name
* Wed Apr 26 2006 sreeves@suse.de
- Fix for 168664 - move from the Images category
* Tue Feb 28 2006 sbrabec@suse.cz
- Use kdelibs3-doc in BuildRequires for meinproc (#153635#c14).
* Sat Feb 18 2006 gekker@suse.de
- fixup .desktop file for UI team
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep  7 2005 sbrabec@suse.cz
- Updated to version 1.4.4 (GNOME 2.12).
* Wed Jun  1 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Wed Mar  9 2005 gekker@suse.de
- Update to 1.4.3 (GNOME 2.10).
- Remove upstreamed cs.po patch
* Thu Feb 24 2005 sbrabec@suse.cz
- Fixed typos in cs.po.
* Tue Dec 21 2004 gekker@suse.de
- Update to version 1.4.2
* Wed Dec 15 2004 hvogel@suse.de
- fix desktop file
* Mon Nov 22 2004 ro@suse.de
- "sed -i" does not work on old distributions
* Tue Oct 19 2004 sbrabec@suse.cz
- Renamed no locale to nb.
* Fri Aug 27 2004 clahey@suse.de
- Cache gucharmap help and show gucharmap in khelpcenter.
* Fri May 14 2004 clahey@suse.de
- Removed gucharmap-immodules.dif because gucharmap no longer
  searches for immodules.
* Wed Apr 21 2004 sbrabec@suse.cz
- Updated to version 1.4.1 (GNOME 2.6).
* Wed Mar 10 2004 sbrabec@suse.cz
- Czech typo fixes.
* Mon Mar  8 2004 hhetter@suse.de
- search for gtk-query-immodules-2.0-64 on x86_64
* Thu Feb 19 2004 sbrabec@suse.cz
- Updated to version 1.2.0.
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Thu Oct  9 2003 sbrabec@suse.cz
- Updated to version 1.0.0 (GNOME 2.4).
* Fri Sep  5 2003 sbrabec@suse.cz
- Added %%run_ldconfig to postun (bug #29417).
* Thu Aug 21 2003 ro@suse.de
- autoreconf for successful build on lib64
* Wed Aug 20 2003 sbrabec@suse.cz
- Added run-gtk to %%post and %%postun.
* Tue Aug 19 2003 sbrabec@suse.cz
- Initial SuSE version 0.8.0.