]>
Commit | Line | Data |
---|---|---|
a79ddb02 AM |
1 | # BRANCHES: |
2 | # - HEAD - stable version | |
3 | # - DEVEL - development version | |
083d2812 AM |
4 | # - WEEKLY - weekly development version |
5 | # | |
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 | |
9 | # | |
edbbe593 | 10 | |
e789f1d0 | 11 | %bcond_with qt4 #take the qt4 version |
12 | ||
bd7f9e14 | 13 | %define ver 9.61 |
083d2812 | 14 | %define shver %(echo %{ver} | tr -d .) |
bd7f9e14 | 15 | %define buildid 2456 |
edbbe593 | 16 | |
40d43d2d | 17 | Summary: World fastest web browser |
0580138e | 18 | Summary(pl.UTF-8): Najszybsza przeglądarka WWW na świecie |
40d43d2d | 19 | Name: opera |
37147bb6 | 20 | Version: %{ver} |
c8f7ea63 | 21 | Release: 2 |
94132831 | 22 | Epoch: 2 |
ae712f51 | 23 | License: Distributable |
40d43d2d | 24 | Group: X11/Applications/Networking |
ff88e30e | 25 | Source10: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/i386/shared/%{name}-%{version}.gcc4-shared-qt3.i386.tar.bz2 |
bd7f9e14 | 26 | # Source10-md5: fab34279f40b305a90e6c248f8cf83da |
ff88e30e | 27 | Source11: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/x86_64/%{name}-%{version}.gcc4-shared-qt3.x86_64.tar.bz2 |
bd7f9e14 | 28 | # Source11-md5: ab7d0fa42a1579d8dcf0f865f43e5504 |
ff88e30e | 29 | Source12: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/ppc/shared/%{name}-%{version}.gcc4-shared-qt3.ppc.tar.bz2 |
bd7f9e14 | 30 | # Source12-md5: d1cad1fc8d1405e7b381a46830f6682a |
ff88e30e | 31 | Source13: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/i386/%{name}-%{version}.gcc4-qt4.i386.tar.bz2 |
bd7f9e14 | 32 | # Source13-md5: ef895e80f26915fdedc0c5eaee486009 |
083d2812 | 33 | Source0: %{name}.desktop |
35677f25 | 34 | Patch0: %{name}-wrapper.patch |
c8f7ea63 | 35 | Patch1: %{name}-agent.patch |
8cb331c2 | 36 | URL: http://www.opera.com/ |
f6dbdb8e | 37 | BuildRequires: rpmbuild(macros) >= 1.356 |
6eebcb83 | 38 | BuildRequires: sed >= 4.0 |
f6dbdb8e | 39 | Requires: browser-plugins >= 2.0 |
2f4fa75a | 40 | Requires: freetype >= 2 |
3b8cc5d5 | 41 | Provides: wwwbrowser |
37147bb6 | 42 | Obsoletes: opera-i18n |
083d2812 | 43 | ExclusiveArch: %{ix86} %{x8664} ppc |
8cb331c2 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1e3271ab | 45 | |
fa79b8f2 | 46 | %define _plugindir %{_libdir}/opera/plugins |
7e80713c | 47 | %define _operadocdir %{_docdir}/%{name}-%{ver} |
083d2812 AM |
48 | # alternative arch for plugin32 |
49 | %define alt_arch i386 | |
8cb331c2 | 50 | |
51 | %description | |
52 | Opera is world fastest web browser. It supports most of nowaday | |
37147bb6 | 53 | extensions of HTML. And it is quite stable. This version is |
083d2812 | 54 | linked with shared version of Qt. |
8cb331c2 | 55 | |
14283174 JR |
56 | %description -l pl.UTF-8 |
57 | Opera jest najszybszą przeglądarką WWW na świecie. Obsługuje większość | |
58 | dzisiejszych rozszerzeń HTML-a. Dodatkowo jest w miarę stabilna. Ta | |
083d2812 | 59 | wersja jest skonsolidowana dynamicznie z Qt. |
37147bb6 AM |
60 | |
61 | %package plugin32 | |
62 | Summary: Opera 32-bit plugins support | |
63 | Summary(pl.UTF-8): Obsługa 32-bitowych wtyczek Opery | |
64 | Group: X11/Applications/Networking | |
65 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
083d2812 | 66 | Requires: browser-plugins >= 2.0 |
37147bb6 AM |
67 | |
68 | %description plugin32 | |
69 | Opera 32-bit plugins support. | |
70 | ||
71 | %description plugin32 -l pl.UTF-8 | |
72 | Obsługa 32-bitowych wtyczek Opery. | |
58d714bb | 73 | |
8cb331c2 | 74 | %prep |
643785f9 | 75 | %ifarch %{ix86} |
e789f1d0 | 76 | %if %{with qt4} |
0664dce8 AM |
77 | %setup -q -T -b 13 -n %{name}-%{version}-%{buildid}.gcc4-qt4.i386 |
78 | %define _noautoreq 'libpng12.so.0(.*)' | |
e789f1d0 | 79 | %else |
083d2812 | 80 | %setup -q -T -b 10 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.i386 |
2d8d939d | 81 | %endif |
e789f1d0 | 82 | %endif |
083d2812 AM |
83 | %ifarch %{x8664} |
84 | %setup -q -T -b 11 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.x86_64 | |
643785f9 | 85 | %endif |
195ff7d0 | 86 | %ifarch ppc |
083d2812 | 87 | %setup -q -T -b 12 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.ppc |
b966c84f | 88 | %endif |
35677f25 | 89 | %patch0 -p1 |
c8f7ea63 | 90 | %if "%{pld_release}" == "ti" |
91 | %patch1 -p0 | |
92 | %endif | |
8cb331c2 | 93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
54d2851e | 96 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_sysconfdir}} |
8cb331c2 | 97 | |
f6dbdb8e ER |
98 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins -b <<'EOF' |
99 | # opera does not use for .xpt files | |
100 | *.xpt | |
6ab3a1e1 ER |
101 | |
102 | # use mplayerplug-in-opera instead | |
103 | mplayerplug-in* | |
929e48ab ER |
104 | |
105 | # opera uses libjava.so to run java | |
106 | libjavaplugin_oji.so | |
f6dbdb8e ER |
107 | EOF |
108 | ||
083d2812 AM |
109 | %ifarch %{x8664} |
110 | install -d $RPM_BUILD_ROOT%{_prefix}/lib/%{name}/plugins | |
111 | %browser_plugins_add_browser %{name} -a %{alt_arch} -p %{_prefix}/lib/%{name}/plugins -b <<'EOF' | |
112 | # opera does not use for .xpt files | |
113 | *.xpt | |
114 | ||
115 | # use mplayerplug-in-opera instead | |
116 | mplayerplug-in* | |
117 | ||
118 | # opera uses libjava.so to run java | |
119 | libjavaplugin_oji.so | |
120 | EOF | |
121 | %endif | |
122 | ||
51e47e74 | 123 | sh install.sh \ |
7e80713c KK |
124 | DESTDIR=$RPM_BUILD_ROOT \ |
125 | --prefix=%{_prefix} \ | |
2d8d939d ER |
126 | --exec_prefix=%{_libdir}/%{name}/bin \ |
127 | --plugindir=%{_libdir}/%{name}/plugins \ | |
7e80713c | 128 | --docdir=%{_operadocdir} |
6239047a | 129 | |
51e47e74 | 130 | # install in kde etc. |
083d2812 | 131 | install %{SOURCE0} $RPM_BUILD_ROOT%{_desktopdir} |
a8029af7 | 132 | |
37147bb6 AM |
133 | install etc/* $RPM_BUILD_ROOT%{_sysconfdir} |
134 | install usr/share/pixmaps/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir} | |
72b0ae2b | 135 | |
8cb331c2 | 136 | %clean |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
f6dbdb8e ER |
139 | %post |
140 | %update_browser_plugins | |
141 | ||
142 | %postun | |
143 | if [ "$1" = 0 ]; then | |
144 | %update_browser_plugins | |
145 | fi | |
146 | ||
083d2812 AM |
147 | %post plugin32 |
148 | %update_browser_plugins | |
149 | ||
150 | %postun plugin32 | |
151 | if [ "$1" = 0 ]; then | |
152 | %update_browser_plugins | |
153 | fi | |
154 | ||
8cb331c2 | 155 | %files |
156 | %defattr(644,root,root,755) | |
c2ef0548 | 157 | %doc LICENSE |
54d2851e | 158 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opera*rc* |
f6dbdb8e ER |
159 | |
160 | # browser plugins v2 | |
083d2812 AM |
161 | %{_browserpluginsconfdir}/browsers.d/%{name}.%{_target_base_arch} |
162 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.%{_target_base_arch}.blacklist | |
f6dbdb8e | 163 | |
1cfa2d1b | 164 | %attr(755,root,root) %{_bindir}/* |
1e3271ab | 165 | %dir %{_libdir}/opera |
98c525bc AM |
166 | %dir %{_libdir}/opera/bin |
167 | %attr(755,root,root) %{_libdir}/opera/bin/* | |
37147bb6 AM |
168 | %ifarch %{x8664} |
169 | %exclude %{_libdir}/opera/bin/*-ia32-* | |
170 | %endif | |
1e3271ab | 171 | %dir %{_plugindir} |
a5b49fac KK |
172 | %dir %{_datadir}/opera |
173 | %{_datadir}/opera/*.* | |
a5b49fac KK |
174 | %{_datadir}/opera/ini |
175 | %{_datadir}/opera/java | |
176 | %{_datadir}/opera/skin | |
177 | %{_datadir}/opera/styles | |
f8b4ca83 | 178 | %dir %{_datadir}/opera/locale |
179 | %{_datadir}/opera/locale/en | |
a6bb5241 | 180 | %{_datadir}/opera/locale/english.lng |
37147bb6 AM |
181 | %lang(be) %{_datadir}/opera/locale/be |
182 | %lang(bg) %{_datadir}/opera/locale/bg | |
183 | %lang(cs) %{_datadir}/opera/locale/cs | |
184 | %lang(da) %{_datadir}/opera/locale/da | |
185 | %lang(de) %{_datadir}/opera/locale/de | |
186 | %lang(el) %{_datadir}/opera/locale/el | |
187 | %lang(en_GB) %{_datadir}/opera/locale/en-GB | |
083d2812 | 188 | %lang(es) %{_datadir}/opera/locale/es-ES |
37147bb6 | 189 | %lang(es_LA) %{_datadir}/opera/locale/es-LA |
bd7f9e14 | 190 | %lang(et) %{_datadir}/opera/locale/et |
37147bb6 AM |
191 | %lang(fi) %{_datadir}/opera/locale/fi |
192 | %lang(fr) %{_datadir}/opera/locale/fr | |
193 | %lang(fr_CA) %{_datadir}/opera/locale/fr-CA | |
194 | %lang(fy) %{_datadir}/opera/locale/fy | |
195 | %lang(hi) %{_datadir}/opera/locale/hi | |
196 | %lang(hr) %{_datadir}/opera/locale/hr | |
197 | %lang(hu) %{_datadir}/opera/locale/hu | |
ff88e30e | 198 | %lang(id) %{_datadir}/opera/locale/id |
37147bb6 AM |
199 | %lang(it) %{_datadir}/opera/locale/it |
200 | %lang(ja) %{_datadir}/opera/locale/ja | |
201 | %lang(ka) %{_datadir}/opera/locale/ka | |
202 | %lang(ko) %{_datadir}/opera/locale/ko | |
203 | %lang(lt) %{_datadir}/opera/locale/lt | |
204 | %lang(mk) %{_datadir}/opera/locale/mk | |
205 | %lang(nb) %{_datadir}/opera/locale/nb | |
206 | %lang(nl) %{_datadir}/opera/locale/nl | |
207 | %lang(nn) %{_datadir}/opera/locale/nn | |
208 | %lang(pl) %{_datadir}/opera/locale/pl | |
209 | %lang(pt) %{_datadir}/opera/locale/pt | |
210 | %lang(pt_BR) %{_datadir}/opera/locale/pt-BR | |
211 | %lang(ru) %{_datadir}/opera/locale/ru | |
212 | %lang(sv) %{_datadir}/opera/locale/sv | |
bd7f9e14 AM |
213 | %lang(ta) %{_datadir}/opera/locale/ta |
214 | %lang(te) %{_datadir}/opera/locale/te | |
37147bb6 | 215 | %lang(tr) %{_datadir}/opera/locale/tr |
ff88e30e | 216 | %lang(uk) %{_datadir}/opera/locale/uk |
37147bb6 AM |
217 | %lang(zh_CN) %{_datadir}/opera/locale/zh-cn |
218 | %lang(zh_TW) %{_datadir}/opera/locale/zh-tw | |
7b1a5f81 | 219 | %{_desktopdir}/*.desktop |
1e3271ab | 220 | %{_mandir}/man1/opera.1* |
7e80713c | 221 | %{_pixmapsdir}/opera.xpm |
671735f8 AM |
222 | |
223 | %ifarch %{x8664} | |
224 | %files plugin32 | |
225 | %defattr(644,root,root,755) | |
083d2812 AM |
226 | # browser plugins v2 |
227 | %{_browserpluginsconfdir}/browsers.d/%{name}.%{alt_arch} | |
228 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.%{alt_arch}.blacklist | |
229 | %dir %{_prefix}/lib/%{name} | |
230 | %dir %{_prefix}/lib/%{name}/plugins | |
231 | %attr(755,root,root) %{_libdir}/%{name}/bin/*-ia32-* | |
671735f8 | 232 | %endif |