2 # There're some problems with "shared" version
6 %define dirrel 20031119
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/723/final/en/i386/static/%{name}-%{ver}-%{rel}-%{type}-qt.i386-en.tar.bz2
16 Source1: ftp://ftp.opera.com/pub/opera/linux/723/final/en/sparc/static/%{name}-%{ver}-%{rel}-%{type}-qt.sparc-en.tar.bz2
17 Source2: ftp://ftp.opera.com/pub/opera/linux/723/final/en/ppc/static/%{name}-%{ver}-%{rel}-%{type}-qt.ppc-en.tar.bz2
18 # polish language file (taken from where?)
19 Source3: %{name}-2887.lng
20 Source4: %{name}.desktop
22 URL: http://www.opera.com/
23 ExclusiveArch: %{ix86} ppc sparc sparc64
24 Requires: freetype >= 2
25 Requires: openmotif >= 2
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _plugindir %{_libdir}/opera/plugins
29 %define _operadocdir %{_docdir}/%{name}-%{ver}.%{rel}
30 %define configfile %{_datadir}/opera/config/opera6rc
33 Opera is world fastest web browser. It supports most of nowaday
34 extensions of HTML. And it is quite stable. Only disadvantage are
35 advertisements on the top of its window. Version static linked with
39 Opera jest najszybsz± przegl±dark± WWW na ¶wiecie. Obs³uguje wiêkszo¶æ
40 dzisiejszych rozszerzeñ HTMLa. Dodatkowo jest w miarê stabilna. Jedyn±
41 niedogodno¶ci± s± reklamy ukazuj±ce siê w górze okna. Wersja
42 statycznie skonsolidowana z qt.
46 %setup -q -n %{name}-%{ver}-%{rel}-%{type}-qt.i386-en
49 %setup -q -T -b 1 -n %{name}-%{ver}-%{rel}-%{type}-qt.sparc-en
52 %setup -q -T -b 2 -n %{name}-%{ver}-%{rel}-%{type}-qt.ppc-en
56 rm -rf $RPM_BUILD_ROOT
58 cat install.sh | sed 's|/etc|$RPM_BUILD_ROOT%{_sysconfdir}|' > install2.sh
59 mv install2.sh install.sh
63 --prefix=$RPM_BUILD_ROOT%{_prefix} \
64 --wrapperdir=$RPM_BUILD_ROOT%{_bindir} \
65 --docdir=$RPM_BUILD_ROOT%{_operadocdir} \
66 --sharedir=$RPM_BUILD_ROOT%{_datadir}/opera \
67 --exec_prefix=$RPM_BUILD_ROOT%{_datadir}/opera/bin \
68 --plugindir=$RPM_BUILD_ROOT%{_plugindir}
71 install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/opera/locale/
74 install -d $RPM_BUILD_ROOT%{_mandir}/man1
75 install man/opera.1 $RPM_BUILD_ROOT%{_mandir}/man1
78 sed s#$RPM_BUILD_ROOT## > $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
79 mv $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
82 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
83 install images/opera.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
85 install -d $RPM_BUILD_ROOT%{_desktopdir}
86 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
88 # symlink który niweluje burkanie siê opery :>
89 #ln -sf %{_datadir}/opera/ $RPM_BUILD_ROOT/usr/share/
90 #ln -sf %{_libdir}/opera $RPM_BUILD_ROOT/usr/lib/
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc LICENSE bugreport help
98 %attr(755,root,root) %{_bindir}/*
99 %dir %{_datadir}/opera
100 %dir %{_datadir}/opera/bin
101 %attr(755,root,root) %{_datadir}/opera/bin/*
102 %{_datadir}/opera/config
103 %{_datadir}/opera/help
104 %{_datadir}/opera/images
105 %{_datadir}/opera/java
106 %{_datadir}/opera/locale
107 %{_datadir}/opera/skin
108 %{_datadir}/opera/styles
109 %{_datadir}/opera/ini
110 %{_datadir}/opera/search.ini
111 %{_datadir}/opera/*.html
112 %{_datadir}/opera/*.ssr
113 %{_datadir}/opera/*.txt
115 %attr(755,root,root) %{_datadir}/opera/chartables.bin
118 %attr(755,root,root) %{_datadir}/opera/chartables-be.bin
120 %attr(755,root,root) %{_datadir}/opera/opera6.adr
121 %dir %{_libdir}/opera
123 %attr(755,root,root) %{_plugindir}/*
125 %{_pixmapsdir}/opera.xpm
126 %{_desktopdir}/*.desktop
128 %{_mandir}/man1/opera.1*