2 # - move translations into a separate, noarch package
4 %bcond_without shared # static or shared version
5 %bcond_without distributable # distributable or not
6 %bcond_without incall # include all tarballs into src.rpm (but splitted into shared/static)
7 %bcond_with snap # snap version
11 %define dirrel 20040824
12 %define reltype Preview-1
15 %define dirrel 20040803
19 %define shver %(echo %{ver} | tr -d .)
20 %define x86_shared_rel %{dirrel}.5
21 %define x86_static_rel %{dirrel}.1
22 %define sparc_shared_rel %{dirrel}.2
23 %define sparc_static_rel %{dirrel}.1
24 %define ppc_shared_rel %{dirrel}.2
25 %define ppc_static_rel %{dirrel}.1
28 # We should be able to build src.rpm also on not supported archs
29 %define rel %{x86_shared_rel}
31 %define rel %{sparc_shared_rel}
34 %define rel %{ppc_shared_rel}
38 %define rel %{x86_static_rel}
40 %define rel %{sparc_static_rel}
43 %define rel %{ppc_static_rel}
47 Summary: World fastest web browser
48 Summary(pl): Najszybsza przegl±darka WWW na ¶wiecie
50 Version: %{ver}.%{rel}
52 License: Distributable for PLD until 31 Dec 2006 - http://distribute.opera.com/ (otherwise restricted, see file LICENSE)
53 Group: X11/Applications/Networking
55 %{!?with_incall:%ifarch %{ix86}}
57 Source0: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/i386/static/%{name}-%{ver}-%{x86_static_rel}-static-qt.i386-en.tar.bz2
58 # Source0-md5: 0a7e933ef593d4b7a897041c9f87bba2
60 Source100: http://snapshot.opera.com/unix/%{ver}-%{reltype}/intel-linux/en/%{name}-%{ver}-%{x86_static_rel}-static-qt.i386-en.tar.bz2
62 %{!?with_distributable:NoSource: 0}
68 Source1: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/sparc/static/%{name}-%{ver}-%{sparc_static_rel}-static-qt.sparc-en.tar.bz2
69 # Source1-md5: 04976a6ace7a4345ce5e4cf763159939
71 #Source101: http://snapshot.opera.com/unix/%{ver}-%{reltype}/sparc-linux/en/%{name}-%{ver}-%{sparc_static_rel}-static-qt.sparc-en.tar.bz2
73 %{!?with_distributable:NoSource: 1}
79 Source2: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/ppc/static/%{name}-%{ver}-%{ppc_static_rel}-static-qt.ppc-en.tar.bz2
80 # Source2-md5: c11a4c78d18bdaa4bd338b4c0dc27f38
82 Source102: http://snapshot.opera.com/unix/%{ver}-%{reltype}/ppc-linux/en/%{name}-%{ver}-%{ppc_static_rel}-static-qt.ppc-en.tar.bz2
84 %{!?with_distributable:NoSource: 2}
85 %{!?with_incall:%endif}
87 %{!?with_incall:%ifarch %{ix86}}
89 Source20: ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/i386/shared/%{name}-%{ver}-%{x86_shared_rel}-shared-qt.i386-en.tar.bz2
90 # Source20-md5: 0e407a050f3aa4559011a3cea707cd20
92 Source1020: http://snapshot.opera.com/unix/%{ver}-%{reltype}/intel-linux/en/%{name}-%{ver}-%{x86_shared_rel}-shared-qt.i386-en.tar.bz2
93 # Source1020-md5: da4df3c5d65057eac4e063b4359fafa6
95 %{!?with_distributable:NoSource: 20}
101 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
102 # Source21-md5: d8635013dac0c98c680997fcc9dd66c4
104 #Source1021: http://snapshot.opera.com/unix/%{ver}-%{reltype}/sparc-linux/en/%{name}-%{ver}-%{sparc_shared_rel}-shared-qt.sparc-en.tar.bz2
106 %{!?with_distributable:NoSource: 21}
112 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
113 # Source22-md5: 516992e68c5a710d795a1ecc791c7f4d
115 Source1022: http://snapshot.opera.com/unix/%{ver}-%{reltype}/ppc-linux/en/%{name}-%{ver}-%{ppc_shared_rel}-shared-qt.ppc-en.tar.bz2
116 # Source1022-md5: 6496d9871a2ca7337377ed3ecc298559
118 %{!?with_distributable:NoSource: 22}
120 %{!?with_incall:%endif}
121 Source4: %{name}.desktop
122 URL: http://www.opera.com/
123 ExclusiveArch: %{ix86} ppc sparc sparc64
124 Requires: freetype >= 2
126 Requires: openmotif >= 2
127 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
129 %define _plugindir %{_libdir}/opera/plugins
130 %define _operadocdir %{_docdir}/%{name}-%{ver}.%{rel}
131 %define configfile %{_datadir}/opera/config/opera6rc
134 Opera is world fastest web browser. It supports most of nowaday
135 extensions of HTML. And it is quite stable. Only disadvantage are
136 advertisements on the top of its window. Version static linked with
140 Opera jest najszybsz± przegl±dark± WWW na ¶wiecie. Obs³uguje wiêkszo¶æ
141 dzisiejszych rozszerzeñ HTMLa. Dodatkowo jest w miarê stabilna. Jedyn±
142 niedogodno¶ci± s± reklamy ukazuj±ce siê w górze okna. Wersja
143 statycznie skonsolidowana z qt.
147 %setup -q %{?with_shared:-T -b %{?with_snap:10}20} -n %{name}-%{ver}-%{rel}-%{type}-qt.i386-en
149 %ifarch sparc sparc64
150 %setup -q -T -b %{?with_snap:10}%{?with_shared:2}1 -n %{name}-%{ver}-%{rel}-%{type}-qt.sparc-en
153 %setup -q -T -b %{?with_snap:10}%{?with_shared:2}2 -n %{name}-%{ver}-%{rel}-%{type}-qt.ppc-en
157 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT{/etc,%{_mandir}/man1,%{_pixmapsdir},%{_desktopdir}}
161 cat install.sh | sed 's|/etc|$RPM_BUILD_ROOT%{_sysconfdir}|' > install2.sh
162 mv install2.sh install.sh
166 --prefix=$RPM_BUILD_ROOT%{_prefix} \
167 --wrapperdir=$RPM_BUILD_ROOT%{_bindir} \
168 --docdir=$RPM_BUILD_ROOT%{_operadocdir} \
169 --sharedir=$RPM_BUILD_ROOT%{_datadir}/opera \
170 --exec_prefix=$RPM_BUILD_ROOT%{_datadir}/opera/bin \
171 --plugindir=$RPM_BUILD_ROOT%{_plugindir}
174 install man/opera.1 $RPM_BUILD_ROOT%{_mandir}/man1
177 sed s#$RPM_BUILD_ROOT## > $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
178 mv $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
180 # install in kde etc.
181 install images/opera.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
183 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
185 # symlink który niweluje burkanie siê opery :>
186 #ln -sf %{_datadir}/opera/ $RPM_BUILD_ROOT/usr/share/
187 #ln -sf %{_libdir}/opera $RPM_BUILD_ROOT/usr/lib/
189 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_datadir}/opera/java/*.policy
191 # always use wrapper linked with libXm.so.3
192 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/operamotifwrapper
193 ln -sf operamotifwrapper-3 $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/operamotifwrapper-2
194 ln -sf operamotifwrapper-3 $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/operamotifwrapper-1
196 # %{_libdir} is not the best place for it but opera doesn't search for it in better
198 install lib/spellcheck.so $RPM_BUILD_ROOT%{_libdir}
201 rm -rf $RPM_BUILD_ROOT
204 %defattr(644,root,root,755)
205 %doc LICENSE bugreport help
206 %attr(755,root,root) %{_bindir}/*
207 %dir %{_datadir}/opera
208 %dir %{_datadir}/opera/bin
209 %attr(755,root,root) %{_datadir}/opera/bin/*
210 %{_datadir}/opera/config
211 %{_datadir}/opera/help
212 %{_datadir}/opera/images
213 %{_datadir}/opera/java
214 %{_datadir}/opera/skin
215 %{_datadir}/opera/styles
216 %{_datadir}/opera/ini
217 %{_datadir}/opera/search.ini
218 %{_datadir}/opera/*.html
219 %{_datadir}/opera/*.ssr
220 %{_datadir}/opera/*.txt
222 %attr(755,root,root) %{_datadir}/opera/chartables.bin
225 %attr(755,root,root) %{_datadir}/opera/chartables-be.bin
227 %attr(755,root,root) %{_datadir}/opera/opera6.adr
228 %attr(755,root,root) %{_libdir}/*.so
229 %dir %{_libdir}/opera
231 %attr(755,root,root) %{_plugindir}/*
233 %dir %{_datadir}/opera/locale
234 %{_datadir}/opera/locale/en
235 %{_datadir}/opera/locale/english.lng
237 %{_pixmapsdir}/opera.xpm
238 %{_desktopdir}/*.desktop
240 %{_mandir}/man1/opera.1*