summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2017-04-18 13:41:24 +0200
committerMartin Stransky <stransky@redhat.com>2017-04-18 13:41:24 +0200
commit6ac768e704f995f1acd530f78256c69c69917b7c (patch)
treee8d781ee732b478af6eb34114c32bc5d91f82997
parentremoved widget/gtk trunk rebase patch (diff)
downloadlibrewolf-fedora-ff-6ac768e704f995f1acd530f78256c69c69917b7c.tar.gz
librewolf-fedora-ff-6ac768e704f995f1acd530f78256c69c69917b7c.tar.bz2
librewolf-fedora-ff-6ac768e704f995f1acd530f78256c69c69917b7c.zip
Disable system hunspell library when necessary
-rw-r--r--firefox.spec20
1 files changed, 19 insertions, 1 deletions
diff --git a/firefox.spec b/firefox.spec
index c1aefb4..5af62f2 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -4,6 +4,13 @@
# Use system nspr/nss?
%define system_nss 1
+# Use system hunspell?
+%if 0%{?fedora} > 25
+%define system_hunspell 1
+%else
+%define system_hunspell 0
+%endif
+
# Use system sqlite?
%if 0%{?fedora} > 25
%define system_sqlite 1
@@ -103,7 +110,7 @@
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 53.0
-Release: 1%{?pre_tag}%{?dist}
+Release: 2%{?pre_tag}%{?dist}
URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@@ -180,7 +187,9 @@ BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(freetype2) >= %{freetype_version}
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xrender)
+%if %{?system_hunspell}
BuildRequires: pkgconfig(hunspell)
+%endif
BuildRequires: pkgconfig(libstartup-notification-1.0)
%if %{?alsa_backend}
BuildRequires: pkgconfig(alsa)
@@ -364,6 +373,12 @@ echo "ac_add_options --disable-elf-hack" >> .mozconfig
echo "ac_add_options --enable-alsa" >> .mozconfig
%endif
+%if %{?system_hunspell}
+echo "ac_add_options --enable-system-hunspell" >> .mozconfig
+%else
+echo "ac_add_options --disable-system-hunspell" >> .mozconfig
+%endif
+
%if %{?debug_build}
echo "ac_add_options --enable-debug" >> .mozconfig
echo "ac_add_options --disable-optimize" >> .mozconfig
@@ -840,6 +855,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#---------------------------------------------------------------------
%changelog
+* Tue Apr 18 2017 Martin Stransky <stransky@redhat.com> - 53.0-2
+- Disable system hunspell library when necessary
+
* Tue Apr 18 2017 Martin Stransky <stransky@redhat.com> - 53.0-1
- Updated to 53.0 (B6)
bgstack15