From 937999c415600fa927aa2457abd01d80ce9a9337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B7=D0=B8=D0=BC?= Date: Thu, 4 Jul 2019 11:20:43 +0300 Subject: [PATCH] Added mozilla-plugin.pc for > 2016.1 --- firefox.spec | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/firefox.spec b/firefox.spec index 8daf729..1f0ba95 100644 --- a/firefox.spec +++ b/firefox.spec @@ -37,7 +37,7 @@ Summary: Next generation web browser Name: firefox Version: %{major} Epoch: %{ff_epoch} -Release: 1 +Release: 2 License: MPLv1+ Group: Networking/WWW Url: http://www.mozilla.com/firefox/ @@ -189,6 +189,9 @@ windows, cookies and downloaded files. %package devel Summary: Development files for %{name} Group: Development/Other +%if %{mdvver} > 201610 +Conflicts: %{_lib}xulrunner-devel +%endif %description devel Files and macros mainly for building Firefox extensions. @@ -196,6 +199,10 @@ Files and macros mainly for building Firefox extensions. %files devel %doc AUTHORS CLOBBER LEGAL LICENSE README.txt %{_sys_macros_dir}/%{name}.macros +%if %{mdvver} > 201610 +%{_includedir}/np*.h +%{_datadir}/pkgconfig/mozilla-plugin.pc +%endif #--------------------------------------------------------------------- @@ -400,6 +407,19 @@ ln -s %{_datadir}/dict/mozilla/ %{buildroot}%{mozillalibdir}/dictionaries # (lm) touch and %%ghost bookmarks.html to a proper uninstall touch %{buildroot}%{mozillalibdir}/defaults/profile/bookmarks.html +%if %{mdvver} > 201610 +# Add stuff to build a plugin to -devel +mkdir -p %{buildroot}%{_includedir} +cp -a dom/plugins/base/np*.h %{buildroot}%{_includedir} +mkdir -p %{buildroot}/%{_datadir}/pkgconfig +cat <%{buildroot}/%{_datadir}/pkgconfig/mozilla-plugin.pc +Name: Mozilla Plug-In API +Description: Mozilla Plug-In API +Version: %{version} +Cflags: -I%{_includedir} -DXP_UNIX +EOF +%endif + mkdir -p %{buildroot}%{_sys_macros_dir} cat <%{buildroot}%{_sys_macros_dir}/%{name}.macros # Macros from %{name} package