hyphen/hyphen.spec

120 lines
2.9 KiB
RPMSpec
Raw Normal View History

2007-11-23 17:29:21 +00:00
Name: hyphen
Summary: A text hyphenation library
2010-12-02 12:09:17 +00:00
Version: 2.7
2010-08-10 08:26:45 +00:00
Release: 1%{?dist}
2007-11-23 17:29:21 +00:00
Source: http://downloads.sourceforge.net/hunspell/hyphen-%{version}.tar.gz
Group: System Environment/Libraries
2008-02-19 08:48:40 +00:00
URL: http://hunspell.sf.net
2007-11-23 17:29:21 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: LGPLv2+ or MPLv1.1
2010-12-02 12:15:49 +00:00
BuildRequires: perl, patch, autoconf, automake
2010-08-10 08:26:45 +00:00
%ifarch %{ix86} x86_64
BuildRequires: valgrind
%endif
2007-11-23 17:29:21 +00:00
%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
2007-11-23 17:32:56 +00:00
%package en
Requires: hyphen
Summary: English hyphenation rules
Group: Applications/Text
2009-07-22 13:12:01 +00:00
BuildArch: noarch
2007-11-23 17:32:56 +00:00
%description en
English hyphenation rules.
2007-11-23 17:29:21 +00:00
%prep
%setup -q
%build
2010-12-02 12:09:17 +00:00
autoreconf
2007-11-23 17:29:21 +00:00
%configure --disable-static
make %{?_smp_mflags}
2010-03-04 11:47:17 +00:00
%check
2010-08-10 08:26:45 +00:00
%ifarch %{ix86} x86_64
VALGRIND=memcheck make check
%else
make check
%endif
2010-03-04 11:47:17 +00:00
2007-11-23 17:29:21 +00:00
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
2007-11-23 17:32:56 +00:00
pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
2009-06-12 14:23:48 +00:00
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_NA en_NZ en_PH en_SG en_TT en_ZA en_ZW"
2007-11-23 17:32:56 +00:00
for lang in $en_US_aliases; do
ln -s hyph_en_US.dic hyph_$lang.dic
done
popd
2007-11-23 17:29:21 +00:00
%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.*
2007-11-23 17:32:56 +00:00
%dir %{_datadir}/hyphen
%files en
%defattr(-,root,root,-)
%{_datadir}/hyphen/hyph_en*.dic
2007-11-23 17:29:21 +00:00
%files devel
%defattr(-,root,root,-)
%{_includedir}/hyphen.h
%{_libdir}/*.so
%{_bindir}/substrings.pl
%changelog
2010-12-02 12:09:17 +00:00
* Thu Dec 02 2010 Caolán McNamara <caolanm@redhat.com> - 2.7-1
- latest version
2010-08-10 08:26:45 +00:00
* Mon Jul 19 2010 Caolán McNamara <caolanm@redhat.com> - 2.6-1
- latest version
2010-03-04 11:47:17 +00:00
- run make check
2010-08-10 08:26:45 +00:00
* Thu Feb 25 2010 Caolán McNamara <caolanm@redhat.com> - 2.5-1
2010-02-25 20:44:21 +00:00
- 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
2010-08-10 08:26:45 +00:00
* Wed Jul 22 2009 Caolán McNamara <caolanm@redhat.com> - 2.4-4
2009-07-22 13:12:01 +00:00
- make hyphen-en a noarch subpackage
2010-08-10 08:26:45 +00:00
* Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 2.4-3
2009-06-12 14:23:48 +00:00
- 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
2010-08-10 08:26:45 +00:00
* Fri May 02 2008 Caolán McNamara <caolanm@redhat.com> - 2.4-1
2008-05-03 09:56:16 +00:00
- latest version
2010-08-10 08:26:45 +00:00
* Tue Feb 19 2008 Caolán McNamara <caolanm@redhat.com> - 2.3.1-1
2008-02-19 08:48:40 +00:00
- latest version
2008-02-18 22:20:00 +00:00
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3-2
- Autorebuild for GCC 4.3
2010-08-10 08:26:45 +00:00
* Mon Nov 12 2007 Caolán McNamara <caolanm@redhat.com> - 2.3-1
2007-11-23 17:29:21 +00:00
- initial version