- add agent patches
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.spec
CommitLineData
0ee9c31a 1%define realname firefox
2Summary: Mozilla Firefox web browser
42b6dbdb 3Summary(pl.UTF-8): Mozilla Firefox - przeglądarka WWW
0ee9c31a 4Name: mozilla-firefox-bin
7754f882 5Version: 3.6.3
72435308 6Release: 5
0ee9c31a 7License: MPL/LGPL
8Group: X11/Applications/Networking
d090773b 9Source0: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2
7754f882 10# Source0-md5: 000a171aa2ef6153b8ac088129ca6620
0ee9c31a 11Source1: %{name}.desktop
14d807c9 12Source2: %{name}.sh
72435308 13Patch0: %{name}-agent.patch
14Patch1: %{name}-ti-agent.patch
0ee9c31a 15URL: http://www.mozilla.org/projects/firefox/
795e56bb 16BuildRequires: zip
0ee9c31a 17Provides: wwwbrowser
d12b7dd2 18Requires: procps
0ee9c31a 19Obsoletes: mozilla-firebird
20Conflicts: mozilla-firefox
83a1e3f4 21ExclusiveArch: i686 athlon
0ee9c31a 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%define _firefoxdir %{_libdir}/%{name}
cb99552d 25
22ff9bcb 26%define nss_caps libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so libnssdbm3.so
97c40bb5 27%define nspr_caps libnspr4.so libplc4.so libplds4.so
22ff9bcb 28%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 29
cb99552d 30# list of files (regexps) which don't generate Provides
f757977d 31%define _noautoprovfiles %{_libdir}/%{name}/components
cb99552d 32# list of script capabilities (regexps) not to be used in Provides
ac3e1eda 33%define _noautoprov %{moz_caps} %{nss_caps} %{nspr_caps}
97c40bb5 34%define _noautoreq %{_noautoprov}
0ee9c31a 35
36%description
37Mozilla Firefox is an open-source web browser, designed for standards
38compliance, performance and portability.
39
dc043ca8
JR
40%description -l pl.UTF-8
41Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
42myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 43
44%prep
45%setup -q -n %{realname}
72435308 46%if "%{pld_release}" == "th"
47%patch0 -p0
48%endif
49
50%if "%{pld_release}" == "ti"
51%patch1 -p0
52%endif
53
0ee9c31a 54
55%build
56%install
57rm -rf $RPM_BUILD_ROOT
58install -d \
59 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \
f757977d 60 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_libdir}/%{name}} \
0ee9c31a 61
22ff9bcb 62cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
2afe0ea7 63sed 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox-bin
64ln -s mozilla-firefox-bin $RPM_BUILD_ROOT%{_bindir}/firefox-bin
0ee9c31a 65install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
4654ee3e 66install icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/mozilla-firefox-bin.png
0ee9c31a 67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
0ee9c31a 71%files
72%defattr(644,root,root,755)
2afe0ea7 73%attr(755,root,root) %{_bindir}/mozilla-firefox-bin
74%attr(755,root,root) %{_bindir}/firefox-bin
f757977d 75%dir %{_libdir}/%{name}
88e4d241 76%{_libdir}/%{name}/application.ini
e90422b4 77%{_libdir}/%{name}/platform.ini
f757977d 78%{_libdir}/%{name}/res
18e7dc6a 79%dir %{_libdir}/%{name}/extensions
f757977d
ER
80%dir %{_libdir}/%{name}/components
81%attr(755,root,root) %{_libdir}/%{name}/components/*.so
82%{_libdir}/%{name}/components/*.js
83%{_libdir}/%{name}/components/*.xpt
84%{_libdir}/%{name}/chrome
85%{_libdir}/%{name}/defaults
86%{_libdir}/%{name}/greprefs
87%{_libdir}/%{name}/icons
88%{_libdir}/%{name}/plugins
89%{_libdir}/%{name}/searchplugins
90%{_libdir}/%{name}/dictionaries
91%{_libdir}/%{name}/browserconfig.properties
92%{_libdir}/%{name}/libfreebl3.chk
93%{_libdir}/%{name}/libsoftokn3.chk
94%attr(755,root,root) %{_libdir}/%{name}/*.so
95%attr(755,root,root) %{_libdir}/%{name}/*.sh
96%attr(755,root,root) %{_libdir}/%{name}/m*
97%attr(755,root,root) %{_libdir}/%{name}/f*
4654ee3e 98%{_pixmapsdir}/mozilla-firefox-bin.png
7345603b 99%{_desktopdir}/*.desktop
This page took 0.054369 seconds and 4 git commands to generate.