/[packages]/updates/2/opera/current/SPECS/opera.spec
ViewVC logotype

Annotation of /updates/2/opera/current/SPECS/opera.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 315409 - (hide annotations) (download)
Tue Nov 6 23:26:24 2012 UTC (11 years, 5 months ago) by fwang
File size: 5913 byte(s)
new version 12.10
1 ahmad 94297 %define name opera
2 fwang 315409 %define version 12.10
3 fwang 200557 %define rel 1
4 ahmad 94297 %define snap 0
5 fwang 315409 %define buildnb 1652
6 ahmad 94297
7     %define tarball_base %{name}-%{version}-%{buildnb}
8    
9     %ifarch x86_64
10 anssi 260943 %define pluginwrapper_32on64 %{_libdir}/%{name}/pluginwrapper/operapluginwrapper-ia32-linux
11     %else
12     %define pluginwrapper_32on64 %nil
13 ahmad 94297 %endif
14    
15 anssi 260943 # Exclude 32-bit requires on x86_64; 32-bit plugins will pull them themselves.
16     %define arch_exclude_files_from_autoreq ^%{pluginwrapper_32on64}$
17    
18 ahmad 94297 # Exclude requires on GTK/KDE toolkits, they are optional and used
19     # automatically when present.
20     %define common_exclude_files_from_autoreq ^%{_libdir}/%{name}/libopera.\\+\\.so$
21    
22     %define _exclude_files_from_autoreq %{arch_exclude_files_from_autoreq}\\|%{common_exclude_files_from_autoreq}
23    
24     Summary: Opera Web Browser for Linux
25     Name: %{name}
26     Version: %{version}
27     %if %snap
28     Release: %mkrel 0.%buildnb.%rel
29     %else
30     Release: %mkrel %rel
31     %endif
32     %define shortver %(echo %version | tr -d .)
33     Source0: http://get.opera.com/pub/opera/linux/%{shortver}/%{tarball_base}.i386.linux.tar.xz
34     Source1: http://get.opera.com/pub/opera/linux/%{shortver}/%{tarball_base}.x86_64.linux.tar.xz
35     Source2: bookmarks.adr
36     License: Freeware
37     Url: http://www.opera.com/
38     Group: Networking/WWW
39     ExclusiveArch: %ix86 x86_64
40     BuildRequires: desktop-file-utils
41 fwang 137047 BuildRequires: sed
42 anssi 183173 # for html5 videos:
43     Suggests: gstreamer0.10-plugins-base
44     Suggests: gstreamer0.10-pulse
45 ahmad 94297
46     %description
47     Opera for Linux is an alternative feature-rich Web browser.
48    
49     %prep
50     %ifarch x86_64
51     %setup -qTn %{name}-%{version}-%{buildnb}.%{_arch}.linux -b1
52     %else
53     %setup -qTn %{name}-%{version}-%{buildnb}.%{_arch}.linux -b0
54     %endif
55    
56     %install
57     rm -rf $RPM_BUILD_ROOT
58     ./install --system --repackage %{buildroot}%{_prefix} --prefix %{_prefix}
59    
60     %if "%_lib" != "lib"
61     mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
62     %endif
63     sed -i 's,/usr/lib,%{_libdir},' %{buildroot}%{_bindir}/opera
64    
65     rm -rf rpmdocs
66     mv %{buildroot}%{_docdir}/opera rpmdocs
67    
68 anssi 183173 # install bookmarks file into vendor defaults
69     install -d -m755 %{buildroot}%_datadir/%name/custom/defaults
70     install -m644 %{SOURCE2} %{buildroot}%_datadir/%name/custom/defaults/bookmarks.adr
71 ahmad 94297
72     desktop-file-install --dir %{buildroot}%{_datadir}/applications \
73 anssi 181438 --add-category=X-Mageia-CrossDesktop \
74 ahmad 94297 %{buildroot}%{_datadir}/applications/%{name}-browser.desktop
75    
76     # StartupNotify does not work correctly when opera is already running;
77     # the already-existing window is activated and a new tab is opened
78 anssi 183173 # but the completion signal is not sent.
79 fwang 137047 sed -i -e 's/StartupNotify=.*/StartupNotify=false/' %{buildroot}%{_datadir}/applications/%{name}-browser.desktop
80 ahmad 94297
81     %files
82     %defattr(-,root,root)
83     %doc rpmdocs/*
84     %_bindir/opera
85    
86 anssi 260943 %dir %_libdir/opera
87     %_libdir/opera/gstreamer
88     %_libdir/opera/libopera*.so
89     %_libdir/opera/opera
90     %_libdir/opera/plugins
91     %dir %_libdir/opera/pluginwrapper
92     %_libdir/opera/pluginwrapper/operapluginwrapper
93     %_libdir/opera/pluginwrapper/operapluginwrapper-native
94     %ifarch x86_64
95     %{pluginwrapper_32on64}
96     %endif
97    
98 ahmad 94297 %_iconsdir/hicolor/*/apps/%{name}-*.*
99     %_iconsdir/hicolor/*/mimetypes/%{name}-*.*
100     %_datadir/applications/%{name}-browser.desktop
101     %_datadir/mime/packages/%{name}-*.xml
102     %_mandir/man1/opera*
103    
104     %dir %{_datadir}/opera
105     %{_datadir}/opera/encoding.bin
106     %{_datadir}/opera/*.dtd
107 fwang 115389 %{_datadir}/opera/*.sig
108 ahmad 94297 %{_datadir}/opera/lngcode.txt
109     %{_datadir}/opera/package-id.ini
110 fwang 177335 %{_datadir}/opera/html5_entity_init.dat
111     %{_datadir}/opera/pubsuffix.xml
112 ahmad 94297 %{_datadir}/opera/defaults
113     %{_datadir}/opera/extra
114     %{_datadir}/opera/skin
115     %{_datadir}/opera/styles
116     %{_datadir}/opera/ui
117     %{_datadir}/opera/locale/en
118 fwang 177335 %{_datadir}/opera/region
119 anssi 183173 %{_datadir}/opera/custom
120 ahmad 94297
121     # langs
122     %dir %{_datadir}/%{name}/locale
123 anssi 260612 %lang(ar) %{_datadir}/%name/locale/ar
124 ahmad 94297 %lang(be) %{_datadir}/%name/locale/be
125     %lang(bg) %{_datadir}/%name/locale/bg
126     %lang(cs) %{_datadir}/%name/locale/cs
127     %lang(da) %{_datadir}/%name/locale/da
128     %lang(de) %{_datadir}/%name/locale/de
129     %lang(el) %{_datadir}/%name/locale/el
130     %lang(en_GB) %{_datadir}/%name/locale/en-GB
131     %lang(es) %{_datadir}/%name/locale/es-ES
132     %lang(es) %{_datadir}/%name/locale/es-LA
133     %lang(et) %{_datadir}/%name/locale/et
134 anssi 260612 %lang(fa) %{_datadir}/%name/locale/fa
135 ahmad 94297 %lang(fi) %{_datadir}/%name/locale/fi
136     %lang(fr) %{_datadir}/%name/locale/fr
137     %lang(fr_CA) %{_datadir}/%name/locale/fr-CA
138     %lang(fy) %{_datadir}/%name/locale/fy
139 fwang 115389 %lang(gd) %{_datadir}/%name/locale/gd
140 anssi 260612 %lang(he) %{_datadir}/%name/locale/he
141 ahmad 94297 %lang(hi) %{_datadir}/%name/locale/hi
142 fwang 115389 %lang(hu) %{_datadir}/%name/locale/hu
143 ahmad 94297 %lang(hr) %{_datadir}/%name/locale/hr
144     %lang(id) %{_datadir}/%name/locale/id
145     %lang(it) %{_datadir}/%name/locale/it
146     %lang(ja) %{_datadir}/%name/locale/ja
147     %lang(ka) %{_datadir}/%name/locale/ka
148 anssi 260612 %lang(kk) %{_datadir}/%name/locale/kk
149 ahmad 94297 %lang(ko) %{_datadir}/%name/locale/ko
150     %lang(lt) %{_datadir}/%name/locale/lt
151 fwang 315409 %lang(lv) %{_datadir}/%name/locale/lv
152 ahmad 94297 %lang(mk) %{_datadir}/%name/locale/mk
153 fwang 115389 %lang(nn) %{_datadir}/%name/locale/nn
154 ahmad 94297 %lang(nb) %{_datadir}/%name/locale/nb
155     %lang(nl) %{_datadir}/%name/locale/nl
156     %lang(pl) %{_datadir}/%name/locale/pl
157     %lang(pt) %{_datadir}/%name/locale/pt
158     %lang(pt_BR) %{_datadir}/%name/locale/pt-BR
159     %lang(ro) %{_datadir}/%name/locale/ro
160     %lang(ru) %{_datadir}/%name/locale/ru
161     %lang(sk) %{_datadir}/%name/locale/sk
162     %lang(sr) %{_datadir}/%name/locale/sr
163     %lang(sv) %{_datadir}/%name/locale/sv
164 fwang 115389 %lang(te) %{_datadir}/%name/locale/te
165 ahmad 94297 %lang(ta) %{_datadir}/%name/locale/ta
166     %lang(tr) %{_datadir}/%name/locale/tr
167     %lang(uk) %{_datadir}/%name/locale/uk
168     %lang(vi) %{_datadir}/%name/locale/vi
169     %lang(zh_CN) %{_datadir}/%name/locale/zh-cn
170     %lang(zh_TW) %{_datadir}/%name/locale/zh-tw
171 fwang 115389 %lang(af) %{_datadir}/%name/locale/af
172     %lang(az) %{_datadir}/%name/locale/az
173     %lang(bn) %{_datadir}/%name/locale/bn
174     %lang(me) %{_datadir}/%name/locale/me
175     %lang(ms) %{_datadir}/%name/locale/ms
176     %lang(pa) %{_datadir}/%name/locale/pa
177     %lang(sw) %{_datadir}/%name/locale/sw
178     %lang(th) %{_datadir}/%name/locale/th
179     %lang(tl) %{_datadir}/%name/locale/tl
180 anssi 260612 %lang(ur) %{_datadir}/%name/locale/ur
181 fwang 115389 %lang(uz) %{_datadir}/%name/locale/uz
182     %lang(zu) %{_datadir}/%name/locale/zu

  ViewVC Help
Powered by ViewVC 1.1.30