140 lines
3.6 KiB
RPMSpec
140 lines
3.6 KiB
RPMSpec
Name: hyphen
|
|
Summary: A text hyphenation library
|
|
Version: 2.8.3
|
|
Release: 3%{?dist}
|
|
Source: http://downloads.sourceforge.net/hunspell/hyphen-%{version}.tar.gz
|
|
Group: System Environment/Libraries
|
|
URL: http://hunspell.sf.net
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
License: LGPLv2+ or MPLv1.1
|
|
BuildRequires: perl, patch, autoconf, automake, libtool
|
|
%ifarch %{ix86} x86_64
|
|
BuildRequires: valgrind
|
|
%endif
|
|
|
|
%description
|
|
Hyphen is a library for high quality hyphenation and justification.
|
|
|
|
%package devel
|
|
Requires: hyphen = %{version}-%{release}
|
|
Summary: Files for developing with hyphen
|
|
Group: Development/Libraries
|
|
|
|
%description devel
|
|
Includes and definitions for developing with hyphen
|
|
|
|
%package en
|
|
Requires: hyphen
|
|
Summary: English hyphenation rules
|
|
Group: Applications/Text
|
|
BuildArch: noarch
|
|
|
|
%description en
|
|
English hyphenation rules.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
autoreconf -f
|
|
libtoolize -f
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
%ifarch %{ix86}
|
|
VALGRIND=memcheck make check
|
|
%else
|
|
make check
|
|
%endif
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
|
|
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"
|
|
for lang in $en_US_aliases; do
|
|
ln -s hyph_en_US.dic hyph_$lang.dic
|
|
done
|
|
popd
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO
|
|
%{_libdir}/*.so.*
|
|
%dir %{_datadir}/hyphen
|
|
|
|
%files en
|
|
%defattr(-,root,root,-)
|
|
%{_datadir}/hyphen/hyph_en*.dic
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/hyphen.h
|
|
%{_libdir}/*.so
|
|
%{_bindir}/substrings.pl
|
|
|
|
%changelog
|
|
* Thu Apr 12 2012 Caolán McNamara <caolanm@redhat.com> - 2.8.3-3
|
|
- add Malawian alias
|
|
- add Zambian alias
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Oct 24 2011 Caolán McNamara <caolanm@redhat.com> - 2.8.3-1
|
|
- latest version
|
|
|
|
* Mon Oct 17 2011 Caolán McNamara <caolanm@redhat.com> - 2.8-1
|
|
- latest version
|
|
|
|
* Fri Jun 24 2011 Caolán McNamara <caolanm@redhat.com> - 2.7-3
|
|
- Resolves: rhbz#715995 FTBFS
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Thu Dec 02 2010 Caolán McNamara <caolanm@redhat.com> - 2.7-1
|
|
- latest version
|
|
|
|
* Mon Jul 19 2010 Caolán McNamara <caolanm@redhat.com> - 2.6-1
|
|
- latest version
|
|
- run make check
|
|
|
|
* Thu Feb 25 2010 Caolán McNamara <caolanm@redhat.com> - 2.5-1
|
|
- latest version
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Jul 22 2009 Caolán McNamara <caolanm@redhat.com> - 2.4-4
|
|
- make hyphen-en a noarch subpackage
|
|
|
|
* Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 2.4-3
|
|
- extend coverage
|
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Fri May 02 2008 Caolán McNamara <caolanm@redhat.com> - 2.4-1
|
|
- latest version
|
|
|
|
* Tue Feb 19 2008 Caolán McNamara <caolanm@redhat.com> - 2.3.1-1
|
|
- latest version
|
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3-2
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Mon Nov 12 2007 Caolán McNamara <caolanm@redhat.com> - 2.3-1
|
|
- initial version
|