ce0588
Name:      hyphen
ce0588
Summary:   A text hyphenation library
ce0588
Version:   2.8.6
a98bb1
Release:   5%{?dist}
ce0588
Source:    http://downloads.sourceforge.net/hunspell/hyphen-%{version}.tar.gz
ce0588
Group:     System Environment/Libraries
ce0588
URL:       http://hunspell.sf.net
ce0588
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ce0588
License:   GPLv2 or LGPLv2+ or MPLv1.1
ce0588
BuildRequires: perl, patch, autoconf, automake, libtool
ce0588
%ifarch %{ix86} x86_64
ce0588
BuildRequires: valgrind
ce0588
%endif
ce0588
Patch0: hyphen-aarch64.patch
ce0588
ce0588
%description
ce0588
Hyphen is a library for high quality hyphenation and justification.
ce0588
ce0588
%package devel
ce0588
Requires: hyphen = %{version}-%{release}
ce0588
Summary: Files for developing with hyphen
ce0588
Group: Development/Libraries
ce0588
ce0588
%description devel
ce0588
Includes and definitions for developing with hyphen
ce0588
ce0588
%package en
ce0588
Requires: hyphen
ce0588
Summary: English hyphenation rules
ce0588
Group: Applications/Text
ce0588
BuildArch: noarch
ce0588
ce0588
%description en
ce0588
English hyphenation rules.
ce0588
ce0588
%prep
ce0588
%setup -q
ce0588
%patch0 -p1 -b .aarch64
ce0588
ce0588
%build
ce0588
%configure --disable-static
ce0588
make %{?_smp_mflags}
ce0588
ce0588
%check
ce0588
#%ifarch %{ix86} x86_64, see rhbz#813780
ce0588
%ifarch %{ix86}
ce0588
VALGRIND=memcheck make check
ce0588
%else
ce0588
make check
ce0588
%endif
ce0588
ce0588
%install
ce0588
rm -rf $RPM_BUILD_ROOT
ce0588
make DESTDIR=$RPM_BUILD_ROOT install
ce0588
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
ce0588
ce0588
pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
ce0588
en_US_aliases="en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_HK en_IE en_IN en_JM en_MW en_NA en_NZ en_PH en_SG en_TT en_ZA en_ZM en_ZW"
ce0588
for lang in $en_US_aliases; do
ce0588
        ln -s hyph_en_US.dic hyph_$lang.dic
ce0588
done
ce0588
popd
ce0588
ce0588
ce0588
%clean
ce0588
rm -rf $RPM_BUILD_ROOT
ce0588
ce0588
%post -p /sbin/ldconfig
ce0588
ce0588
%postun -p /sbin/ldconfig
ce0588
ce0588
%files
ce0588
%defattr(-,root,root,-)
ce0588
%doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO
ce0588
%{_libdir}/*.so.*
ce0588
%dir %{_datadir}/hyphen
ce0588
ce0588
%files en
ce0588
%defattr(-,root,root,-)
ce0588
%{_datadir}/hyphen/hyph_en*.dic
ce0588
ce0588
%files devel
ce0588
%defattr(-,root,root,-)
ce0588
%{_includedir}/hyphen.h
ce0588
%{_libdir}/*.so
ce0588
%{_bindir}/substrings.pl
ce0588
ce0588
%changelog
a98bb1
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.8.6-5
a98bb1
- Mass rebuild 2014-01-24
a98bb1
a98bb1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.8.6-4
a98bb1
- Mass rebuild 2013-12-27
a98bb1
ce0588
* Thu Apr 04 2013 Caolán McNamara <caolanm@redhat.com> - 2.8.6-3
ce0588
- Resolves: rhbz#925563 support aarch64
ce0588
ce0588
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.6-2
ce0588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ce0588
ce0588
* Mon Nov 05 2012 Caolán McNamara <caolanm@redhat.com> - 2.8.6-1
ce0588
- latest version
ce0588
ce0588
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.5-2
ce0588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ce0588
ce0588
* Thu Jul 12 2012 Caolán McNamara <caolanm@redhat.com> - 2.8.5-1
ce0588
- latest version
ce0588
ce0588
* Fri Jun 29 2012 Caolán McNamara <caolanm@redhat.com> - 2.8.4-1
ce0588
- latest version
ce0588
ce0588
* Wed Apr 18 2012 Caolán McNamara <caolanm@redhat.com> - 2.8.3-4
ce0588
- Resolves: rhbz#813481 x86_64 valgrind spews, see rhbz#813780
ce0588
- Related: rhbz#813481 dump valgrind failure log
ce0588
ce0588
* Thu Apr 12 2012 Caolán McNamara <caolanm@redhat.com> - 2.8.3-3
ce0588
- add Malawian alias
ce0588
- add Zambian alias
ce0588
ce0588
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.3-2
ce0588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ce0588
ce0588
* Mon Oct 24 2011 Caolán McNamara <caolanm@redhat.com> - 2.8.3-1
ce0588
- latest version
ce0588
ce0588
* Mon Oct 17 2011 Caolán McNamara <caolanm@redhat.com> - 2.8-1
ce0588
- latest version
ce0588
ce0588
* Fri Jun 24 2011 Caolán McNamara <caolanm@redhat.com> - 2.7-3
ce0588
- Resolves: rhbz#715995 FTBFS
ce0588
ce0588
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-2
ce0588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ce0588
ce0588
* Thu Dec 02 2010 Caolán McNamara <caolanm@redhat.com> - 2.7-1
ce0588
- latest version
ce0588
ce0588
* Mon Jul 19 2010 Caolán McNamara <caolanm@redhat.com> - 2.6-1
ce0588
- latest version
ce0588
- run make check
ce0588
ce0588
* Thu Feb 25 2010 Caolán McNamara <caolanm@redhat.com> - 2.5-1
ce0588
- latest version
ce0588
ce0588
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-5
ce0588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ce0588
ce0588
* Wed Jul 22 2009 Caolán McNamara <caolanm@redhat.com> - 2.4-4
ce0588
- make hyphen-en a noarch subpackage
ce0588
ce0588
* Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 2.4-3
ce0588
- extend coverage
ce0588
ce0588
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
ce0588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ce0588
ce0588
* Fri May 02 2008 Caolán McNamara <caolanm@redhat.com> - 2.4-1
ce0588
- latest version
ce0588
ce0588
* Tue Feb 19 2008 Caolán McNamara <caolanm@redhat.com> - 2.3.1-1
ce0588
- latest version
ce0588
ce0588
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3-2
ce0588
- Autorebuild for GCC 4.3
ce0588
ce0588
* Mon Nov 12 2007 Caolán McNamara <caolanm@redhat.com> - 2.3-1
ce0588
- initial version