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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30