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: 6808a20463edad0bb1f0038427f2edac
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: 24c45c43840e328b5e34276016f40538
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: 5fda1ed35d1d06a6ba8c16446065f3bc
31 Source13: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/i386/%{name}-%{version}.gcc4-qt4.i386.tar.bz2
32 # Source13-md5: 3b8c9b22e383645a7aed57c976eec799
33 Source0: %{name}.desktop
34 Patch0: %{name}-wrapper.patch
35 URL: http://www.opera.com/
36 BuildRequires: rpmbuild(macros) >= 1.356
37 BuildRequires: sed >= 4.0
38 Requires: browser-plugins >= 2.0
39 Requires: freetype >= 2
42 ExclusiveArch: %{ix86} %{x8664} ppc
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _plugindir %{_libdir}/opera/plugins
46 %define _operadocdir %{_docdir}/%{name}-%{ver}
47 # alternative arch for plugin32
51 Opera is world fastest web browser. It supports most of nowaday
52 extensions of HTML. And it is quite stable. This version is
53 linked with shared version of Qt.
55 %description -l pl.UTF-8
56 Opera jest najszybszą przeglądarką WWW na świecie. Obsługuje większość
57 dzisiejszych rozszerzeń HTML-a. Dodatkowo jest w miarę stabilna. Ta
58 wersja jest skonsolidowana dynamicznie z Qt.
61 Summary: Opera 32-bit plugins support
62 Summary(pl.UTF-8): Obsługa 32-bitowych wtyczek Opery
63 Group: X11/Applications/Networking
64 Requires: %{name} = %{epoch}:%{version}-%{release}
65 Requires: browser-plugins >= 2.0
68 Opera 32-bit plugins support.
70 %description plugin32 -l pl.UTF-8
71 Obsługa 32-bitowych wtyczek Opery.
76 %setup -q -T -b 10 -n %{name}-%{version}-%{buildid}.gcc4-qt4.i386
78 %setup -q -T -b 10 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.i386
82 %setup -q -T -b 11 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.x86_64
85 %setup -q -T -b 12 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.ppc
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_sysconfdir}}
93 %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins -b <<'EOF'
94 # opera does not use for .xpt files
97 # use mplayerplug-in-opera instead
100 # opera uses libjava.so to run java
105 install -d $RPM_BUILD_ROOT%{_prefix}/lib/%{name}/plugins
106 %browser_plugins_add_browser %{name} -a %{alt_arch} -p %{_prefix}/lib/%{name}/plugins -b <<'EOF'
107 # opera does not use for .xpt files
110 # use mplayerplug-in-opera instead
113 # opera uses libjava.so to run java
119 DESTDIR=$RPM_BUILD_ROOT \
120 --prefix=%{_prefix} \
121 --exec_prefix=%{_libdir}/%{name}/bin \
122 --plugindir=%{_libdir}/%{name}/plugins \
123 --docdir=%{_operadocdir}
125 # install in kde etc.
126 install %{SOURCE0} $RPM_BUILD_ROOT%{_desktopdir}
128 install etc/* $RPM_BUILD_ROOT%{_sysconfdir}
129 install usr/share/pixmaps/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
132 rm -rf $RPM_BUILD_ROOT
135 %update_browser_plugins
138 if [ "$1" = 0 ]; then
139 %update_browser_plugins
143 %update_browser_plugins
146 if [ "$1" = 0 ]; then
147 %update_browser_plugins
151 %defattr(644,root,root,755)
153 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opera*rc*
156 %{_browserpluginsconfdir}/browsers.d/%{name}.%{_target_base_arch}
157 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.%{_target_base_arch}.blacklist
159 %attr(755,root,root) %{_bindir}/*
160 %dir %{_libdir}/opera
161 %dir %{_libdir}/opera/bin
162 %attr(755,root,root) %{_libdir}/opera/bin/*
164 %exclude %{_libdir}/opera/bin/*-ia32-*
167 %dir %{_datadir}/opera
168 %{_datadir}/opera/*.*
169 %{_datadir}/opera/ini
170 %{_datadir}/opera/java
171 %{_datadir}/opera/skin
172 %{_datadir}/opera/styles
173 %dir %{_datadir}/opera/locale
174 %{_datadir}/opera/locale/en
175 %{_datadir}/opera/locale/english.lng
176 %lang(be) %{_datadir}/opera/locale/be
177 %lang(bg) %{_datadir}/opera/locale/bg
178 %lang(cs) %{_datadir}/opera/locale/cs
179 %lang(da) %{_datadir}/opera/locale/da
180 %lang(de) %{_datadir}/opera/locale/de
181 %lang(el) %{_datadir}/opera/locale/el
182 %lang(en_GB) %{_datadir}/opera/locale/en-GB
183 %lang(es) %{_datadir}/opera/locale/es-ES
184 %lang(es_LA) %{_datadir}/opera/locale/es-LA
185 %lang(fi) %{_datadir}/opera/locale/fi
186 %lang(fr) %{_datadir}/opera/locale/fr
187 %lang(fr_CA) %{_datadir}/opera/locale/fr-CA
188 %lang(fy) %{_datadir}/opera/locale/fy
189 %lang(hi) %{_datadir}/opera/locale/hi
190 %lang(hr) %{_datadir}/opera/locale/hr
191 %lang(hu) %{_datadir}/opera/locale/hu
192 %lang(it) %{_datadir}/opera/locale/it
193 %lang(ja) %{_datadir}/opera/locale/ja
194 %lang(ka) %{_datadir}/opera/locale/ka
195 %lang(ko) %{_datadir}/opera/locale/ko
196 %lang(lt) %{_datadir}/opera/locale/lt
197 %lang(mk) %{_datadir}/opera/locale/mk
198 %lang(nb) %{_datadir}/opera/locale/nb
199 %lang(nl) %{_datadir}/opera/locale/nl
200 %lang(nn) %{_datadir}/opera/locale/nn
201 %lang(pl) %{_datadir}/opera/locale/pl
202 %lang(pt) %{_datadir}/opera/locale/pt
203 %lang(pt_BR) %{_datadir}/opera/locale/pt-BR
204 %lang(ru) %{_datadir}/opera/locale/ru
205 %lang(sv) %{_datadir}/opera/locale/sv
206 %lang(tr) %{_datadir}/opera/locale/tr
207 %lang(zh_CN) %{_datadir}/opera/locale/zh-cn
208 %lang(zh_TW) %{_datadir}/opera/locale/zh-tw
209 %{_desktopdir}/*.desktop
210 %{_mandir}/man1/opera.1*
211 %{_pixmapsdir}/opera.xpm
215 %defattr(644,root,root,755)
217 %{_browserpluginsconfdir}/browsers.d/%{name}.%{alt_arch}
218 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.%{alt_arch}.blacklist
219 %dir %{_prefix}/lib/%{name}
220 %dir %{_prefix}/lib/%{name}/plugins
221 %attr(755,root,root) %{_libdir}/%{name}/bin/*-ia32-*