Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > b96f160563608bd92cc5b30d0dcd1dd4 > files > 3

enchant-1.4.2-3mdv2009.0.src.rpm

%define major 1
%define libname %mklibname enchant %{major}
%define develname %mklibname enchant -d

Summary:	An enchanting spell checking library
Name:		enchant
Version:	1.4.2
Release:	%mkrel 3
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.abisource.com/enchant/
Source0:	http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
# mpol: change default ordering for nl; first myspell
Patch0:		enchant-1.2.0-ordering-nl.patch
BuildRequires:	glib2-devel >= 2.0.0
BuildRequires:	aspell-devel
BuildRequires:	pkgconfig
%if %mdkversion >= 200700
# hspell check uses -lz:
BuildRequires:	zlib-devel
BuildRequires:	hspell-devel
BuildRequires:	voikko-devel
BuildRequires:	dbus-glib-devel
%endif
%if %mdkversion > 200800
BuildRequires:	hunspell-devel
%endif
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-root

%description
A library that wraps other spell checking backends.

%package -n %{libname}
Summary:	Libraries for enchant
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}

%description -n	%{libname}
This package provides the libraries for using enchant.

%package -n %{develname}
Summary:	Libraries and include files for developing with enchant
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{mklibname enchant 1}-devel = %{version}-%{release}
Obsoletes:	%{mklibname enchant 1}-devel

%description -n	%{develname}
This package provides the necessary development libraries and include
files to allow you to develop with enchant.

%prep

%setup -q
%patch0 -p1 -b .ordering-nl

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" configure*

# antibork
perl -pi -e "s|^automake --version|#automake --version|g" ./autogen.sh

%build
# this fixes bad relinking (rpath)
rm -f configure
autoreconf --force --install

%configure2_5x \
     --with-myspell-dir=%{_datadir}/dict/ooo

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%makeinstall_std

%find_lang %{name}

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

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

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS HACKING README TODO
%{_bindir}/*
%{_datadir}/enchant
%{_mandir}/man1/*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/lib*.so.%{major}*
%dir %{_libdir}/enchant
# todo: split backends in seperate packages?
# (anssi) Nope. Nothing would pull them, then.
# But we could move them to /usr/lib/enchant-%major/
# to allow simultaneous installation with future
# libenchant2.
# (anssi) or move them to lib(64)enchant-modules,
# required by lib(64)enchantN
%{_libdir}/enchant/lib*.so*

%files -n %{develname}
%defattr(-,root,root)
%{_libdir}/lib*.so
%attr(644,root,root) %{_libdir}/*.la
%{_libdir}/*.a
#%{_libdir}/enchant/*.so
%{_libdir}/enchant/*.a
%attr(644,root,root) %{_libdir}/enchant/*.la
%{_libdir}/pkgconfig/enchant.pc
%dir %{_includedir}/enchant
%{_includedir}/enchant/*


%changelog
* Mon Sep 22 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.4.2-3mdv2009.0
+ Revision: 286419
- build with support for hunspell

* Wed Aug 06 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.4.2-2mdv2009.0
+ Revision: 264458
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Tue May 06 2008 Anssi Hannula <anssi@mandriva.org> 1.4.2-1mdv2009.0
+ Revision: 202492
- run autoreconf --force --install instead of autogen.sh to fix build
- new version

* Fri Apr 18 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.4.1-1mdv2009.0
+ Revision: 195706
- new version
- drop patch 1, fixed upstream
- new license policy
- do not package COPYING.LIB file
- spec file clean

* Sat Jan 12 2008 Anssi Hannula <anssi@mandriva.org> 1.3.0-4mdv2008.1
+ Revision: 149641
- buildrequires zlib-devel for hspell engine

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Wed Aug 29 2007 Oden Eriksson <oeriksson@mandriva.com> 1.3.0-3mdv2008.0
+ Revision: 74456
- fix build
- conform to the new devel naming


* Mon Feb 12 2007 Anssi Hannula <anssi@mandriva.org> 1.3.0-2mdv2007.0
+ Revision: 119044
- update patch1 with 1.3.0 compatible version from CVS

  + Laurent Montel <lmontel@mandriva.com>
    - Rebuild.........................
    - 1.3.0
    - Import enchant

* Wed Aug 23 2006 Anssi Hannula <anssi@mandriva.org> 1.2.6-2mdv2007.0
- add voikko provider plugin (patch1)
- fix buildrequires

* Tue Aug 01 2006 Jerome Soyer <saispo@mandriva.org> 1.2.6-1mdv2007.0
- New release 1.2.6

* Sat Mar 11 2006 Götz Waschk <waschk@mandriva.org> 1.2.3-1mdk
- New release 1.2.3

* Fri Nov 25 2005 Marcel Pol <mpol@mandriva.org> 1.2.0-2mdk
- P0: fix ordering for nl

* Thu Nov 03 2005 Oden Eriksson <oeriksson@mandriva.com> 1.2.0-1mdk
- 1.2.0
- added one lib64 fix
- don't nuke the *.la files

* Sun Jul 31 2005 Marcel Pol <mpol@mandriva.org> 1.1.5-3mdk
- define mysqldir at configure time
- %%mkrel

* Sat Jul 30 2005 Marcel Pol <mpol@mandriva.org> 1.1.5-2mdk
- add enchant.ordering
- for Dutch prefer myspell above aspell
- add symlink to myspell dictionaries

* Sat Dec 25 2004 Marcel Pol <mpol@mandrake.org> 1.1.5-1mdk
- 1.1.5

* Mon Sep 27 2004 Marcel Pol <mpol@mandrake.org> 1.1.2-3mdk
- move backend files from devel to library package

* Sat Jun 12 2004 Marcel Pol <mpol@mandrake.org> 1.1.2-2mdk
- rebuild