hunspell/hunspell.spec

187 lines
5.9 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version| cut -d. -f1-2)
Name: hunspell
Version: 1.7.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.github.io/
Source: https://github.com/hunspell/hunspell.git/v%{version}/hunspell-%{version}.tar.bz2
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
BuildRequires: perl-devel
## AUTOBUILDREQ-END
%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.
%debug_package
%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
autoreconf -fi
%build
%configure \
--with-ui \
--with-readline
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -d -m0755 %{buildroot}%{_datadir}/myspell
ln -s . %{buildroot}%{_datadir}/myspell/dicts
#%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*
%{_mandir}/man1/hunzip.1*
%{_mandir}/man1/hzip.1*
%{_mandir}/man5/hunspell.5*
%{_mandir}/hu/man1/hunspell.1*
%files -n libhunspell
#-f %{name}.lang
%defattr(-,root,root)
%{_libdir}/libhunspell-%{majver}.so.*
%dir %{_datadir}/myspell
%{_datadir}/myspell/dicts
%doc AUTHORS COPYING
%files -n libhunspell-devel
%defattr(-,root,root)
%dir %{_includedir}/hunspell
%{_includedir}/hunspell/*.h
%{_includedir}/hunspell/*.hxx
%{_libdir}/libhunspell-%{majver}.a
%{_libdir}/libhunspell-%{majver}.so
%{_libdir}/pkgconfig/hunspell.pc
#%{_libdir}/libparsers.a
%{_mandir}/man3/hunspell.3*
%doc ChangeLog ChangeLog.O NEWS README
%doc THANKS
%changelog
* Sun Jan 01 2023 Automatic Build System <autodist@mambasoft.it> 1.7.2-1mamba
- automatic version update by autodist
* Tue Aug 23 2022 Automatic Build System <autodist@mambasoft.it> 1.7.1-1mamba
- automatic version update by autodist
* Thu May 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.0-2mamba
- provide /usr/share/myspell/dicts as symlink to /usr/share/myspell
* Mon Dec 10 2018 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
- automatic version update by autodist
* Tue Sep 05 2017 Automatic Build System <autodist@mambasoft.it> 1.6.2-1mamba
- automatic version update by autodist
* Fri Aug 18 2017 Automatic Build System <autodist@mambasoft.it> 1.6.1-1mamba
- automatic version update by autodist
* Fri Dec 02 2016 Automatic Build System <autodist@mambasoft.it> 1.5.4-1mamba
- automatic version update by autodist
* Thu Dec 01 2016 Automatic Build System <autodist@mambasoft.it> 1.5.3-1mamba
- automatic version update by autodist
* Tue Jun 21 2016 Automatic Build System <autodist@mambasoft.it> 1.4.1-1mamba
- automatic version update by autodist
* Wed Feb 03 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.4-1mamba
- update to 1.3.4
* Mon Jun 09 2014 Automatic Build System <autodist@mambasoft.it> 1.3.3-1mamba
- automatic version update by autodist
* 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