- inspired by other webbrowsers
[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:        4
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 URL:            http://www.mozilla.org/projects/firefox/
14 BuildRequires:  zip
15 Provides:       wwwbrowser
16 Requires:       procps
17 Obsoletes:      mozilla-firebird
18 Conflicts:      mozilla-firefox
19 ExclusiveArch:  i686 athlon
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _firefoxdir     %{_libdir}/%{name}
23
24 %define         nss_caps        libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so libnssdbm3.so
25 %define         nspr_caps       libnspr4.so libplc4.so libplds4.so
26 %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
27
28 # list of files (regexps) which don't generate Provides
29 %define         _noautoprovfiles        %{_libdir}/%{name}/components
30 # list of script capabilities (regexps) not to be used in Provides
31 %define         _noautoprov                     %{moz_caps} %{nss_caps} %{nspr_caps}
32 %define         _noautoreq                      %{_noautoprov}
33
34 %description
35 Mozilla Firefox is an open-source web browser, designed for standards
36 compliance, performance and portability.
37
38 %description -l pl.UTF-8
39 Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
40 myślą o zgodności ze standardami, wydajnością i przenośnością.
41
42 %prep
43 %setup -q -n %{realname}
44
45 %build
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d \
49         $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \
50         $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_libdir}/%{name}} \
51
52 cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
53 sed 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox-bin
54 ln -s mozilla-firefox-bin $RPM_BUILD_ROOT%{_bindir}/firefox-bin
55 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
56 install icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/mozilla-firefox-bin.png
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/mozilla-firefox-bin
64 %attr(755,root,root) %{_bindir}/firefox-bin
65 %dir %{_libdir}/%{name}
66 %{_libdir}/%{name}/application.ini
67 %{_libdir}/%{name}/platform.ini
68 %{_libdir}/%{name}/res
69 %dir %{_libdir}/%{name}/extensions
70 %dir %{_libdir}/%{name}/components
71 %attr(755,root,root) %{_libdir}/%{name}/components/*.so
72 %{_libdir}/%{name}/components/*.js
73 %{_libdir}/%{name}/components/*.xpt
74 %{_libdir}/%{name}/chrome
75 %{_libdir}/%{name}/defaults
76 %{_libdir}/%{name}/greprefs
77 %{_libdir}/%{name}/icons
78 %{_libdir}/%{name}/plugins
79 %{_libdir}/%{name}/searchplugins
80 %{_libdir}/%{name}/dictionaries
81 %{_libdir}/%{name}/browserconfig.properties
82 %{_libdir}/%{name}/libfreebl3.chk
83 %{_libdir}/%{name}/libsoftokn3.chk
84 %attr(755,root,root) %{_libdir}/%{name}/*.so
85 %attr(755,root,root) %{_libdir}/%{name}/*.sh
86 %attr(755,root,root) %{_libdir}/%{name}/m*
87 %attr(755,root,root) %{_libdir}/%{name}/f*
88 %{_pixmapsdir}/mozilla-firefox-bin.png
89 %{_desktopdir}/*.desktop
This page took 0.035855 seconds and 3 git commands to generate.