]> git.pld-linux.org Git - packages/opera.git/blob - opera.spec
- updated to 7.11 beta2 for x86 and ppc
[packages/opera.git] / opera.spec
1 #
2 # There're some problems with "shared" version
3 #
4 %define ver     7.11
5 %define rel     20030512.1
6 %define type    static
7 Summary:        World fastest web browser
8 Summary(pl):    Najszybsza przegl±darka WWW na ¶wiecie
9 Name:           opera
10 Version:        %{ver}.%{rel}
11 Release:        1
12 License:        Restricted, see file LICENSE
13 Group:          X11/Applications/Networking
14 Source0:        ftp://ftp.opera.com/pub/opera/linux/711/beta2/en/i386/static/%{name}-%{ver}-%{rel}-%{type}-qt.i386.tar.bz2
15 %ifarch ppc
16 Source1:        ftp://ftp.opera.com/pub/opera/linux/711/beta2/en/i386/static/%{name}-%{ver}-%{rel}-%{type}-qt.ppc.tar.bz2
17 %endif
18 Source2:        http://web.opera.com/download/unix/locale/pl.qm.gz
19 Source3:        opera.desktop
20 NoSource:       0
21 URL:            http://www.opera.com/
22 ExclusiveArch:  %{ix86} ppc
23 Requires:       freetype >= 2
24 Requires:       openmotif >= 2
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _plugindir      %{_libdir}/opera/plugins
28 %define         _operadocdir    %{_docdir}/%{name}-%{ver}.%{rel}
29 %define         configfile      %{_datadir}/opera/config/opera6rc
30
31 %description
32 Opera is world fastest web browser. It supports most of nowaday
33 extensions of HTML. And it is quite stable. Only disadvantage are
34 advertisements on the top of its window. Version static linked with qt.
35
36 %description -l pl
37 Opera jest najszybsz± przegl±dark± WWW na ¶wiecie. Obs³uguje wiêkszo¶æ
38 dzisiejszych rozszerzeñ HTMLa. Dodatkowo jest w miarê stabilna. Jedyn±
39 niedogodno¶ci± s± reklamy ukazuj±ce siê w górze okna. Wersja statycznie
40 linkowana z qt.
41
42 %prep
43 %ifarch %{ix86}
44 %setup -q  -n %{name}-%{ver}-%{rel}-%{type}-qt.i386
45 %endif
46 %ifarch ppc
47 %setup -q -T -b 1 -n %{name}-%{ver}-%{rel}-%{type}-qt.ppc
48 %endif
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 sh install.sh \
54   --prefix=$RPM_BUILD_ROOT%{_prefix} \
55   --wrapperdir=$RPM_BUILD_ROOT%{_bindir} \
56   --docdir=$RPM_BUILD_ROOT%{_operadocdir} \
57   --sharedir=$RPM_BUILD_ROOT%{_datadir}/opera \
58   --exec_prefix=$RPM_BUILD_ROOT%{_datadir}/opera/bin \
59   --plugindir=$RPM_BUILD_ROOT%{_plugindir}
60
61 # Polish locale
62 gunzip -c %{SOURCE2} > $RPM_BUILD_ROOT%{_datadir}/opera/locale/pl.qm
63
64 # man install
65 install -d $RPM_BUILD_ROOT%{_mandir}/man1
66 install man/opera.1 $RPM_BUILD_ROOT%{_mandir}/man1
67
68 # wrapper correction
69 sed s#$RPM_BUILD_ROOT## > $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
70 mv $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
71
72 # install in kde etc.
73 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
74 install images/opera.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
75
76 install -d $RPM_BUILD_ROOT%{_applnkdir}/Network/WWW
77 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Network/WWW
78
79 # symlink który niweluje burkanie siê opery :>
80 #ln -sf %{_datadir}/opera/ $RPM_BUILD_ROOT/usr/share/
81 #ln -sf %{_libdir}/opera $RPM_BUILD_ROOT/usr/lib/
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc LICENSE bugreport help
89 %attr(755,root,root) %{_bindir}/*
90 %dir %{_datadir}/opera
91 %dir %{_datadir}/opera/bin
92 %attr(755,root,root) %{_datadir}/opera/bin/*
93 %{_datadir}/opera/buttons
94 %{_datadir}/opera/config
95 %{_datadir}/opera/help
96 %{_datadir}/opera/images
97 %{_datadir}/opera/java
98 %{_datadir}/opera/locale
99 %{_datadir}/opera/skin
100 %{_datadir}/opera/styles
101 %{_datadir}/opera/ini
102 %{_datadir}/opera/search.ini
103 %{_datadir}/opera/*.html
104 %ifarch %{ix86}
105 %attr(755,root,root) %{_datadir}/opera/chartables.bin
106 %endif
107 %ifarch ppc
108 %attr(755,root,root) %{_datadir}/opera/chartables-be.bin
109 %endif
110 %attr(755,root,root) %{_datadir}/opera/opera6.adr
111 %dir %{_libdir}/opera
112 %dir %{_plugindir}
113 %attr(755,root,root) %{_plugindir}/*
114
115 %{_pixmapsdir}/opera.xpm
116 %{_applnkdir}/Network/WWW/*.desktop
117
118 %{_mandir}/man1/opera.1*
This page took 0.089677 seconds and 4 git commands to generate.