# - don't create useless bconds that for example limit SourceX: to current arch only
#
-%bcond_with qt4 #take the qt4 version
+%bcond_without qt4 #take the qt4 version
-%define ver 9.63
+%define ver 10.00
%define shver %(echo %{ver} | tr -d .)
-%define buildid 2474
+%define buildid 4585
Summary: World fastest web browser
+Summary(hu.UTF-8): A világ leggyorsabb webböngészője
Summary(pl.UTF-8): Najszybsza przeglądarka WWW na świecie
Name: opera
Version: %{ver}
-Release: 1
+Release: 5
Epoch: 2
License: Distributable
Group: X11/Applications/Networking
Source10: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/i386/shared/%{name}-%{version}.gcc4-shared-qt3.i386.tar.bz2
-# Source10-md5: 1f2c4fd358b07adcf4f14f348509b9fe
+# Source10-md5: abf0e90f6c0620b1b1f95b9860b30189
Source11: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/x86_64/%{name}-%{version}.gcc4-shared-qt3.x86_64.tar.bz2
-# Source11-md5: d02d20a36d1f6ed02265aa7e49c71aaf
+# Source11-md5: 6f74e9552ab5b45e4e0177ea4beea05e
Source12: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/ppc/shared/%{name}-%{version}.gcc4-shared-qt3.ppc.tar.bz2
-# Source12-md5: 2afaa270f10bf7541e334c6a92dd2a36
+# Source12-md5: 6b25420f7f7a571b0c305c1f9ac03579
Source13: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/i386/%{name}-%{version}.gcc4-qt4.i386.tar.bz2
-# Source13-md5: c7bd896e9f04536b4a9733e6d7ce6aea
+# Source13-md5: 0b484b74ee07e5ac93f153dd33e25437
+Source14: ftp://ftp.opera.com/pub/opera/linux/%{shver}/final/en/x86_64/%{name}-%{version}.gcc4-qt4.x86_64.tar.bz2
+# Source14-md5: af8230636786a5c76b267d813db52614
Source0: %{name}.desktop
Patch0: %{name}-wrapper.patch
-Patch1: %{name}-agent-ac.patch
-Patch2: %{name}-agent-th.patch
-Patch3: %{name}-agent-ti.patch
+Patch1: %{name}-agent-qt4.patch
+Patch2: %{name}-agent.patch
URL: http://www.opera.com/
BuildRequires: rpm >= 4.4.9-56
BuildRequires: rpmbuild(macros) >= 1.356
extensions of HTML. And it is quite stable. This version is linked
with shared version of Qt.
+%description -l hu.UTF-8
+Opera a világ leggyorsabb webböngészője. A manapság elterjedt
+HTML-kiterjesztések túlnyomó többségét támogatja. És elég stabili is.
+Ez a verzió a Qt megosztott verziójához linkelődik.
+
%description -l pl.UTF-8
Opera jest najszybszą przeglądarką WWW na świecie. Obsługuje większość
dzisiejszych rozszerzeń HTML-a. Dodatkowo jest w miarę stabilna. Ta
%package plugin32
Summary: Opera 32-bit plugins support
+Summary(hu.UTF-8): Opera 32-bites plugin támogatás
Summary(pl.UTF-8): Obsługa 32-bitowych wtyczek Opery
Group: X11/Applications/Networking
Requires: %{name} = %{epoch}:%{version}-%{release}
%description plugin32
Opera 32-bit plugins support.
+%description plugin32 -l hu.UTF-8
+Opera 32-bites plugin támogatás.
+
%description plugin32 -l pl.UTF-8
Obsługa 32-bitowych wtyczek Opery.
%endif
%endif
%ifarch %{x8664}
+%if %{with qt4}
+%setup -q -T -b 14 -n %{name}-%{version}-%{buildid}.gcc4-qt4.x86_64
+%define _noautoreq 'libpng12.so.0(.*)'
+%else
%setup -q -T -b 11 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.x86_64
%endif
+%endif
%ifarch ppc
%setup -q -T -b 12 -n %{name}-%{version}-%{buildid}.gcc4-shared-qt3.ppc
%endif
%patch0 -p1
-%if "%{pld_release}" == "ac"
+%if %{with qt4}
%patch1 -p0
-%endif
-%if "%{pld_release}" == "th"
+%else
%patch2 -p0
%endif
-%if "%{pld_release}" == "ti"
-%patch3 -p0
-%endif
%install
rm -rf $RPM_BUILD_ROOT
install etc/* $RPM_BUILD_ROOT%{_sysconfdir}
install usr/share/pixmaps/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
+%if "%{pld_release}" == "ti"
+sed -i -e 's#DISTRO#PLD/Titanium#g' $RPM_BUILD_ROOT/etc/operaprefs_default.ini
+%else
+%if "%{pld_release}" == "ac"
+sed -i -e 's#DISTRO#PLD/2.0 (Ac)#g' $RPM_BUILD_ROOT/etc/operaprefs_default.ini
+%else
+sed -i -e 's#DISTRO#PLD/3.0 (Th)#g' $RPM_BUILD_ROOT/etc/operaprefs_default.ini
+%endif
+%endif
+
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc LICENSE
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opera*rc*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/operaprefs*.ini
# browser plugins v2
%{_browserpluginsconfdir}/browsers.d/%{name}.%{_target_base_arch}
%dir %{_plugindir}
%dir %{_datadir}/opera
%{_datadir}/opera/*.*
-%{_datadir}/opera/ini
+%{_datadir}/opera/defaults
+%{_datadir}/opera/extra
%{_datadir}/opera/java
+%{_datadir}/opera/scripts
%{_datadir}/opera/skin
%{_datadir}/opera/styles
+%{_datadir}/opera/ui
%dir %{_datadir}/opera/locale
%{_datadir}/opera/locale/en
-%{_datadir}/opera/locale/english.lng
%lang(be) %{_datadir}/opera/locale/be
%lang(bg) %{_datadir}/opera/locale/bg
%lang(cs) %{_datadir}/opera/locale/cs
%lang(pl) %{_datadir}/opera/locale/pl
%lang(pt) %{_datadir}/opera/locale/pt
%lang(pt_BR) %{_datadir}/opera/locale/pt-BR
+%lang(ro) %{_datadir}/opera/locale/ro
%lang(ru) %{_datadir}/opera/locale/ru
+%lang(sk) %{_datadir}/opera/locale/sk
+%lang(sr) %{_datadir}/opera/locale/sr
%lang(sv) %{_datadir}/opera/locale/sv
%lang(ta) %{_datadir}/opera/locale/ta
%lang(te) %{_datadir}/opera/locale/te
%lang(tr) %{_datadir}/opera/locale/tr
%lang(uk) %{_datadir}/opera/locale/uk
%lang(zh_CN) %{_datadir}/opera/locale/zh-cn
+%lang(zh_HK) %{_datadir}/opera/locale/zh-hk
%lang(zh_TW) %{_datadir}/opera/locale/zh-tw
%{_desktopdir}/*.desktop
%{_mandir}/man1/opera.1*