hunspell/hunspell.spec

104 lines
2.8 KiB
RPMSpec
Raw Normal View History

2007-02-09 11:47:49 +00:00
Name: hunspell
Summary: Hunspell is a spell checker and morphological analyzer library
Version: 1.1.4
Release: 6%{?dist}
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Group: System Environment/Libraries
URL: http://hunspell.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: LGPL
2006-11-28 17:13:58 +00:00
BuildRequires: libtool
Patch0: hunspell-1.1.4-sharedlibs.patch
2006-11-29 19:52:35 +00:00
Patch1: hunspell-1.1.4-defaultdictfromlang.patch
Patch2: hunspell-1.1.4-capi.patch
%description
Hunspell is a spell checker and morphological analyzer library and program
designed for languages with rich morphology and complex word compounding or
character encoding. Hunspell interfaces: Ispell-like terminal interface using
Curses library, Ispell pipe interface, OpenOffice.org UNO module.
%package devel
2007-02-09 11:47:49 +00:00
Requires: hunspell = %{version}-%{release}, pkgconfig
Summary: Files for developing with hunspell
Group: Development/Libraries
%description devel
Includes and definitions for developing with hunspell
%prep
%setup -q
%patch0 -p1 -b .sharedlibs.patch
2006-11-29 19:52:35 +00:00
%patch1 -p1 -b .defaultdictfromlang.patch
%patch2 -p1 -b .capi.patch
%build
libtoolize --automake --force
aclocal -I m4
autoconf
automake
2007-02-09 11:47:49 +00:00
%configure --disable-static
for i in man/*.? man/hu/*.?; do
iconv -f ISO-8859-2 -t UTF-8 $i > $i.new
mv -f $i.new $i
done
2007-02-09 11:47:49 +00:00
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
2007-02-09 11:47:49 +00:00
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
2006-11-28 17:13:58 +00:00
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{_bindir}/example
mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
2007-02-09 11:47:49 +00:00
%defattr(-,root,root,-)
%doc README README.myspell COPYING COPYING.LGPL COPYING.MPL AUTHORS AUTHORS.myspell license.hunspell license.myspell THANKS
%{_libdir}/*.so.*
%{_datadir}/myspell
%{_bindir}/hunmorph
%{_bindir}/hunspell
%{_bindir}/hunstem
%{_mandir}/man1/hunspell.1.gz
%{_mandir}/man4/hunspell.4.gz
%{_mandir}/*/man1/hunspell.1.gz
%{_mandir}/*/man4/hunspell.4.gz
%files devel
2007-02-09 11:47:49 +00:00
%defattr(-,root,root,-)
%{_includedir}/%{name}
%{_libdir}/*.so
%{_bindir}/munch
%{_bindir}/unmunch
2007-01-19 19:06:29 +00:00
%{_libdir}/pkgconfig/hunspell.pc
%changelog
2007-02-09 11:47:49 +00:00
* Fri Feb 09 2007 Caolan McNamara <caolanm@redhat.com> - 1.1.4-6
- some spec cleanups
2007-01-19 19:06:29 +00:00
* Fri Jan 19 2007 Caolan McNamara <caolanm@redhat.com> - 1.1.4-5
- .pc
2007-01-11 17:17:41 +00:00
* Thu Jan 11 2007 Caolan McNamara <caolanm@redhat.com> - 1.1.4-4
- fix out of range
* Fri Dec 15 2006 Caolan McNamara <caolanm@redhat.com> - 1.1.4-3
- hunspell#1616353 simple c api for hunspell
2006-11-29 19:52:35 +00:00
* Wed Nov 29 2006 Caolan McNamara <caolanm@redhat.com> - 1.1.4-2
- add hunspell-1.1.4-defaultdictfromlang.patch to take locale as default
dictionary
* Wed Oct 25 2006 Caolan McNamara <caolanm@redhat.com> - 1.1.4-1
- initial version