File gnome-spell2.spec of Package gnome-spell2

#
# spec file for package gnome-spell2 (Version 1.0.8)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           gnome-spell2
BuildRequires:  enchant-devel fdupes gnome-common intltool libglade2-devel libgnomeui-devel libidl-devel
Url:            http://www.gnome.org/
%define _name gnome-spell
License:        GPL v2 or later
Group:          Development/Libraries/GNOME
Version:        1.0.8
Release:        47
# Dropped (needed for <9.0):
Provides:       bonobo-conf
Obsoletes:      bonobo-conf
Summary:        Bonobo Spelling Component
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{_name}/1.0/%{_name}-%{version}.tar.bz2
#PATCH-FIX-OPENSUSE gnome-spell-1.0.7-enchant.diff bnc354554 -- use enchant <- hunspell for spell checking
Patch:          gnome-spell-1.0.7-enchant.diff
Requires:       %{name}-lang = %{version}

%description
The GNOME/Bonobo spelling component.



Authors:
--------
    Radek Doulik <rodo@ximian.com>

%lang_package
%prep
%setup -q -n %{_name}-%{version}
%patch

%build
autoreconf -f -i
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{_name}-%{version}
rm $RPM_BUILD_ROOT%{_libdir}/*/*.*a
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README NEWS ChangeLog 
# NOTE: Own these directories to not depend on control-center2
%dir %{_datadir}/control-center-2.0
%dir %{_datadir}/control-center-2.0/icons
%{_datadir}/control-center-2.0/icons/*.png
%{_datadir}/%{_name}-%{version}
%{_datadir}/idl/*.idl
%{_libdir}/bonobo/servers/*.server
%{_libdir}/gnome-spell

%files lang -f %{_name}-%{version}.lang

%changelog
* Wed May 21 2008 sbrabec@suse.cz
- Use (hunspell based) enchant backend (bnc#354554).
* Wed Jan 30 2008 rodrigo@suse.de
- Update to version 1.0.8:
  * Win32 fixes
  * New translations
- Use libidl-devel for BuildRequires, not libidl
* Wed Aug 08 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Sat Aug 04 2007 aj@suse.de
- Add provides for bonobo-conf as well.
* Mon Jan 08 2007 sbrabec@suse.cz
- Spec file cleanup.
* Mon Jan 08 2007 ro@suse.de
- GNOME moved to /usr
* Thu Oct 19 2006 jhargadon@suse.de
- removed the devel split because this broke other packages and the
  fact that there are no devel files in the package.
* Fri Oct 13 2006 danw@suse.de
- Remove dead patch
* Tue Oct 10 2006 jhargadon@suse.de
- split out the devel files into a -devel package
* Thu Sep 21 2006 jhargadon@suse.de
- update to version 1.0.7
- added all languages listed by gnome-spell
- win build fixes
- added gl language
- translation updates
* Sun Feb 19 2006 aj@suse.de
- Reduce BuildRequires.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Aug 23 2005 ro@suse.de
- removed control-center from nfb and added dirs instead
  to break up build-dep cycle
* Sat Feb 12 2005 gekker@suse.de
- Update to version 1.0.6
* Fri Nov 19 2004 ro@suse.de
- removed extra aclocal include directive
* Tue Nov 02 2004 ro@suse.de
- locale rename: no -> nb
* Fri Sep 10 2004 ro@suse.de
- added shared-mime-info to neededforbuild
* Wed May 19 2004 ro@suse.de
- do not define GTK_DISABLE_DEPRECATED
- make clean to regenerate Spell-stubs.c
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Mon Sep 22 2003 sbrabec@suse.cz
- Obsolete bonobo-conf.
* Tue Sep 16 2003 sbrabec@suse.cz
- Fixed building of shared library (bug #30329).
- Not packaged unneeded *.*a files.
* Mon Aug 18 2003 sbrabec@suse.cz
- Updated to version 1.0.5.
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Tue Jul 01 2003 ro@suse.de
- added control-center2 to neededforbuild
* Mon Jun 02 2003 sbrabec@suse.cz
- Updated to version 1.0.4.
* Thu May 22 2003 sbrabec@suse.cz
- Initial SuSE version of GNOME2 port.