- updated
[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
508f314e 23Version: 3.6.8
24Release: 1
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
508f314e 28# Source0-md5: 689232baf90592cf237817c34ac29bb2
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
0ad73835
ER
56# no debuginfo available
57%define _enable_debug_packages 0
58
0ee9c31a 59%description
60Mozilla Firefox is an open-source web browser, designed for standards
61compliance, performance and portability.
62
dc043ca8
JR
63%description -l pl.UTF-8
64Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
65myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 66
67%prep
68%setup -q -n %{realname}
72435308 69%if "%{pld_release}" == "th"
70%patch0 -p0
71%endif
72
73%if "%{pld_release}" == "ti"
74%patch1 -p0
75%endif
76
0ee9c31a 77
78%build
79%install
80rm -rf $RPM_BUILD_ROOT
81install -d \
82 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \
f757977d 83 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_libdir}/%{name}} \
0ee9c31a 84
22ff9bcb 85cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
2afe0ea7 86sed 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox-bin
87ln -s mozilla-firefox-bin $RPM_BUILD_ROOT%{_bindir}/firefox-bin
84e0e533
ER
88cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
89cp -a icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/mozilla-firefox-bin.png
90
91%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
0ee9c31a 92
93%clean
94rm -rf $RPM_BUILD_ROOT
95
84e0e533
ER
96%post
97%update_browser_plugins
98
99%postun
100if [ "$1" = 0 ]; then
101 %update_browser_plugins
102fi
103
0ee9c31a 104%files
105%defattr(644,root,root,755)
2afe0ea7 106%attr(755,root,root) %{_bindir}/mozilla-firefox-bin
107%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
108
109# browser plugins v2
110%{_browserpluginsconfdir}/browsers.d/%{name}.*
111%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
112
f757977d 113%dir %{_libdir}/%{name}
88e4d241 114%{_libdir}/%{name}/application.ini
e90422b4 115%{_libdir}/%{name}/platform.ini
f757977d 116%{_libdir}/%{name}/res
18e7dc6a 117%dir %{_libdir}/%{name}/extensions
f757977d
ER
118%dir %{_libdir}/%{name}/components
119%attr(755,root,root) %{_libdir}/%{name}/components/*.so
120%{_libdir}/%{name}/components/*.js
121%{_libdir}/%{name}/components/*.xpt
122%{_libdir}/%{name}/chrome
123%{_libdir}/%{name}/defaults
124%{_libdir}/%{name}/greprefs
125%{_libdir}/%{name}/icons
0ad73835
ER
126%dir %{_libdir}/%{name}/plugins
127%attr(755,root,root) %{_libdir}/%{name}/plugins/libnullplugin.so
f757977d
ER
128%{_libdir}/%{name}/searchplugins
129%{_libdir}/%{name}/dictionaries
130%{_libdir}/%{name}/browserconfig.properties
131%{_libdir}/%{name}/libfreebl3.chk
132%{_libdir}/%{name}/libsoftokn3.chk
133%attr(755,root,root) %{_libdir}/%{name}/*.so
134%attr(755,root,root) %{_libdir}/%{name}/*.sh
135%attr(755,root,root) %{_libdir}/%{name}/m*
136%attr(755,root,root) %{_libdir}/%{name}/f*
4654ee3e 137%{_pixmapsdir}/mozilla-firefox-bin.png
7345603b 138%{_desktopdir}/*.desktop
This page took 0.05291 seconds and 4 git commands to generate.