Commit 8973bc82 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add hyphen and use it in webkit

parent 1d79c254
......@@ -45,6 +45,7 @@ Requires: dbus-glib
Requires: dconf
Requires: dejavu-fonts
Requires: enchant
Requires: hyphen
Requires: gjs
Requires: gnome-themes-standard
Requires: gsettings-desktop-schemas
......
......@@ -31,6 +31,7 @@ Requires: gsettings-desktop-schemas-dev
Requires: gtk2-dev
Requires: gtk3-dev
Requires: gvfs-dev
Requires: hyphen-dev
Requires: libappstream-glib-dev
Requires: libcroco-dev
Requires: libnotify-dev
......
Name: hyphen
Summary: A text hyphenation library
Version: 2.8.8
Release: 1%{?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: GPLv2 or LGPLv2+ or MPLv1.1
BuildRequires: freedesktop-sdk-base
%description
Hyphen is a library for high quality hyphenation and justification.
%package dev
Requires: hyphen = %{version}-%{release}
Summary: Files for developing with hyphen
Group: Development/Libraries
%description dev
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
%configure --disable-static
make %{?_smp_mflags}
%check
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
%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 dev
%defattr(-,root,root,-)
%{_includedir}/hyphen.h
%{_libdir}/*.so
%{_bindir}/substrings.pl
%changelog
* Fri Sep 11 2015 Alexander Larsson <alexl@redhat.com> - 2.8.8-1
- Initial version
......@@ -38,6 +38,7 @@ BuildRequires: libwayland-client-dev
BuildRequires: libwayland-cursor-dev
BuildRequires: libwayland-server-dev
BuildRequires: libnotify-dev
BuildRequires: hyphen-dev
# Filter out provides for private libraries
%global __provides_exclude_from ^%{_libdir}/webkit2gtk-4\\.0/.*\\.so$
......@@ -90,7 +91,6 @@ CXXFLAGS="${CFLAGS}" ; export CXXFLAGS ; \
-DENABLE_GTKDOC=OFF \
-DENABLE_VIDEO=ON \
-DENABLE_WEB_AUDIO=ON \
-DUSE_LIBHYPHEN=OFF \
..
popd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment