Blame SPECS/hunspell.spec

0af795
%define double_profiling_build 1
0af795
0af795
Name:      hunspell
0af795
Summary:   A spell checker and morphological analyzer library
0af795
Version:   1.3.2
1d7dc8
Release:   13%{?dist}
0af795
Source:    http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz
0af795
Group:     System Environment/Libraries
0af795
URL:       http://hunspell.sourceforge.net/
0af795
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0af795
License:   LGPLv2+ or GPLv2+ or MPLv1.1
0af795
BuildRequires: ncurses-devel
0af795
%ifarch %{ix86} x86_64
0af795
BuildRequires: valgrind
0af795
%endif
0af795
%if %{double_profiling_build}
0af795
BuildRequires: words
0af795
%endif
0af795
Requires:  hunspell-en-US
0af795
Patch0: hunspell.rhbz759647.patch
0af795
Patch1: hunspell.rhbz918938.patch
0af795
Patch2: hunspell-aarch64.patch
0af795
0af795
%description
0af795
Hunspell is a spell checker and morphological analyzer library and program 
0af795
designed for languages with rich morphology and complex word compounding or 
0af795
character encoding. Hunspell interfaces: Ispell-like terminal interface using 
0af795
Curses library, Ispell pipe interface, OpenOffice.org UNO module.
0af795
0af795
%package devel
0af795
Requires: hunspell = %{version}-%{release}, pkgconfig
0af795
Summary: Files for developing with hunspell
0af795
Group: Development/Libraries
0af795
0af795
%description devel
0af795
Includes and definitions for developing with hunspell
0af795
0af795
%prep
0af795
%setup -q
0af795
%patch0 -p0 -b .rhbz759647
0af795
%patch1 -p0 -b .rhbz918938
0af795
%patch2 -p1 -b .aarch64
0af795
0af795
%build
0af795
configureflags="--disable-rpath --disable-static --with-ui --with-readline"
0af795
0af795
%define profilegenerate \
0af795
    CFLAGS="${RPM_OPT_FLAGS} -fprofile-generate"\
0af795
    CXXFLAGS="${RPM_OPT_FLAGS} -fprofile-generate"
0af795
%define profileuse \
0af795
    CFLAGS="${RPM_OPT_FLAGS} -fprofile-use"\
0af795
    CXXFLAGS="${RPM_OPT_FLAGS} -fprofile-use"
0af795
0af795
%if !%{double_profiling_build}
0af795
%configure $configureflags
0af795
make %{?_smp_mflags}
0af795
%else
0af795
#Generate a word list to use for profiling, take half of it to ensure
0af795
#that the original word list is then considered to contain correctly
0af795
#and incorrectly spelled words
0af795
head -n $((`cat /usr/share/dict/words | wc -l`/2)) /usr/share/dict/words |\
0af795
    sed '/\//d'> words
