]> git.pld-linux.org Git - packages/opera.git/blob - opera.spec
- _applnkdir -> _desktopdir
[packages/opera.git] / opera.spec
1 #
2 # There're some problems with "shared" version
3 #
4 %define ver     7.23
5 %define rel     20031119.1
6 %define dirrel  20031119
7 %define type    static
8 Summary:        World fastest web browser
9 Summary(pl):    Najszybsza przegl±darka WWW na ¶wiecie
10 Name:           opera
11 Version:        %{ver}.%{rel}
12 Release:        1
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
21 NoSource:       0
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)
27
28 %define         _plugindir      %{_libdir}/opera/plugins
29 %define         _operadocdir    %{_docdir}/%{name}-%{ver}.%{rel}
30 %define         configfile      %{_datadir}/opera/config/opera6rc
31
32 %description
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
36 qt.
37
38 %description -l pl
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.
43
44 %prep
45 %ifarch %{ix86}
46 %setup -q  -n %{name}-%{ver}-%{rel}-%{type}-qt.i386-en
47 %endif
48 %ifarch sparc sparc64
49 %setup -q -T -b 1 -n %{name}-%{ver}-%{rel}-%{type}-qt.sparc-en
50 %endif
51 %ifarch ppc
52 %setup -q -T -b 2 -n %{name}-%{ver}-%{rel}-%{type}-qt.ppc-en
53 %endif
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 cat install.sh | sed 's|/etc|$RPM_BUILD_ROOT%{_sysconfdir}|' > install2.sh
59 mv install2.sh install.sh
60
61 echo y |\
62 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}
69
70 # Polish locale
71 install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/opera/locale/
72
73 # man install
74 install -d $RPM_BUILD_ROOT%{_mandir}/man1
75 install man/opera.1 $RPM_BUILD_ROOT%{_mandir}/man1
76
77 # wrapper correction
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
80
81 # install in kde etc.
82 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
83 install images/opera.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
84
85 install -d $RPM_BUILD_ROOT%{_desktopdir}
86 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
87
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/
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files
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
114 %ifarch %{ix86}
115 %attr(755,root,root) %{_datadir}/opera/chartables.bin
116 %endif
117 %ifarch ppc
118 %attr(755,root,root) %{_datadir}/opera/chartables-be.bin
119 %endif
120 %attr(755,root,root) %{_datadir}/opera/opera6.adr
121 %dir %{_libdir}/opera
122 %dir %{_plugindir}
123 %attr(755,root,root) %{_plugindir}/*
124
125 %{_pixmapsdir}/opera.xpm
126 %{_desktopdir}/*.desktop
127
128 %{_mandir}/man1/opera.1*
This page took 0.077347 seconds and 3 git commands to generate.