Package init
This commit is contained in:
commit
c948de8459
BIN
hyphen-2.8.8.tar.gz
Normal file
BIN
hyphen-2.8.8.tar.gz
Normal file
Binary file not shown.
67
hyphen.spec
Normal file
67
hyphen.spec
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
Name: hyphen
|
||||||
|
Version: 2.8.8
|
||||||
|
Release: 11
|
||||||
|
Summary: A library of text hyphenation
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
License: GPLv2 or LGPLv2+ or MPLv1.1
|
||||||
|
URL: http://hunspell.github.io
|
||||||
|
Source0: http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: perl-interpreter, patch, autoconf, automake, libtool
|
||||||
|
%ifarch x86_64 %{x86}
|
||||||
|
BuildRequires: valgrind
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
Hyphen is a library for high quality text hyphenation and justification.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Files for %{name} development
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Group: Development/Libraries
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Includes and definitions for developing with hyphen
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
rm -f %{buildroot}/%{_libdir}/*.la
|
||||||
|
|
||||||
|
cd %{buildroot}/%{_datadir}/%{name}/
|
||||||
|
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
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
%ifarch x86_64 %{x86}
|
||||||
|
VALGRIND=memcheck make check
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS ChangeLog README README.%{name} README.nonstandard TODO
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/%{name}.h
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_bindir}/substrings.pl
|
||||||
|
%{_datadir}/%{name}/hyph_en*.dic
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Sep 06 2019 openEuler Buildteam <buildteam@openeuler.com> - 2.8.8-11
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user