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