]> git.pld-linux.org Git - packages/opera.git/blame - opera.spec
- up to 6325
[packages/opera.git] / opera.spec
CommitLineData
a79ddb02
AM
1# BRANCHES:
2# - HEAD - stable version
3# - DEVEL - development version
0de1d20d 4# - WEEKLY - weekly development version (sometimes it's on DEVEL)
0de1d20d 5%bcond_without distributable # distributable or not
e789f1d0 6
e302a877 7%define subver 6325
b400423e 8%define rel 1
40d43d2d 9Summary: World fastest web browser
0580138e 10Summary(pl.UTF-8): Najszybsza przeglądarka WWW na świecie
40d43d2d 11Name: opera
800c6c7d 12Version: 10.52
b400423e 13Release: 0.%{subver}.%{rel}
94132831 14Epoch: 2
ae712f51 15License: Distributable
40d43d2d 16Group: X11/Applications/Networking
b400423e 17Source0: http://snapshot.opera.com/unix/snapshot-%{subver}/%{name}-%{version}-%{subver}.i386.linux.tar.bz2
e302a877 18# Source0-md5: a1336047fefdf649fc072fb85119202e
0de1d20d 19%{!?with_distributable:NoSource: 0}
b400423e 20Source1: http://snapshot.opera.com/unix/snapshot-%{subver}/%{name}-%{version}-%{subver}.x86_64.linux.tar.bz2
e302a877 21# Source1-md5: e6c84e019359e0b34ba614b9e8e90aee
52e96c7d 22%{!?with_distributable:NoSource: 1}
35677f25 23Patch0: %{name}-wrapper.patch
b400423e 24Patch1: %{name}-desktop.patch
00895999 25Patch2: %{name}-pluginpath.patch
8cb331c2 26URL: http://www.opera.com/
f6dbdb8e 27BuildRequires: rpmbuild(macros) >= 1.356
6eebcb83 28BuildRequires: sed >= 4.0
00895999 29Requires(post,postun): desktop-file-utils
dc0906c4
ER
30Requires(post,postun): gtk+2
31Requires(post,postun): hicolor-icon-theme
b400423e 32Requires(post,postun): shared-mime-info
f6dbdb8e 33Requires: browser-plugins >= 2.0
2f4fa75a 34Requires: freetype >= 2
92d2fb78 35Suggests: gstreamer-theora
cf17d6f2 36Suggests: gstreamer-vorbis
3b8cc5d5 37Provides: wwwbrowser
37147bb6 38Obsoletes: opera-i18n
52e96c7d 39ExclusiveArch: %{ix86} %{x8664}
8cb331c2 40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1e3271ab 41
cf17d6f2
ER
42%define _enable_debug_packages 0
43
44%define _plugindir %{_libdir}/opera/plugins
b400423e 45%define _operadocdir %{_docdir}/%{name}-%{version}
8cb331c2 46
47%description
48Opera is world fastest web browser. It supports most of nowaday
52e96c7d 49extensions of HTML. And it is quite stable.
8cb331c2 50
14283174
JR
51%description -l pl.UTF-8
52Opera jest najszybszą przeglądarką WWW na świecie. Obsługuje większość
52e96c7d 53dzisiejszych rozszerzeń HTML-a. Dodatkowo jest w miarę stabilna.
37147bb6
AM
54
55%package plugin32
56Summary: Opera 32-bit plugins support
57Summary(pl.UTF-8): Obsługa 32-bitowych wtyczek Opery
58Group: X11/Applications/Networking
59Requires: %{name} = %{epoch}:%{version}-%{release}
60
61%description plugin32
62Opera 32-bit plugins support.
63
64%description plugin32 -l pl.UTF-8
65Obsługa 32-bitowych wtyczek Opery.
58d714bb 66
8cb331c2 67%prep
643785f9 68%ifarch %{ix86}
b400423e 69%setup -q -T -b0 -n %{name}-%{version}-%{subver}.i386.linux
b966c84f 70%endif
0de1d20d 71%ifarch %{x8664}
b400423e 72%setup -q -T -b1 -n %{name}-%{version}-%{subver}.x86_64.linux
af2f4f47 73
c8f7ea63 74%endif
b400423e
ER
75sed -i -e '
76 s,@@{PREFIX},%{_prefix},g
77 s,@@{SUFFIX},,
78 s,@@{_SUFFIX},,
00895999
ER
79' share/{applications/*.desktop,mime/packages/*.xml}
80
81sed -i -e 's,kfmclient exec,xdg-open,' share/opera/defaults/filehandler.ini
b400423e
ER
82
83%patch0 -p1
84%patch1 -p1
af2f4f47
ER
85
86# remove lib32/lib64 paths so patch2 can apply (i386 build contained lib64 as well, oh well)
87%{__sed} -i -e '/lib32\|lib64/d;$d' share/opera/defaults/pluginpath.ini
00895999 88%patch2 -p1
8cb331c2 89
b400423e 90mv lib/opera/plugins/README README.plugins
00895999 91mv share/opera/defaults/license.txt .
b400423e
ER
92mv share/doc/opera/* .
93
94# nobody wants scalable huge icons
95rm -rf share/icons/hicolor/scalable
96
97# opera packaging tools we don't need runtime
98mv share/opera/package .
0de1d20d 99
8cb331c2 100%install
101rm -rf $RPM_BUILD_ROOT
52e96c7d 102install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir},%{_pixmapsdir},%{_desktopdir},%{_sysconfdir}}
8cb331c2 103
f6dbdb8e
ER
104%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins -b <<'EOF'
105# opera does not use for .xpt files
106*.xpt
6ab3a1e1
ER
107
108# use mplayerplug-in-opera instead
109mplayerplug-in*
f6dbdb8e
ER
110EOF
111
b400423e
ER
112install -p opera* $RPM_BUILD_ROOT%{_bindir}
113cp -a lib/opera $RPM_BUILD_ROOT%{_libdir}
114cp -a share/* $RPM_BUILD_ROOT%{_datadir}
115#cp -a etc/*.ini $RPM_BUILD_ROOT%{_sysconfdir}
a8029af7 116
b400423e 117sed -i -e 's#/usr/lib/opera#%{_libdir}/opera#g' $RPM_BUILD_ROOT%{_bindir}/opera
cf9bda24 118
8cb331c2 119%clean
120rm -rf $RPM_BUILD_ROOT
121
f6dbdb8e 122%post
b400423e 123%update_mime_database
dc0906c4 124%update_icon_cache hicolor
00895999 125%update_desktop_database_post
f6dbdb8e
ER
126%update_browser_plugins
127
128%postun
b400423e 129%update_mime_database
dc0906c4 130%update_icon_cache hicolor
00895999 131%update_desktop_database_postun
f6dbdb8e
ER
132if [ "$1" = 0 ]; then
133 %update_browser_plugins
134fi
135
8cb331c2 136%files
137%defattr(644,root,root,755)
c2ef0548 138%doc LICENSE
b400423e 139#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opera*ini
f6dbdb8e
ER
140
141# browser plugins v2
0de1d20d 142%{_browserpluginsconfdir}/browsers.d/%{name}.*
143%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
f6dbdb8e 144
b400423e
ER
145%attr(755,root,root) %{_bindir}/opera
146%attr(755,root,root) %{_bindir}/opera-widget-manager
1e3271ab 147%dir %{_libdir}/opera
0f1c894e
AM
148%ifarch %{x8664}
149%exclude %{_libdir}/opera/*-ia32-*
150%endif
52e96c7d
AM
151%attr(755,root,root) %{_libdir}/opera/*.so
152%attr(755,root,root) %{_libdir}/opera/opera*
b400423e 153#%attr(755,root,root) %{_libdir}/opera/works
1e3271ab 154%dir %{_plugindir}
a5b49fac
KK
155%dir %{_datadir}/opera
156%{_datadir}/opera/*.*
0de1d20d 157%{_datadir}/opera/defaults
158%{_datadir}/opera/extra
a5b49fac 159%{_datadir}/opera/skin
10b9f892 160#%{_datadir}/opera/scripts
a5b49fac 161%{_datadir}/opera/styles
0de1d20d 162%{_datadir}/opera/ui
e702c05e 163%{_datadir}/opera/unite
f8b4ca83 164%dir %{_datadir}/opera/locale
165%{_datadir}/opera/locale/en
10b9f892
AM
166%lang(be) %{_datadir}/opera/locale/be
167%lang(bg) %{_datadir}/opera/locale/bg
168%lang(cs) %{_datadir}/opera/locale/cs
169%lang(da) %{_datadir}/opera/locale/da
170%lang(de) %{_datadir}/opera/locale/de
171%lang(el) %{_datadir}/opera/locale/el
172%lang(en_GB) %{_datadir}/opera/locale/en-GB
173%lang(es_ES) %{_datadir}/opera/locale/es-ES
174%lang(es_LA) %{_datadir}/opera/locale/es-LA
175%lang(et) %{_datadir}/opera/locale/et
176%lang(fi) %{_datadir}/opera/locale/fi
177%lang(fr) %{_datadir}/opera/locale/fr
178%lang(fr_CA) %{_datadir}/opera/locale/fr-CA
179%lang(fy) %{_datadir}/opera/locale/fy
180%lang(hi) %{_datadir}/opera/locale/hi
181%lang(hr) %{_datadir}/opera/locale/hr
182%lang(hu) %{_datadir}/opera/locale/hu
183%lang(id) %{_datadir}/opera/locale/id
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(ro) %{_datadir}/opera/locale/ro
197%lang(ru) %{_datadir}/opera/locale/ru
198%lang(sk) %{_datadir}/opera/locale/sk
199%lang(sr) %{_datadir}/opera/locale/sr
200%lang(sv) %{_datadir}/opera/locale/sv
201%lang(ta) %{_datadir}/opera/locale/ta
202%lang(te) %{_datadir}/opera/locale/te
203%lang(tr) %{_datadir}/opera/locale/tr
204%lang(uk) %{_datadir}/opera/locale/uk
b400423e 205%lang(vi) %{_datadir}/opera/locale/vi
37147bb6 206%lang(zh_CN) %{_datadir}/opera/locale/zh-cn
0de1d20d 207%lang(zh_HK) %{_datadir}/opera/locale/zh-hk
37147bb6 208%lang(zh_TW) %{_datadir}/opera/locale/zh-tw
b400423e 209%{_datadir}/mime/packages/opera-widget.xml
7b1a5f81 210%{_desktopdir}/*.desktop
1e3271ab 211%{_mandir}/man1/opera.1*
b400423e
ER
212%{_mandir}/man1/opera-widget-manager.1*
213#%{_pixmapsdir}/opera.xpm
214%{_iconsdir}/hicolor/*/*/*.png
671735f8 215
0f1c894e
AM
216%ifarch %{x8664}
217%files plugin32
218%defattr(644,root,root,755)
219%attr(755,root,root) %{_libdir}/opera/*-ia32-*
220%endif
This page took 0.187275 seconds and 4 git commands to generate.