2 # There're some problems with "shared" version
7 %define shver %(echo %{ver} | tr -d .)
8 %define dirrel 20040706
9 # is this snap or beta/final release?
11 # type of release, usually final or beta or Preview-4 for snaps
13 %define x86_shared_rel %{dirrel}.5
14 %define x86_static_rel %{dirrel}.1
15 %define sparc_shared_rel %{dirrel}.2
16 %define sparc_static_rel %{dirrel}.1
17 %define ppc_shared_rel %{dirrel}.2
18 %define ppc_static_rel %{dirrel}.1
22 %define rel %{x86_shared_rel}
25 %define rel %{sparc_shared_rel}
28 %define rel %{ppc_shared_rel}
33 %define rel %{x86_static_rel}
36 %define rel %{sparc_static_rel}
39 %define rel %{ppc_static_rel}
43 Summary: World fastest web browser
44 Summary(pl): Najszybsza przegl±darka WWW na ¶wiecie
46 Version: %{ver}.%{rel}
48 License: Restricted, see file LICENSE
49 Group: X11/Applications/Networking
53 Source0: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/i386/static/%{name}-%{ver}-%{x86_static_rel}-static-qt.i386-en.tar.bz2
55 Source0: http://snapshot.opera.com/unix/%{ver}-%{reltype}/intel-linux/en/%{name}-%{ver}-%{x86_static_rel}-static-qt.i386-en.tar.bz2
61 Source1: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/sparc/static/%{name}-%{ver}-%{sparc_static_rel}-static-qt.sparc-en.tar.bz2
63 Source1: http://snapshot.opera.com/unix/%{ver}-%{reltype}/sparc-linux/en/%{name}-%{ver}-%{sparc_static_rel}-static-qt.sparc-en.tar.bz2
69 Source2: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/ppc/static/%{name}-%{ver}-%{ppc_static_rel}-static-qt.ppc-en.tar.bz2
71 Source2: http://snapshot.opera.com/unix/%{ver}-%{reltype}/ppc-linux/en/%{name}-%{ver}-%{ppc_static_rel}-static-qt.ppc-en.tar.bz2
78 Source20: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/i386/shared/%{name}-%{ver}-%{x86_shared_rel}-shared-qt.i386-en.tar.bz2
80 Source20: http://snapshot.opera.com/unix/%{ver}-%{reltype}/intel-linux/en/%{name}-%{ver}-%{x86_shared_rel}-shared-qt.i386-en.tar.bz2
86 Source21: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/sparc/shared/gcc-2.95/%{name}-%{ver}-%{sparc_shared_rel}-shared-qt.sparc-en.tar.bz2
88 Source21: http://snapshot.opera.com/unix/%{ver}-%{reltype}/sparc-linux/en/%{name}-%{ver}-%{sparc_shared_rel}-shared-qt.sparc-en.tar.bz2
94 Source22: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/ppc/shared/gcc-2.95/%{name}-%{ver}-%{ppc_shared_rel}-shared-qt.ppc-en.tar.bz2
96 Source22: http://snapshot.opera.com/unix/%{ver}-%{reltype}/ppc-linux/en/%{name}-%{ver}-%{ppc_shared_rel}-shared-qt.ppc-en.tar.bz2
101 Source3: ftp://ftp.opera.com/pub/opera/unix/lng/721/pl/ou721_480pl.lng
102 Source4: %{name}.desktop
103 URL: http://www.opera.com/
104 ExclusiveArch: %{ix86} ppc sparc sparc64
105 Requires: freetype >= 2
106 Requires: openmotif >= 2
107 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
109 %define _plugindir %{_libdir}/opera/plugins
110 %define _operadocdir %{_docdir}/%{name}-%{ver}.%{rel}
111 %define configfile %{_datadir}/opera/config/opera6rc
114 Opera is world fastest web browser. It supports most of nowaday
115 extensions of HTML. And it is quite stable. Only disadvantage are
116 advertisements on the top of its window. Version static linked with
120 Opera jest najszybsz± przegl±dark± WWW na ¶wiecie. Obs³uguje wiêkszo¶æ
121 dzisiejszych rozszerzeñ HTMLa. Dodatkowo jest w miarê stabilna. Jedyn±
122 niedogodno¶ci± s± reklamy ukazuj±ce siê w górze okna. Wersja
123 statycznie skonsolidowana z qt.
127 %setup -q %{?with_shared:-T -b 20} -n %{name}-%{ver}-%{rel}-%{type}-qt.i386-en
129 %ifarch sparc sparc64
130 %setup -q -T -b %{?with_shared:2}1 -n %{name}-%{ver}-%{rel}-%{type}-qt.sparc-en
133 %setup -q -T -b %{?with_shared:2}2 -n %{name}-%{ver}-%{rel}-%{type}-qt.ppc-en
137 rm -rf $RPM_BUILD_ROOT
139 install -d $RPM_BUILD_ROOT{/etc,%{_mandir}/man1,%{_pixmapsdir},%{_desktopdir}}
141 cat install.sh | sed 's|/etc|$RPM_BUILD_ROOT%{_sysconfdir}|' > install2.sh
142 mv install2.sh install.sh
146 --prefix=$RPM_BUILD_ROOT%{_prefix} \
147 --wrapperdir=$RPM_BUILD_ROOT%{_bindir} \
148 --docdir=$RPM_BUILD_ROOT%{_operadocdir} \
149 --sharedir=$RPM_BUILD_ROOT%{_datadir}/opera \
150 --exec_prefix=$RPM_BUILD_ROOT%{_datadir}/opera/bin \
151 --plugindir=$RPM_BUILD_ROOT%{_plugindir}
154 install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/opera/locale/polish.lng
157 install man/opera.1 $RPM_BUILD_ROOT%{_mandir}/man1
160 sed s#$RPM_BUILD_ROOT## > $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
161 mv $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
163 # install in kde etc.
164 install images/opera.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
166 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
168 # symlink który niweluje burkanie siê opery :>
169 #ln -sf %{_datadir}/opera/ $RPM_BUILD_ROOT/usr/share/
170 #ln -sf %{_libdir}/opera $RPM_BUILD_ROOT/usr/lib/
172 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_datadir}/opera/java/*.policy
174 # always use wrapper linked with libXm.so.3
175 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/operamotifwrapper
176 ln -sf operamotifwrapper-3 $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/operamotifwrapper
178 # %{_libdir} is not the best place for it but opera doesn't search for it in better
180 install lib/spellcheck.so $RPM_BUILD_ROOT%{_libdir}
183 rm -rf $RPM_BUILD_ROOT
186 %defattr(644,root,root,755)
187 %doc LICENSE bugreport help
188 %attr(755,root,root) %{_bindir}/*
189 %dir %{_datadir}/opera
190 %dir %{_datadir}/opera/bin
191 %attr(755,root,root) %{_datadir}/opera/bin/*
192 %{_datadir}/opera/config
193 %{_datadir}/opera/help
194 %{_datadir}/opera/images
195 %{_datadir}/opera/java
196 %{_datadir}/opera/locale
197 %{_datadir}/opera/skin
198 %{_datadir}/opera/styles
199 %{_datadir}/opera/ini
200 %{_datadir}/opera/search.ini
201 %{_datadir}/opera/*.html
202 %{_datadir}/opera/*.ssr
203 %{_datadir}/opera/*.txt
205 %attr(755,root,root) %{_datadir}/opera/chartables.bin
208 %attr(755,root,root) %{_datadir}/opera/chartables-be.bin
210 %attr(755,root,root) %{_datadir}/opera/opera6.adr
211 %attr(755,root,root) %{_libdir}/*.so
212 %dir %{_libdir}/opera
214 %attr(755,root,root) %{_plugindir}/*
216 %{_pixmapsdir}/opera.xpm
217 %{_desktopdir}/*.desktop
219 %{_mandir}/man1/opera.1*