hunspell/hunspell.spec

146 lines
4.6 KiB
RPMSpec

%define majver %(echo %version| cut -d. -f1-2)
Name: hunspell
Version: 1.3.2
Release: 1mamba
Summary: The default spell checker of OpenOffice.org office suite
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://hunspell.sourceforge.net/
Source: http://downloads.sourceforge.net/hunspell/hunspell-%{version}.tar.gz
Patch0: %{name}-1.1.11-lib_noversion.patch
Patch1: %{name}-1.2.8-defaultlanguage.patch
License: GPL, LGPL, MPL 1.1
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libncurses-devel
BuildRequires: libreadline-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Hunspell is the default spell checker of OpenOffice.org office suite and expectant spell checker of Mozilla Firefox and Thunderbird.
Main features:
*Unicode support.
*Conditional and multiple affixes for languages with rich morphology.
*Extended compound word support.
*Morphological analysis (in custom item and arrangement style).
*Hunspell is based on MySpell and works also with MySpell dictionaries.
*GPL/LGPL/MPL tri-license.
%package -n libhunspell
Summary: Library for the default spell checker of OpenOffice.org office suite
Group: Development/Libraries
%description -n libhunspell
Hunspell is the default spell checker of OpenOffice.org office suite and expectant spell checker of Mozilla Firefox and Thunderbird.
Main features:
*Unicode support.
*Conditional and multiple affixes for languages with rich morphology.
*Extended compound word support.
*Morphological analysis (in custom item and arrangement style).
*Hunspell is based on MySpell and works also with MySpell dictionaries.
*GPL/LGPL/MPL tri-license.
%package -n libhunspell-devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: libhunspell = %{?epoch:%epoch:}%{version}-%{release}
%description -n libhunspell-devel
Hunspell is the default spell checker of OpenOffice.org office suite and expectant spell checker of Mozilla Firefox and Thunderbird.
Main features:
*Unicode support.
*Conditional and multiple affixes for languages with rich morphology.
*Extended compound word support.
*Morphological analysis (in custom item and arrangement style).
*Hunspell is based on MySpell and works also with MySpell dictionaries.
*GPL/LGPL/MPL tri-license.
This package contains static libraries and header files need for development.
%prep
%setup -q -n %{name}-%{version}
#%patch0 -p1
#%patch1 -p1
%build
%configure \
--with-ui \
--with-readline
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/affixcompress
%{_bindir}/analyze
%{_bindir}/chmorph
%{_bindir}/hunspell
%{_bindir}/hunzip
%{_bindir}/hzip
%{_bindir}/ispellaff2myspell
%{_bindir}/makealias
%{_bindir}/munch
%{_bindir}/unmunch
%{_bindir}/wordforms
%{_bindir}/wordlist2hunspell
%{_mandir}/man1/hunspell.1.gz
%{_mandir}/man1/hunzip.1.gz
%{_mandir}/man1/hzip.1.gz
%{_mandir}/man4/hunspell.4.gz
%{_mandir}/hu/man1/hunspell.1.gz
%{_mandir}/hu/man4/hunspell.4.gz
%doc AUTHORS BUGS COPYING ChangeLog ChangeLog.O NEWS README README.myspell
%doc THANKS TODO
%files -n libhunspell -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/libhunspell-%{majver}.so.*
%files -n libhunspell-devel
%defattr(-,root,root)
%dir %{_includedir}/hunspell
%{_includedir}/hunspell/*.h
%{_includedir}/hunspell/*.hxx
%{_libdir}/libhunspell-%{majver}.a
%{_libdir}/libhunspell-%{majver}.la
%{_libdir}/libhunspell-%{majver}.so
%{_libdir}/pkgconfig/hunspell.pc
%{_libdir}/libparsers.a
%{_mandir}/man3/hunspell.3.gz
%changelog
* Wed Feb 23 2011 Automatic Build System <autodist@mambasoft.it> 1.3.2-1mamba
- automatic update by autodist
* Mon Jan 03 2011 Automatic Build System <autodist@mambasoft.it> 1.2.13-1mamba
- automatic update by autodist
* Fri Jul 23 2010 Automatic Build System <autodist@mambasoft.it> 1.2.12-1mamba
- automatic update by autodist
* Sat May 29 2010 Automatic Build System <autodist@mambasoft.it> 1.2.11-1mamba
- automatic update by autodist
* Thu Jul 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.8-2mamba
- added defaultlanguage.patch
- added --with-ui and --with-readline configure options
* Tue Jan 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.8-1mamba
- update to 1.2.8
* Wed Aug 29 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2-1mamba
- package created by autospec