[gnome-sdk-images] Add hyphen and use it in webkit
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sdk-images] Add hyphen and use it in webkit
- Date: Fri, 11 Sep 2015 14:25:59 +0000 (UTC)
commit 8973bc825d4f6ac93a5b3a133566a754e984e53b
Author: Alexander Larsson <alexl redhat com>
Date: Fri Sep 11 11:08:06 2015 +0200
Add hyphen and use it in webkit
specs/gnome-platform.spec | 1 +
specs/gnome-sdk.spec | 1 +
specs/hyphen.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++
specs/webkitgtk4.spec | 2 +-
4 files changed, 83 insertions(+), 1 deletions(-)
---
diff --git a/specs/gnome-platform.spec b/specs/gnome-platform.spec
index 2fda542..3d0decb 100644
--- a/specs/gnome-platform.spec
+++ b/specs/gnome-platform.spec
@@ -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
diff --git a/specs/gnome-sdk.spec b/specs/gnome-sdk.spec
index 7601c5d..303f0c5 100644
--- a/specs/gnome-sdk.spec
+++ b/specs/gnome-sdk.spec
@@ -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
diff --git a/specs/hyphen.spec b/specs/hyphen.spec
new file mode 100644
index 0000000..109d467
--- /dev/null
+++ b/specs/hyphen.spec
@@ -0,0 +1,80 @@
+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
diff --git a/specs/webkitgtk4.spec b/specs/webkitgtk4.spec
index b713dbf..efcc2ba 100644
--- a/specs/webkitgtk4.spec
+++ b/specs/webkitgtk4.spec
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]