diff --git a/hyphen-2.8.8.tar.gz b/hyphen-2.8.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0e07e26ae9596ea95576524795e1c058cfa580ed Binary files /dev/null and b/hyphen-2.8.8.tar.gz differ diff --git a/hyphen.spec b/hyphen.spec new file mode 100644 index 0000000000000000000000000000000000000000..db1403e82bd88804668cffa66875ff4c59b5c381 --- /dev/null +++ b/hyphen.spec @@ -0,0 +1,71 @@ +%define anolis_release 1 +Name: hyphen +Summary: A text hyphenation library +Version: 2.8.8 +Release: %{anolis_release}%{?dist} +Source: http://downloads.sourceforge.net/hunspell/hyphen-%{version}.tar.gz +URL: http://hunspell.sf.net +License: GPLv2 or LGPLv2+ or MPLv1.1 +BuildRequires: perl-interpreter, patch, autoconf, automake, libtool +BuildRequires: make valgrind + +%description +Hyphen is a library for high quality hyphenation and justification. + +%package devel +Requires: hyphen = %{version}-%{release} +Summary: Files for developing with hyphen + +%description devel +Includes and definitions for developing with hyphen + +%package en +Requires: hyphen +Summary: English hyphenation rules +BuildArch: noarch + +%description en +English hyphenation rules. + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags} + +%check +make check +VALGRIND=memcheck make check + +%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 + + +%ldconfig_scriptlets + +%files +%doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO +%{_libdir}/*.so.* +%dir %{_datadir}/hyphen + +%files en +%{_datadir}/hyphen/hyph_en*.dic + +%files devel +%{_includedir}/hyphen.h +%{_libdir}/*.so +%{_bindir}/substrings.pl + +%changelog +* Tue Apr 12 2022 Chunmei Xu - 2.8.8-1 +- init from upstream