2 # There're some problems with "shared" version
6 %define dirrel 20030821
8 Summary: World fastest web browser
9 Summary(pl): Najszybsza przegl±darka WWW na ¶wiecie
11 Version: %{ver}.%{rel}
13 License: Restricted, see file LICENSE
14 Group: X11/Applications/Networking
15 #Source0: ftp://ftp.opera.com/pub/opera/linux/711/final/en/i386/static/%{name}-%{ver}-%{rel}-%{type}-qt.i386.tar.bz2
16 Source0: http://snapshot.opera.com/unix/intel-linux/445-%{dirrel}-%{ver}-B4/opera-%{ver}-%{rel}-%{type}-qt.i386.tar.bz2
18 #Source1: ftp://ftp.opera.com/pub/opera/linux/711/final/en/ppc/static/%{name}-%{ver}-%{rel}-%{type}-qt.ppc.tar.bz2
19 Source1: http://snapshot.opera.com/unix/ppc-linux/445-%{rel}-%{ver}-B4/opera-%{ver}-%{rel}-%{type}-qt.i386.tar.bz2
22 Source1: http://snapshot.opera.com/unix/sparc-linux/445-%{rel}-%{ver}-B4/opera-%{ver}-%{rel}-%{type}-qt.i386.tar.bz2
24 # polish language file
25 Source2: %{name}-2887.lng
26 Source3: %{name}.desktop
28 URL: http://www.opera.com/
29 ExclusiveArch: %{ix86} ppc
30 Requires: freetype >= 2
31 Requires: openmotif >= 2
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define _plugindir %{_libdir}/opera/plugins
35 %define _operadocdir %{_docdir}/%{name}-%{ver}.%{rel}
36 %define configfile %{_datadir}/opera/config/opera6rc
39 Opera is world fastest web browser. It supports most of nowaday
40 extensions of HTML. And it is quite stable. Only disadvantage are
41 advertisements on the top of its window. Version static linked with qt.
44 Opera jest najszybsz± przegl±dark± WWW na ¶wiecie. Obs³uguje wiêkszo¶æ
45 dzisiejszych rozszerzeñ HTMLa. Dodatkowo jest w miarê stabilna. Jedyn±
46 niedogodno¶ci± s± reklamy ukazuj±ce siê w górze okna. Wersja statycznie
51 %setup -q -n %{name}-%{ver}-%{rel}-%{type}-qt.i386
54 %setup -q -T -b 1 -n %{name}-%{ver}-%{rel}-%{type}-qt.ppc
57 %setup -q -T -b 1 -n %{name}-%{ver}-%{rel}-%{type}-qt.sparc
61 rm -rf $RPM_BUILD_ROOT
63 cat install.sh | sed 's|/etc|$RPM_BUILD_ROOT%{_sysconfdir}|' > install2.sh
64 mv install2.sh install.sh
68 --prefix=$RPM_BUILD_ROOT%{_prefix} \
69 --wrapperdir=$RPM_BUILD_ROOT%{_bindir} \
70 --docdir=$RPM_BUILD_ROOT%{_operadocdir} \
71 --sharedir=$RPM_BUILD_ROOT%{_datadir}/opera \
72 --exec_prefix=$RPM_BUILD_ROOT%{_datadir}/opera/bin \
73 --plugindir=$RPM_BUILD_ROOT%{_plugindir}
76 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/opera/locale/
79 install -d $RPM_BUILD_ROOT%{_mandir}/man1
80 install man/opera.1 $RPM_BUILD_ROOT%{_mandir}/man1
83 sed s#$RPM_BUILD_ROOT## > $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
84 mv $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
87 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
88 install images/opera.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
90 install -d $RPM_BUILD_ROOT%{_applnkdir}/Network/WWW
91 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Network/WWW
93 # symlink który niweluje burkanie siê opery :>
94 #ln -sf %{_datadir}/opera/ $RPM_BUILD_ROOT/usr/share/
95 #ln -sf %{_libdir}/opera $RPM_BUILD_ROOT/usr/lib/
98 rm -rf $RPM_BUILD_ROOT
101 %defattr(644,root,root,755)
102 %doc LICENSE bugreport help
103 %attr(755,root,root) %{_bindir}/*
104 %dir %{_datadir}/opera
105 %dir %{_datadir}/opera/bin
106 %attr(755,root,root) %{_datadir}/opera/bin/*
107 %{_datadir}/opera/config
108 %{_datadir}/opera/help
109 %{_datadir}/opera/images
110 %{_datadir}/opera/java
111 %{_datadir}/opera/locale
112 %{_datadir}/opera/skin
113 %{_datadir}/opera/styles
114 %{_datadir}/opera/ini
115 %{_datadir}/opera/search.ini
116 %{_datadir}/opera/*.html
118 %attr(755,root,root) %{_datadir}/opera/chartables.bin
121 %attr(755,root,root) %{_datadir}/opera/chartables-be.bin
123 %attr(755,root,root) %{_datadir}/opera/opera6.adr
124 %dir %{_libdir}/opera
126 %attr(755,root,root) %{_plugindir}/*
128 %{_pixmapsdir}/opera.xpm
129 %{_applnkdir}/Network/WWW/*.desktop
131 %{_mandir}/man1/opera.1*