0af795
0af795
#generate profiling
0af795
%{profilegenerate} %configure $configureflags
0af795
make %{?_smp_mflags}
0af795
./src/tools/affixcompress words > /dev/null 2>&1
0af795
./src/tools/hunspell -d words -l /usr/share/dict/words > /dev/null
0af795
make check
0af795
make distclean
0af795
0af795
#use profiling
0af795
%{profileuse} %configure $configureflags
0af795
make %{?_smp_mflags}
0af795
%endif
0af795
0af795
%check
0af795
#%ifarch %{ix86} x86_64, see rhbz#813780
0af795
%ifarch %{ix86}
0af795
VALGRIND=memcheck make check
0af795
%else
0af795
make check
0af795
%endif
0af795
0af795
%install
0af795
rm -rf $RPM_BUILD_ROOT
0af795
make DESTDIR=$RPM_BUILD_ROOT install
0af795
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
0af795
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
0af795
mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
0af795
%find_lang %{name}
0af795
0af795
%clean
0af795
rm -rf $RPM_BUILD_ROOT
0af795
0af795
%post -p /sbin/ldconfig
0af795
0af795
%postun -p /sbin/ldconfig
0af795
0af795
%files -f %{name}.lang
0af795
%defattr(-,root,root,-)
0af795
%doc README README.myspell COPYING COPYING.LGPL COPYING.MPL AUTHORS AUTHORS.myspell license.hunspell license.myspell THANKS
0af795
%{_libdir}/*.so.*
0af795
%{_datadir}/myspell
0af795
%{_bindir}/hunspell
0af795
%{_mandir}/man1/hunspell.1.gz
0af795
%{_mandir}/man4/hunspell.4.gz
0af795
%lang(hu) %{_mandir}/hu/man1/hunspell.1.gz
0af795
%lang(hu) %{_mandir}/hu/man4/hunspell.4.gz
0af795
0af795
%files devel
0af795
%defattr(-,root,root,-)
0af795
%{_includedir}/%{name}
0af795
%{_libdir}/*.so
0af795
%{_bindir}/affixcompress
0af795
%{_bindir}/makealias
0af795
%{_bindir}/munch
0af795
%{_bindir}/unmunch
0af795
%{_bindir}/analyze
0af795
%{_bindir}/chmorph
0af795
%{_bindir}/hzip
0af795
%{_bindir}/hunzip
0af795
%{_bindir}/ispellaff2myspell
0af795
%{_bindir}/wordlist2hunspell
0af795
%{_bindir}/wordforms
0af795
%{_libdir}/pkgconfig/hunspell.pc
0af795
%{_mandir}/man1/hunzip.1.gz
0af795
%{_mandir}/man1/hzip.1.gz
0af795
%{_mandir}/man3/hunspell.3.gz
0af795
0af795
%changelog
1d7dc8
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.3.2-13
1d7dc8
- Mass rebuild 2014-01-24
1d7dc8
1d7dc8
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3.2-12
1d7dc8
- Mass rebuild 2013-12-27
1d7dc8
0af795
* Thu Apr 04 2013 Caolán McNamara <caolanm@redhat.com> - 1.3.2-11
0af795
- Resolves: rhbz#925562 support aarch64
0af795
0af795
* Wed Mar 13 2013 Caolán McNamara <caolanm@redhat.com> - 1.3.2-10
0af795
- Resolves: rhbz#918938 crash in danish thesaurus/spell interaction
0af795
0af795
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-9
0af795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0af795
0af795
* Tue Aug 28 2012 Caolán McNamara <caolanm@redhat.com> - 1.3.2-8
0af795
- Related: rhbz#850709 en-US available standalone
0af795
0af795
* Wed Aug 01 2012 Caolán McNamara <caolanm@redhat.com> - 1.3.2-6
0af795
- Resolves: rhbz#573516 have hunspell require hunspell-en to ensure
0af795
  at least one dictionary exists
0af795
0af795
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-5
0af795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0af795
0af795
* Wed Apr 18 2012 Caolán McNamara <caolanm@redhat.com> - 1.3.2-4
0af795
- Resolves: rhbz#813478 x86_64 valgrind spews, see rhbz#813780
0af795
0af795
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-3
0af795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0af795
0af795
* Tue Dec 06 2011 Caolán McNamara <caolanm@redhat.com> - 1.3.2-2
0af795
- Resolves: rhbz#759647 temp file name collision
0af795
0af795
* Tue May 24 2011 Caolán McNamara <caolanm@redhat.com> - 1.3.2-1
0af795
- Resolves: rhbz#706686 latest version
0af795
0af795
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.15-2
0af795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0af795
0af795
* Thu Jan 27 2011 Caolán McNamara <caolanm@redhat.com> - 1.2.15-1
0af795
- latest version
0af795
0af795
* Fri Jan 07 2011 Caolán McNamara <caolanm@redhat.com> - 1.2.14-1
0af795
- latest version
0af795
0af795
* Wed Jan 05 2011 Caolán McNamara <caolanm@redhat.com> - 1.2.13-1
0af795
- latest version
0af795
- drop integrated backport.warnings.patch
0af795
- drop integrated backport.rhbz650503.patch
0af795
0af795
* Mon Nov 08 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.12-3
0af795
- Resolves: rhbz#650503 Arabic spellchecking crash
0af795
0af795
* Fri Nov 05 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.12-2
0af795
- Resolves: rhbz#648740 thousands of trailing empty rules spew
0af795
0af795
* Thu Jul 15 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.12-1
0af795
- latest version
0af795
- drop integrated hunspell-1.2.11-valgrind.patch
0af795
- drop integrated hunspell-1.2.11-koreansupport.patch
0af795
0af795
* Fri Jul 09 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.11-4
0af795
- use -fprofile-generate and -fprofile-use
0af795
0af795
* Mon Jul 05 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.11-3
0af795
- add korean Hangul syllable support
0af795
0af795
* Tue Jun 22 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.11-2
0af795
- use valgrind in make check
0af795
0af795
* Thu May 06 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.11-1
0af795
- Resolves: rhbz#589326 wrong malloc
0af795
0af795
* Fri Apr 30 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.10-1
0af795
- latest version
0af795
0af795
* Thu Mar 04 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.9-2
0af795
- Resolves: ooo#107768 hunspell-1.2.9-stacksmash.patch
0af795
0af795
* Wed Mar 03 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.9-1
0af795
- latest version, drop all upstreamed patchs
0af795
0af795
* Mon Mar 01 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.8-17
0af795
- Resolves: rhbz#569449 hu man dir now exists in filesystem
0af795
0af795
* Mon Jan 18 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.8-16
0af795
- Resolves: rhbz#554876 fix suggestmgr crash
0af795
0af795
* Tue Jan 05 2010 Caolán McNamara <caolanm@redhat.com> - 1.2.8-15
0af795
- Remove bad const warnings
0af795
0af795
* Mon Dec 21 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-14
0af795
- Preserve timestamps
0af795
0af795
* Tue Dec 08 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-13
0af795
- Resolves: rhbz#544372 survive having no HOME
0af795
0af795
* Thu Jul 30 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-12
0af795
- handle some other interesting edge-cases
0af795
0af795
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-11
0af795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0af795
0af795
* Thu Jul 23 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-10
0af795
- run tests in check
0af795
0af795
* Thu Jul 09 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-9
0af795
- Resolves: rhbz#510360 unowned dirs
0af795
- fix up rpmlint warnings
0af795
0af795
* Tue Jul 07 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-8
0af795
- Resolves: rhbz#509882 ignore an empty LANGUAGE variable
0af795
0af795
* Fri Jun 26 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-7
0af795
- Related: rhbz#498556 default to something sensible in "C" locale
0af795
  for language
0af795
0af795
* Wed Jun 24 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-6
0af795
- Resolves: rhbz#507829 fortify fixes
0af795
0af795
* Fri May 01 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.8-5
0af795
- Resolves: rhbz#498556 fix default language detection
0af795
0af795
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-4
0af795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0af795
0af795
* Sun Nov 23 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.8-3
0af795
- tweak summary
0af795
0af795
* Wed Nov 19 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.8-2
0af795
- Resolves: rhbz#471085 in ispell compatible mode (-a), ignore
0af795
  -m option which means something different to ispell
0af795
0af795
* Sun Nov 02 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.8-1
0af795
- latest version
0af795
0af795
* Sat Oct 18 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.7-5
0af795
- sort as per "C" locale
0af795
0af795
* Fri Oct 17 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.7-4
0af795
- make wordlist2hunspell remove blank lines 
0af795
0af795
* Mon Sep 15 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.7-3
0af795
- Workaround rhbz#462184 uniq/sort problems with viramas
0af795
0af795
* Tue Sep 09 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.7-2
0af795
- add wordlist2hunspell
0af795
0af795
* Sat Aug 23 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.7-1
0af795
- latest version
0af795
0af795
* Tue Jul 29 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.6-1
0af795
- latest version
0af795
0af795
* Sun Jul 27 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.5-1
0af795
- latest version
0af795
0af795
* Tue Jul 22 2008 Kristian Høgsberg <krh@redhat.com> - 1.2.4.2-2
0af795
- Drop ABI breaking hunspell-1.2.2-xulrunner.pita.patch and fix the
0af795
  hunspell include in xulrunner.
0af795
0af795
* Fri Jun 18 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.4.2-1
0af795
- latest version
0af795
0af795
* Thu Jun 17 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.4-1
0af795
- latest version
0af795
0af795
* Fri May 16 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.2-3
0af795
- Resolves: rhbz#446821 fix crash
0af795
0af795
* Wed May 14 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.2-2
0af795
- give xulrunner what it needs so we can get on with it
0af795
0af795
* Fri Apr 18 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.2-1
0af795
- latest version
0af795
- drop integrated hunspell-1.2.1-1863239.badstructs.patch
0af795
0af795
* Wed Mar 05 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.1-6
0af795
- add ispellaff2myspell to devel
0af795
0af795
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-5
0af795
- Autorebuild for GCC 4.3
0af795
0af795
* Thu Jan 03 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.1-4
0af795
- add hunspell-1.2.1-1863239.badstructs.patch
0af795
0af795
* Fri Nov 09 2007 Caolán McNamara <caolanm@redhat.com> - 1.2.1-2
0af795
- pkg-config cockup
0af795
0af795
* Mon Nov 05 2007 Caolán McNamara <caolanm@redhat.com> - 1.2.1-1
0af795
- latest version
0af795
0af795
* Mon Oct 08 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.12.2-2
0af795
- lang fix for man pages from Ville Skyttä
0af795
0af795
* Wed Sep 05 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.12.2-1
0af795
- next version
0af795
0af795
* Tue Aug 28 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.11.2-1
0af795
- next version
0af795
0af795
* Fri Aug 24 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.10-1
0af795
- next version
0af795
0af795
* Thu Aug 02 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.9-2
0af795
- clarify license
0af795
0af795
* Wed Jul 25 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.9-1
0af795
- latest version
0af795
0af795
* Wed Jul 18 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.8.2-1
0af795
- latest version
0af795
0af795
* Tue Jul 17 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.8-1
0af795
- latest version
0af795
0af795
* Sat Jul 07 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.7-1
0af795
- latest version
0af795
- drop integrated hunspell-1.1.5.freem.patch
0af795
0af795
* Fri Jun 29 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.6-1
0af795
- latest version
0af795
- drop integrated hunspell-1.1.4-defaultdictfromlang.patch
0af795
- drop integrated hunspell-1.1.5-badheader.patch
0af795
- drop integrated hunspell-1.1.5.encoding.patch
0af795
0af795
* Fri Jun 29 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.5.3-5
0af795
- fix memory leak
0af795
  http://sourceforge.net/tracker/index.php?func=detail&aid=1745263&group_id=143754&atid=756395
0af795
0af795
* Wed Jun 06 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.5.3-4
0af795
- Resolves: rhbz#212984 discovered problem with missing wordchars
0af795
0af795
* Tue May 22 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.5.3-3
0af795
- Resolves: rhbz#240696 extend encoding patch to promote and add
0af795
  dictionary 8bit WORDCHARS to the ucs-2 word char list
0af795
0af795
* Mon May 21 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.5.3-2
0af795
- Resolves: rhbz#240696 add hunspell-1.1.5.encoding.patch
0af795
0af795
* Mon May 21 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.5.3-1
0af795
- patchlevel release
0af795
0af795
* Tue Mar 20 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.5-2
0af795
- some junk in delivered headers
0af795
0af795
* Tue Mar 20 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.5-1
0af795
- next version
0af795
0af795
* Fri Feb 09 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.4-6
0af795
- some spec cleanups
0af795
0af795
* Fri Jan 19 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.4-5
0af795
- .pc
0af795
0af795
* Thu Jan 11 2007 Caolán McNamara <caolanm@redhat.com> - 1.1.4-4
0af795
- fix out of range
0af795
0af795
* Fri Dec 15 2006 Caolán McNamara <caolanm@redhat.com> - 1.1.4-3
0af795
- hunspell#1616353 simple c api for hunspell
0af795
0af795
* Wed Nov 29 2006 Caolán McNamara <caolanm@redhat.com> - 1.1.4-2
0af795
- add hunspell-1.1.4-defaultdictfromlang.patch to take locale as default
0af795
  dictionary
0af795
0af795
* Wed Oct 25 2006 Caolán McNamara <caolanm@redhat.com> - 1.1.4-1
0af795
- initial version