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