mirror of
https://abf.rosa.ru/djam/firefox-esr68.git
synced 2025-02-24 02:12:55 +00:00
Added mozilla-plugin.pc for > 2016.1
This commit is contained in:
parent
f825240726
commit
937999c415
1 changed files with 21 additions and 1 deletions
22
firefox.spec
22
firefox.spec
|
@ -37,7 +37,7 @@ Summary: Next generation web browser
|
||||||
Name: firefox
|
Name: firefox
|
||||||
Version: %{major}
|
Version: %{major}
|
||||||
Epoch: %{ff_epoch}
|
Epoch: %{ff_epoch}
|
||||||
Release: 1
|
Release: 2
|
||||||
License: MPLv1+
|
License: MPLv1+
|
||||||
Group: Networking/WWW
|
Group: Networking/WWW
|
||||||
Url: http://www.mozilla.com/firefox/
|
Url: http://www.mozilla.com/firefox/
|
||||||
|
@ -189,6 +189,9 @@ windows, cookies and downloaded files.
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Other
|
Group: Development/Other
|
||||||
|
%if %{mdvver} > 201610
|
||||||
|
Conflicts: %{_lib}xulrunner-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Files and macros mainly for building Firefox extensions.
|
Files and macros mainly for building Firefox extensions.
|
||||||
|
@ -196,6 +199,10 @@ Files and macros mainly for building Firefox extensions.
|
||||||
%files devel
|
%files devel
|
||||||
%doc AUTHORS CLOBBER LEGAL LICENSE README.txt
|
%doc AUTHORS CLOBBER LEGAL LICENSE README.txt
|
||||||
%{_sys_macros_dir}/%{name}.macros
|
%{_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
|
# (lm) touch and %%ghost bookmarks.html to a proper uninstall
|
||||||
touch %{buildroot}%{mozillalibdir}/defaults/profile/bookmarks.html
|
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 <<EOF >%{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}
|
mkdir -p %{buildroot}%{_sys_macros_dir}
|
||||||
cat <<FIN >%{buildroot}%{_sys_macros_dir}/%{name}.macros
|
cat <<FIN >%{buildroot}%{_sys_macros_dir}/%{name}.macros
|
||||||
# Macros from %{name} package
|
# Macros from %{name} package
|
||||||
|
|
Loading…
Add table
Reference in a new issue