- cleanups, do not package nss/nspr .chk files
[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
16b5e263 24Release: 0.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
72435308 72%if "%{pld_release}" == "ti"
73%patch1 -p0
74%endif
75
0ee9c31a 76%install
77rm -rf $RPM_BUILD_ROOT
78install -d \
16b5e263
ER
79 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{name}} \
80 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \
0ee9c31a 81
22ff9bcb 82cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
16b5e263
ER
83sed 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{name}
84ln -s %{name} $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
16b5e263
ER
90# never package these
91# nss
92rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
93# nspr
94rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
95# mozldap
96rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
97
98# remove unecessary stuff
99rm $RPM_BUILD_ROOT%{_libdir}/%{name}/README.txt
100rm $RPM_BUILD_ROOT%{_libdir}/%{name}/components/components.list
101rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
102
0ee9c31a 103%clean
104rm -rf $RPM_BUILD_ROOT
105
84e0e533
ER
106%post
107%update_browser_plugins
108
109%postun
110if [ "$1" = 0 ]; then
111 %update_browser_plugins
112fi
113
0ee9c31a 114%files
115%defattr(644,root,root,755)
16b5e263 116%attr(755,root,root) %{_bindir}/%{name}
2afe0ea7 117%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
118
119# browser plugins v2
120%{_browserpluginsconfdir}/browsers.d/%{name}.*
121%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
122
f757977d 123%dir %{_libdir}/%{name}
88e4d241 124%{_libdir}/%{name}/application.ini
e90422b4 125%{_libdir}/%{name}/platform.ini
f757977d 126%{_libdir}/%{name}/res
18e7dc6a 127%dir %{_libdir}/%{name}/extensions
f757977d
ER
128%dir %{_libdir}/%{name}/components
129%attr(755,root,root) %{_libdir}/%{name}/components/*.so
130%{_libdir}/%{name}/components/*.js
131%{_libdir}/%{name}/components/*.xpt
132%{_libdir}/%{name}/chrome
133%{_libdir}/%{name}/defaults
134%{_libdir}/%{name}/greprefs
135%{_libdir}/%{name}/icons
0ad73835
ER
136%dir %{_libdir}/%{name}/plugins
137%attr(755,root,root) %{_libdir}/%{name}/plugins/libnullplugin.so
f757977d
ER
138%{_libdir}/%{name}/searchplugins
139%{_libdir}/%{name}/dictionaries
140%{_libdir}/%{name}/browserconfig.properties
f757977d
ER
141%attr(755,root,root) %{_libdir}/%{name}/*.so
142%attr(755,root,root) %{_libdir}/%{name}/*.sh
143%attr(755,root,root) %{_libdir}/%{name}/m*
144%attr(755,root,root) %{_libdir}/%{name}/f*
16b5e263
ER
145%{_pixmapsdir}/%{name}.png
146%{_desktopdir}/%{name}.desktop
This page took 0.097352 seconds and 4 git commands to generate.