- add browser plugins integration
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.spec
CommitLineData
84e0e533
ER
1# TODO
2# /usr/lib/mozilla-firefox-bin/.autoreg
3# /usr/lib/mozilla-firefox-bin/LICENSE
4# /usr/lib/mozilla-firefox-bin/README.txt
5# /usr/lib/mozilla-firefox-bin/Throbber-small.gif
6# /usr/lib/mozilla-firefox-bin/blocklist.xml
7# /usr/lib/mozilla-firefox-bin/components/components.list
8# /usr/lib/mozilla-firefox-bin/crashreporter
9# /usr/lib/mozilla-firefox-bin/crashreporter-override.ini
10# /usr/lib/mozilla-firefox-bin/crashreporter.ini
11# /usr/lib/mozilla-firefox-bin/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/icon.png
12# /usr/lib/mozilla-firefox-bin/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
13# /usr/lib/mozilla-firefox-bin/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/preview.png
14# /usr/lib/mozilla-firefox-bin/libnssdbm3.chk
15# /usr/lib/mozilla-firefox-bin/removed-files
16# /usr/lib/mozilla-firefox-bin/update.locale
17# /usr/lib/mozilla-firefox-bin/updater
18# /usr/lib/mozilla-firefox-bin/updater.ini
0ee9c31a 19%define realname firefox
20Summary: Mozilla Firefox web browser
42b6dbdb 21Summary(pl.UTF-8): Mozilla Firefox - przeglądarka WWW
0ee9c31a 22Name: mozilla-firefox-bin
7754f882 23Version: 3.6.3
72435308 24Release: 5
0ee9c31a 25License: MPL/LGPL
26Group: X11/Applications/Networking
d090773b 27Source0: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2
7754f882 28# Source0-md5: 000a171aa2ef6153b8ac088129ca6620
0ee9c31a 29Source1: %{name}.desktop
14d807c9 30Source2: %{name}.sh
72435308 31Patch0: %{name}-agent.patch
32Patch1: %{name}-ti-agent.patch
0ee9c31a 33URL: http://www.mozilla.org/projects/firefox/
84e0e533 34BuildRequires: rpmbuild(macros) >= 1.453
795e56bb 35BuildRequires: zip
84e0e533 36Requires: browser-plugins >= 2.0
d12b7dd2 37Requires: procps
84e0e533 38Provides: wwwbrowser
0ee9c31a 39Obsoletes: mozilla-firebird
40Conflicts: mozilla-firefox
83a1e3f4 41ExclusiveArch: i686 athlon
0ee9c31a 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%define _firefoxdir %{_libdir}/%{name}
cb99552d 45
22ff9bcb 46%define nss_caps libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so libnssdbm3.so
97c40bb5 47%define nspr_caps libnspr4.so libplc4.so libplds4.so
22ff9bcb 48%define moz_caps libgkgfx.so libgtkembedmoz.so libgtkxtbin.so libjsj.so libmozjs.so libnullplugin.so libxpcom_compat.so libxpcom_core.so libxpcom.so libxpistub.so libxul.so libsqlite3.so
ac3e1eda 49
cb99552d 50# list of files (regexps) which don't generate Provides
f757977d 51%define _noautoprovfiles %{_libdir}/%{name}/components
cb99552d 52# list of script capabilities (regexps) not to be used in Provides
ac3e1eda 53%define _noautoprov %{moz_caps} %{nss_caps} %{nspr_caps}
97c40bb5 54%define _noautoreq %{_noautoprov}
0ee9c31a 55
56%description
57Mozilla Firefox is an open-source web browser, designed for standards
58compliance, performance and portability.
59
dc043ca8
JR
60%description -l pl.UTF-8
61Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
62myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 63
64%prep
65%setup -q -n %{realname}
72435308 66%if "%{pld_release}" == "th"
67%patch0 -p0
68%endif
69
70%if "%{pld_release}" == "ti"
71%patch1 -p0
72%endif
73
0ee9c31a 74
75%build
76%install
77rm -rf $RPM_BUILD_ROOT
78install -d \
79 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \
f757977d 80 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_libdir}/%{name}} \
0ee9c31a 81
22ff9bcb 82cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
2afe0ea7 83sed 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox-bin
84ln -s mozilla-firefox-bin $RPM_BUILD_ROOT%{_bindir}/firefox-bin
84e0e533
ER
85cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
86cp -a icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/mozilla-firefox-bin.png
87
88%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
0ee9c31a 89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
84e0e533
ER
93%post
94%update_browser_plugins
95
96%postun
97if [ "$1" = 0 ]; then
98 %update_browser_plugins
99fi
100
0ee9c31a 101%files
102%defattr(644,root,root,755)
2afe0ea7 103%attr(755,root,root) %{_bindir}/mozilla-firefox-bin
104%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
105
106# browser plugins v2
107%{_browserpluginsconfdir}/browsers.d/%{name}.*
108%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
109
f757977d 110%dir %{_libdir}/%{name}
88e4d241 111%{_libdir}/%{name}/application.ini
e90422b4 112%{_libdir}/%{name}/platform.ini
f757977d 113%{_libdir}/%{name}/res
18e7dc6a 114%dir %{_libdir}/%{name}/extensions
f757977d
ER
115%dir %{_libdir}/%{name}/components
116%attr(755,root,root) %{_libdir}/%{name}/components/*.so
117%{_libdir}/%{name}/components/*.js
118%{_libdir}/%{name}/components/*.xpt
119%{_libdir}/%{name}/chrome
120%{_libdir}/%{name}/defaults
121%{_libdir}/%{name}/greprefs
122%{_libdir}/%{name}/icons
123%{_libdir}/%{name}/plugins
124%{_libdir}/%{name}/searchplugins
125%{_libdir}/%{name}/dictionaries
126%{_libdir}/%{name}/browserconfig.properties
127%{_libdir}/%{name}/libfreebl3.chk
128%{_libdir}/%{name}/libsoftokn3.chk
129%attr(755,root,root) %{_libdir}/%{name}/*.so
130%attr(755,root,root) %{_libdir}/%{name}/*.sh
131%attr(755,root,root) %{_libdir}/%{name}/m*
132%attr(755,root,root) %{_libdir}/%{name}/f*
4654ee3e 133%{_pixmapsdir}/mozilla-firefox-bin.png
7345603b 134%{_desktopdir}/*.desktop
This page took 0.123986 seconds and 4 git commands to generate.