]> git.pld-linux.org Git - packages/mozilla-firefox-bin.git/blame_incremental - mozilla-firefox-bin.spec
- do not require: libnotify.so.1
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.spec
... / ...
CommitLineData
1%define realname firefox
2Summary: Mozilla Firefox web browser
3Summary(pl.UTF-8): Mozilla Firefox - przeglądarka WWW
4Name: mozilla-firefox-bin
5Version: 4.0.1
6Release: 1
7License: MPL/LGPL
8Group: X11/Applications/Networking
9Source0: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2#/%{realname}-%{version}.i686.tar.bz2
10# Source0-md5: 8862b77560aa63dceec3c0a29b5414ab
11Source1: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-x86_64/en-US/%{realname}-%{version}.tar.bz2#/%{realname}-%{version}.x8664.tar.bz2
12# Source1-md5: 4a6cf593dfb92a39d3d908d094a0754c
13Source2: %{name}.desktop
14Source3: %{name}.sh
15#Patch0: %{name}-agent.patch
16#Patch1: %{name}-ti-agent.patch
17#Patch2: nochilds.patch
18URL: http://www.mozilla.org/projects/firefox/
19BuildRequires: rpmbuild(macros) >= 1.453
20BuildRequires: zip
21Requires: browser-plugins >= 2.0
22Requires: myspell-common
23Requires: sqlite3 >= 3.6.22-2
24Provides: wwwbrowser
25Obsoletes: mozilla-firebird
26Conflicts: mozilla-firefox
27ExclusiveArch: i686 athlon %{x8664}
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%define _firefoxdir %{_libdir}/%{name}
31
32%define moz_caps libmozalloc.so libmozsqlite3.so libxpcom.so libxul.so
33%define sqlite_caps libsqlite3.so
34
35# list of files (regexps) which don't generate Provides
36%define _noautoprovfiles %{_libdir}/%{name}/components
37# list of script capabilities (regexps) not to be used in Provides
38%define _noautoprov %{moz_caps}
39%define _noautoreq %{_noautoprov} %{sqlite_caps} libnotify.so.1
40
41# no debuginfo available
42%define _enable_debug_packages 0
43
44%description
45Mozilla Firefox is an open-source web browser, designed for standards
46compliance, performance and portability.
47
48%description -l pl.UTF-8
49Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
50myślą o zgodności ze standardami, wydajnością i przenośnością.
51
52%prep
53%setup -qcT
54%ifarch i686 athlon
55%{__tar} jxf %{SOURCE0} --strip-components=1
56%endif
57%ifarch %{x8664}
58%{__tar} jxf %{SOURCE1} --strip-components=1
59%endif
60%if "%{pld_release}" == "th"
61#%patch0 -p0
62%endif
63%if "%{pld_release}" == "ti"
64#%patch1 -p0
65%endif
66#%patch2 -p1
67
68%install
69rm -rf $RPM_BUILD_ROOT
70install -d \
71 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{name}/plugins} \
72 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
73
74cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
75sed 's,@LIBDIR@,%{_libdir},' %{SOURCE3} > $RPM_BUILD_ROOT%{_bindir}/%{name}
76ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/firefox-bin
77cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
78cp -a icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
79
80%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
81
82# use system dict
83rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
84ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
85
86# use system sqlite
87rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
88ln -s /%{_lib}/libsqlite3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
89
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 update notifier, we prefer rpm packages for updating
99rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/updater
100rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/updater.ini
101rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/update.locale
102rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/Throbber-small.gif
103
104# remove unecessary stuff
105rm $RPM_BUILD_ROOT%{_libdir}/%{name}/README.txt
106rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
107rm $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%pretrans
113if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
114 mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
115fi
116exit 0
117
118%post
119%update_browser_plugins
120
121%postun
122if [ "$1" = 0 ]; then
123 %update_browser_plugins
124fi
125
126%files
127%defattr(644,root,root,755)
128%doc README.txt
129%attr(755,root,root) %{_bindir}/%{name}
130%attr(755,root,root) %{_bindir}/firefox-bin
131
132# browser plugins v2
133%{_browserpluginsconfdir}/browsers.d/%{name}.*
134%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
135
136%dir %{_libdir}/%{name}
137%{_libdir}/%{name}/application.ini
138%{_libdir}/%{name}/blocklist.xml
139#%{_libdir}/%{name}/browserconfig.properties
140%{_libdir}/%{name}/chrome.manifest
141%{_libdir}/%{name}/omni.jar
142%{_libdir}/%{name}/platform.ini
143%attr(755,root,root) %{_libdir}/%{name}/firefox
144%attr(755,root,root) %{_libdir}/%{name}/firefox-bin
145%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
146%attr(755,root,root) %{_libdir}/%{name}/plugin-container
147
148%{_libdir}/%{name}/chrome
149%{_libdir}/%{name}/defaults
150%{_libdir}/%{name}/dictionaries
151#%{_libdir}/%{name}/greprefs
152%{_libdir}/%{name}/icons
153#%{_libdir}/%{name}/modules
154#%{_libdir}/%{name}/res
155%{_libdir}/%{name}/searchplugins
156
157%dir %{_libdir}/%{name}/extensions
158# the signature of the default theme
159%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
160
161#%dir %{_libdir}/%{name}/distribution
162#%dir %{_libdir}/%{name}/distribution/extensions
163#%{_libdir}/%{name}/distribution/extensions/testpilot@labs.mozilla.com.xpi
164
165%dir %{_libdir}/%{name}/components
166%attr(755,root,root) %{_libdir}/%{name}/components/*.so
167%{_libdir}/%{name}/components/binary.manifest
168#%{_libdir}/%{name}/components/*.js
169#%{_libdir}/%{name}/components/*.xpt
170
171%dir %{_libdir}/%{name}/plugins
172#%attr(755,root,root) %{_libdir}/%{name}/plugins/libnullplugin.so
173%attr(755,root,root) %{_libdir}/%{name}/*.so
174%attr(755,root,root) %{_libdir}/%{name}/*.sh
175
176# crashreporter
177%attr(755,root,root) %{_libdir}/%{name}/crashreporter
178%{_libdir}/%{name}/crashreporter-override.ini
179%{_libdir}/%{name}/crashreporter.ini
180
181%{_pixmapsdir}/%{name}.png
182%{_desktopdir}/%{name}.desktop
This page took 0.03044 seconds and 4 git commands to generate.