2 # - HEAD - stable version
3 # - DEVEL - development version
4 # - WEEKLY - weekly development version
6 # NOTE: to avoid creating unreadable/unmaintainable spec:
7 # - don't put static version here, create STATIC branch for that for example
8 # - don't create useless bconds that for example limit SourceX: to current arch only
11 %bcond_with qt4 #take the qt4 version
14 %define shver %(echo %{ver} | tr -d .)
17 Summary: World fastest web browser
18 Summary(pl.UTF-8): Najszybsza przeglądarka WWW na świecie
23 License: Distributable
24 Group: X11/Applications/Networking
25 Source10: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/i386/shared/%{name}-%{version}.gcc4-shared-qt3.i386.tar.bz2
26 # Source10-md5: fab34279f40b305a90e6c248f8cf83da
27 Source11: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/x86_64/%{name}-%{version}.gcc4-shared-qt3.x86_64.tar.bz2
28 # Source11-md5: ab7d0fa42a1579d8dcf0f865f43e5504
29 Source12: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/ppc/shared/%{name}-%{version}.gcc4-shared-qt3.ppc.tar.bz2
30 # Source12-md5: d1cad1fc8d1405e7b381a46830f6682a
31 Source13: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/i386/%{name}-%{version}.gcc4-qt4.i386.tar.bz2
32 # Source13-md5: ef895e80f26915fdedc0c5eaee486009
33 Source0: %{name}.desktop
34 Patch0: %{name}-wrapper.patch
35 Patch1: %{name}-agent-ac.patch
36 Patch2: %{name}-agent-th.patch
37 Patch3: %{name}-agent-ti.patch
38 URL: http://www.opera.com/
39 BuildRequires: rpm >= 4.4.9-56
40 BuildRequires: rpmbuild(macros) >= 1.356
41 BuildRequires: sed >= 4.0
42 Requires: browser-plugins >= 2.0
43 Requires: freetype >= 2
46 ExclusiveArch: %{ix86} %{x8664} ppc
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 %define _plugindir %{_libdir}/opera/plugins
50 %define _operadocdir %{_docdir}/%{name}-%{ver}
51 # alternative arch for plugin32
55 Opera is world fastest web browser. It supports most of nowaday
56 extensions of HTML. And it is quite stable. This version is linked
57 with shared version of Qt.
59 %description -l pl.UTF-8
60 Opera jest najszybszą przeglądarką WWW na świecie. Obsługuje większość
61 dzisiejszych rozszerzeń HTML-a. Dodatkowo jest w miarę stabilna. Ta
62 wersja jest skonsolidowana dynamicznie z Qt.
65 Summary: Opera 32-bit plugins support
66 Summary(pl.UTF-8): Obsługa 32-bitowych wtyczek Opery
67 Group: X11/Applications/Networking
68 Requires: %{name} = %{epoch}:%{version}-%{release}
69 Requires: browser-plugins >= 2.0
72 Opera 32-bit plugins support.
74 %description plugin32 -l pl.UTF-8
75 Obsługa 32-bitowych wtyczek Opery.
80 %setup -q -T -b 13 -n %{name}-%{version}-%{buildid}.gcc4-qt4.i386
81 %define _noautoreq 'libpng12.so.0(.*)'
83 %setup -q -T -b 10 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.i386
87 %setup -q -T -b 11 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.x86_64
90 %setup -q -T -b 12 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.ppc
93 %if "%{pld_release}" == "ac"
96 %if "%{pld_release}" == "th"
99 %if "%{pld_release}" == "ti"
104 rm -rf $RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_sysconfdir}}
107 %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins -b <<'EOF'
108 # opera does not use for .xpt files
111 # use mplayerplug-in-opera instead
114 # opera uses libjava.so to run java
119 install -d $RPM_BUILD_ROOT%{_prefix}/lib/%{name}/plugins
120 %browser_plugins_add_browser %{name} -a %{alt_arch} -p %{_prefix}/lib/%{name}/plugins -b <<'EOF'
121 # opera does not use for .xpt files
124 # use mplayerplug-in-opera instead
127 # opera uses libjava.so to run java
133 DESTDIR=$RPM_BUILD_ROOT \
134 --prefix=%{_prefix} \
135 --exec_prefix=%{_libdir}/%{name}/bin \
136 --plugindir=%{_libdir}/%{name}/plugins \
137 --docdir=%{_operadocdir}
139 # install in kde etc.
140 install %{SOURCE0} $RPM_BUILD_ROOT%{_desktopdir}
142 install etc/* $RPM_BUILD_ROOT%{_sysconfdir}
143 install usr/share/pixmaps/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
146 rm -rf $RPM_BUILD_ROOT
149 %update_browser_plugins
152 if [ "$1" = 0 ]; then
153 %update_browser_plugins
157 %update_browser_plugins
160 if [ "$1" = 0 ]; then
161 %update_browser_plugins
165 %defattr(644,root,root,755)
167 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opera*rc*
170 %{_browserpluginsconfdir}/browsers.d/%{name}.%{_target_base_arch}
171 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.%{_target_base_arch}.blacklist
173 %attr(755,root,root) %{_bindir}/*
174 %dir %{_libdir}/opera
175 %dir %{_libdir}/opera/bin
176 %attr(755,root,root) %{_libdir}/opera/bin/*
178 %exclude %{_libdir}/opera/bin/*-ia32-*
181 %dir %{_datadir}/opera
182 %{_datadir}/opera/*.*
183 %{_datadir}/opera/ini
184 %{_datadir}/opera/java
185 %{_datadir}/opera/skin
186 %{_datadir}/opera/styles
187 %dir %{_datadir}/opera/locale
188 %{_datadir}/opera/locale/en
189 %{_datadir}/opera/locale/english.lng
190 %lang(be) %{_datadir}/opera/locale/be
191 %lang(bg) %{_datadir}/opera/locale/bg
192 %lang(cs) %{_datadir}/opera/locale/cs
193 %lang(da) %{_datadir}/opera/locale/da
194 %lang(de) %{_datadir}/opera/locale/de
195 %lang(el) %{_datadir}/opera/locale/el
196 %lang(en_GB) %{_datadir}/opera/locale/en-GB
197 %lang(es) %{_datadir}/opera/locale/es-ES
198 %lang(es_LA) %{_datadir}/opera/locale/es-LA
199 %lang(et) %{_datadir}/opera/locale/et
200 %lang(fi) %{_datadir}/opera/locale/fi
201 %lang(fr) %{_datadir}/opera/locale/fr
202 %lang(fr_CA) %{_datadir}/opera/locale/fr-CA
203 %lang(fy) %{_datadir}/opera/locale/fy
204 %lang(hi) %{_datadir}/opera/locale/hi
205 %lang(hr) %{_datadir}/opera/locale/hr
206 %lang(hu) %{_datadir}/opera/locale/hu
207 %lang(id) %{_datadir}/opera/locale/id
208 %lang(it) %{_datadir}/opera/locale/it
209 %lang(ja) %{_datadir}/opera/locale/ja
210 %lang(ka) %{_datadir}/opera/locale/ka
211 %lang(ko) %{_datadir}/opera/locale/ko
212 %lang(lt) %{_datadir}/opera/locale/lt
213 %lang(mk) %{_datadir}/opera/locale/mk
214 %lang(nb) %{_datadir}/opera/locale/nb
215 %lang(nl) %{_datadir}/opera/locale/nl
216 %lang(nn) %{_datadir}/opera/locale/nn
217 %lang(pl) %{_datadir}/opera/locale/pl
218 %lang(pt) %{_datadir}/opera/locale/pt
219 %lang(pt_BR) %{_datadir}/opera/locale/pt-BR
220 %lang(ru) %{_datadir}/opera/locale/ru
221 %lang(sv) %{_datadir}/opera/locale/sv
222 %lang(ta) %{_datadir}/opera/locale/ta
223 %lang(te) %{_datadir}/opera/locale/te
224 %lang(tr) %{_datadir}/opera/locale/tr
225 %lang(uk) %{_datadir}/opera/locale/uk
226 %lang(zh_CN) %{_datadir}/opera/locale/zh-cn
227 %lang(zh_TW) %{_datadir}/opera/locale/zh-tw
228 %{_desktopdir}/*.desktop
229 %{_mandir}/man1/opera.1*
230 %{_pixmapsdir}/opera.xpm
234 %defattr(644,root,root,755)
236 %{_browserpluginsconfdir}/browsers.d/%{name}.%{alt_arch}
237 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.%{alt_arch}.blacklist
238 %dir %{_prefix}/lib/%{name}
239 %dir %{_prefix}/lib/%{name}/plugins
240 %attr(755,root,root) %{_libdir}/%{name}/bin/*-ia32-*