]> git.pld-linux.org Git - packages/opera.git/blame - opera.spec
- up to 10.61 (fixes CVE-2010-2576)
[packages/opera.git] / opera.spec
CommitLineData
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
52affd20 11%define ver 10.61
083d2812 12%define shver %(echo %{ver} | tr -d .)
52affd20 13%define buildid 6430
5422068c 14
40d43d2d 15Summary: World fastest web browser
048a8afa 16Summary(hu.UTF-8): A világ leggyorsabb webböngészője
0580138e 17Summary(pl.UTF-8): Najszybsza przeglądarka WWW na świecie
40d43d2d 18Name: opera
37147bb6 19Version: %{ver}
32972d9a 20Release: 3
94132831 21Epoch: 2
ae712f51 22License: Distributable
40d43d2d 23Group: X11/Applications/Networking
07d1040c 24Source10: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{name}-%{version}-%{buildid}.i386.linux.tar.bz2
52affd20 25# Source10-md5: e91b9bd1ddbb3c85d7bdd7991b56add8
07d1040c 26Source11: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{name}-%{version}-%{buildid}.x86_64.linux.tar.bz2
52affd20 27# Source11-md5: 82e1906aed9f6770ec2ee8f65576c841
07d1040c 28Source12: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{name}-%{version}-%{buildid}.ppc.linux.tar.bz2
52affd20 29# Source12-md5: b975faa6ebfeccecf53069be6e99284b
083d2812 30Source0: %{name}.desktop
35677f25 31Patch0: %{name}-wrapper.patch
25718300
AM
32Patch1: %{name}-desktop.patch
33Patch2: %{name}-pluginpath.patch
8cb331c2 34URL: http://www.opera.com/
55fc796b 35BuildRequires: rpm >= 4.4.9-56
f6dbdb8e 36BuildRequires: rpmbuild(macros) >= 1.356
6eebcb83 37BuildRequires: sed >= 4.0
f6dbdb8e 38Requires: browser-plugins >= 2.0
c33af227 39Requires: desktop-file-utils
2f4fa75a 40Requires: freetype >= 2
3b8cc5d5 41Provides: wwwbrowser
37147bb6 42Obsoletes: opera-i18n
083d2812 43ExclusiveArch: %{ix86} %{x8664} ppc
8cb331c2 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1e3271ab 45
0539d577
AM
46%define _enable_debug_packages 0
47
fa79b8f2 48%define _plugindir %{_libdir}/opera/plugins
7e80713c 49%define _operadocdir %{_docdir}/%{name}-%{ver}
083d2812
AM
50# alternative arch for plugin32
51%define alt_arch i386
8cb331c2 52
53%description
54Opera is world fastest web browser. It supports most of nowaday
55fc796b
ER
55extensions of HTML. And it is quite stable. This version is linked
56with shared version of Qt.
8cb331c2 57
048a8afa
ZU
58%description -l hu.UTF-8
59Opera a világ leggyorsabb webböngészője. A manapság elterjedt
60HTML-kiterjesztések túlnyomó többségét támogatja. És elég stabili is.
61Ez a verzió a Qt megosztott verziójához linkelődik.
62
14283174
JR
63%description -l pl.UTF-8
64Opera jest najszybszą przeglądarką WWW na świecie. Obsługuje większość
65dzisiejszych rozszerzeń HTML-a. Dodatkowo jest w miarę stabilna. Ta
083d2812 66wersja jest skonsolidowana dynamicznie z Qt.
37147bb6
AM
67
68%package plugin32
69Summary: Opera 32-bit plugins support
048a8afa 70Summary(hu.UTF-8): Opera 32-bites plugin támogatás
37147bb6
AM
71Summary(pl.UTF-8): Obsługa 32-bitowych wtyczek Opery
72Group: X11/Applications/Networking
73Requires: %{name} = %{epoch}:%{version}-%{release}
083d2812 74Requires: browser-plugins >= 2.0
37147bb6
AM
75
76%description plugin32
77Opera 32-bit plugins support.
78
048a8afa
ZU
79%description plugin32 -l hu.UTF-8
80Opera 32-bites plugin támogatás.
81
37147bb6
AM
82%description plugin32 -l pl.UTF-8
83Obsługa 32-bitowych wtyczek Opery.
58d714bb 84
8cb331c2 85%prep
643785f9 86%ifarch %{ix86}
07d1040c 87%setup -q -T -b 10 -n %{name}-%{version}-%{buildid}.i386.linux
e789f1d0 88%endif
07d1040c 89
083d2812 90%ifarch %{x8664}
07d1040c 91%setup -q -T -b 11 -n %{name}-%{version}-%{buildid}.x86_64.linux
3009d733 92%endif
07d1040c 93
195ff7d0 94%ifarch ppc
07d1040c 95%setup -q -T -b 12 -n %{name}-%{version}-%{buildid}.ppc.linux
b966c84f 96%endif
07d1040c 97
25718300
AM
98sed -i -e '
99 s,@@{PREFIX},%{_prefix},g
100 s,@@{SUFFIX},,
101 s,@@{_SUFFIX},,
102' share/{applications/*.desktop,mime/packages/*.xml}
103
104sed -i -e 's,kfmclient exec,xdg-open,' share/opera/defaults/filehandler.ini
105
35677f25 106%patch0 -p1
25718300
AM
107%patch1 -p1
108
109# remove lib32/lib64 paths so patch2 can apply (i386 build contained lib64 as well, oh well)
110%{__sed} -i -e '/lib32\|lib64/d;$d' share/opera/defaults/pluginpath.ini
111%patch2 -p1
112
113mv lib/opera/plugins/README README.plugins
114mv share/opera/defaults/license.txt .
115mv share/doc/opera/* .
116
117# nobody wants scalable huge icons
118rm -rf share/icons/hicolor/scalable
119
120# opera packaging tools we don't need runtime
121mv share/opera/package .
8cb331c2 122
123%install
124rm -rf $RPM_BUILD_ROOT
07d1040c 125install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir},%{_pixmapsdir},%{_desktopdir},%{_sysconfdir}}
8cb331c2 126
f6dbdb8e
ER
127%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins -b <<'EOF'
128# opera does not use for .xpt files
129*.xpt
6ab3a1e1
ER
130
131# use mplayerplug-in-opera instead
132mplayerplug-in*
f6dbdb8e
ER
133EOF
134
07d1040c
AM
135install -p opera* $RPM_BUILD_ROOT%{_bindir}
136cp -a lib/opera $RPM_BUILD_ROOT%{_libdir}
137cp -a share/* $RPM_BUILD_ROOT%{_datadir}
25718300 138#cp -a etc/*.ini $RPM_BUILD_ROOT%{_sysconfdir}
6239047a 139
07d1040c 140sed -i -e 's#/usr/lib/opera#%{_libdir}/opera#g' $RPM_BUILD_ROOT%{_bindir}/opera
72b0ae2b 141
0539d577
AM
142cat << 'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/operaprefs_default.ini
143[ISP]
144Id="DISTRO"
145EOF
146
201511be
AM
147%if "%{pld_release}" == "ti"
148sed -i -e 's#DISTRO#PLD/Titanium#g' $RPM_BUILD_ROOT/etc/operaprefs_default.ini
149%else
150%if "%{pld_release}" == "ac"
151sed -i -e 's#DISTRO#PLD/2.0 (Ac)#g' $RPM_BUILD_ROOT/etc/operaprefs_default.ini
152%else
153sed -i -e 's#DISTRO#PLD/3.0 (Th)#g' $RPM_BUILD_ROOT/etc/operaprefs_default.ini
154%endif
155%endif
201511be 156
8cb331c2 157%clean
158rm -rf $RPM_BUILD_ROOT
159
f6dbdb8e 160%post
25718300
AM
161%update_mime_database
162%update_icon_cache hicolor
163%update_desktop_database_post
f6dbdb8e
ER
164%update_browser_plugins
165
166%postun
25718300
AM
167%update_mime_database
168%update_icon_cache hicolor
169%update_desktop_database_postun
f6dbdb8e
ER
170if [ "$1" = 0 ]; then
171 %update_browser_plugins
172fi
173
083d2812
AM
174%post plugin32
175%update_browser_plugins
176
177%postun plugin32
178if [ "$1" = 0 ]; then
179 %update_browser_plugins
180fi
181
8cb331c2 182%files
183%defattr(644,root,root,755)
c2ef0548 184%doc LICENSE
07d1040c 185#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opera*ini
f6dbdb8e
ER
186
187# browser plugins v2
07d1040c
AM
188%{_browserpluginsconfdir}/browsers.d/%{name}.*
189%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
0539d577 190%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/operaprefs*.ini
07d1040c
AM
191%attr(755,root,root) %{_bindir}/opera
192%attr(755,root,root) %{_bindir}/opera-widget-manager
1e3271ab 193%dir %{_libdir}/opera
37147bb6 194%ifarch %{x8664}
07d1040c 195%exclude %{_libdir}/opera/*-ia32-*
37147bb6 196%endif
07d1040c
AM
197%attr(755,root,root) %{_libdir}/opera/*.so
198%attr(755,root,root) %{_libdir}/opera/opera*
1e3271ab 199%dir %{_plugindir}
07d1040c
AM
200%dir %{_libdir}/opera/gstreamer
201%dir %{_libdir}/opera/gstreamer/plugins
202%attr(755,root,root) %{_libdir}/opera/gstreamer/plugins/libgstoperamatroska.so
203%attr(755,root,root) %{_libdir}/opera/gstreamer/plugins/libgstoperavp8.so
a5b49fac
KK
204%dir %{_datadir}/opera
205%{_datadir}/opera/*.*
628633e1
AM
206%{_datadir}/opera/defaults
207%{_datadir}/opera/extra
a5b49fac
KK
208%{_datadir}/opera/skin
209%{_datadir}/opera/styles
628633e1 210%{_datadir}/opera/ui
07d1040c 211%{_datadir}/opera/unite
f8b4ca83 212%dir %{_datadir}/opera/locale
213%{_datadir}/opera/locale/en
37147bb6
AM
214%lang(be) %{_datadir}/opera/locale/be
215%lang(bg) %{_datadir}/opera/locale/bg
216%lang(cs) %{_datadir}/opera/locale/cs
217%lang(da) %{_datadir}/opera/locale/da
218%lang(de) %{_datadir}/opera/locale/de
219%lang(el) %{_datadir}/opera/locale/el
220%lang(en_GB) %{_datadir}/opera/locale/en-GB
07d1040c 221%lang(es_ES) %{_datadir}/opera/locale/es-ES
37147bb6 222%lang(es_LA) %{_datadir}/opera/locale/es-LA
bd7f9e14 223%lang(et) %{_datadir}/opera/locale/et
37147bb6
AM
224%lang(fi) %{_datadir}/opera/locale/fi
225%lang(fr) %{_datadir}/opera/locale/fr
226%lang(fr_CA) %{_datadir}/opera/locale/fr-CA
227%lang(fy) %{_datadir}/opera/locale/fy
228%lang(hi) %{_datadir}/opera/locale/hi
229%lang(hr) %{_datadir}/opera/locale/hr
230%lang(hu) %{_datadir}/opera/locale/hu
ff88e30e 231%lang(id) %{_datadir}/opera/locale/id
37147bb6
AM
232%lang(it) %{_datadir}/opera/locale/it
233%lang(ja) %{_datadir}/opera/locale/ja
234%lang(ka) %{_datadir}/opera/locale/ka
235%lang(ko) %{_datadir}/opera/locale/ko
236%lang(lt) %{_datadir}/opera/locale/lt
237%lang(mk) %{_datadir}/opera/locale/mk
238%lang(nb) %{_datadir}/opera/locale/nb
239%lang(nl) %{_datadir}/opera/locale/nl
240%lang(nn) %{_datadir}/opera/locale/nn
241%lang(pl) %{_datadir}/opera/locale/pl
242%lang(pt) %{_datadir}/opera/locale/pt
243%lang(pt_BR) %{_datadir}/opera/locale/pt-BR
628633e1 244%lang(ro) %{_datadir}/opera/locale/ro
37147bb6 245%lang(ru) %{_datadir}/opera/locale/ru
628633e1
AM
246%lang(sk) %{_datadir}/opera/locale/sk
247%lang(sr) %{_datadir}/opera/locale/sr
37147bb6 248%lang(sv) %{_datadir}/opera/locale/sv
bd7f9e14
AM
249%lang(ta) %{_datadir}/opera/locale/ta
250%lang(te) %{_datadir}/opera/locale/te
37147bb6 251%lang(tr) %{_datadir}/opera/locale/tr
ff88e30e 252%lang(uk) %{_datadir}/opera/locale/uk
66f1ccb5 253%lang(vi) %{_datadir}/opera/locale/vi
37147bb6 254%lang(zh_CN) %{_datadir}/opera/locale/zh-cn
628633e1 255%lang(zh_HK) %{_datadir}/opera/locale/zh-hk
37147bb6 256%lang(zh_TW) %{_datadir}/opera/locale/zh-tw
07d1040c
AM
257%{_datadir}/mime/packages/opera-widget.xml
258%{_datadir}/mime/packages/opera-unite-application.xml
7b1a5f81 259%{_desktopdir}/*.desktop
1e3271ab 260%{_mandir}/man1/opera.1*
07d1040c
AM
261%{_mandir}/man1/opera-widget-manager.1*
262%{_iconsdir}/hicolor/*/*/*.png
671735f8
AM
263
264%ifarch %{x8664}
265%files plugin32
266%defattr(644,root,root,755)
07d1040c 267%attr(755,root,root) %{_libdir}/opera/*-ia32-*
671735f8 268%endif
This page took 0.146593 seconds and 4 git commands to generate.