Advertisement
Guest User

SPEC file for Opera on CentOS-5

a guest
Sep 5th, 2012
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RPM Spec 11.84 KB | None | 0 0
  1. %define name opera
  2. %define version 12.00
  3. %define rel 1
  4. %define buildnb 1467
  5.  
  6. %define tarball_base %{name}-%{version}-%{buildnb}
  7.  
  8. %define arch_exclude_files_from_autoreq ^$
  9. %ifarch x86_64
  10. # Exclude 32-bit requires on x86_64; plugins will pull them.
  11. %define arch_exclude_files_from_autoreq ^%{_libdir}/%{name}/operapluginwrapper-ia32-linux$
  12. %endif
  13.  
  14. # Exclude requires on GTK/KDE toolkits, they are optional and used
  15. # automatically when present.
  16. %define common_exclude_files_from_autoreq ^%{_libdir}/%{name}/libopera.\\+\\.so$
  17.  
  18. %define _exclude_files_from_autoreq %{arch_exclude_files_from_autoreq}\\|%{common_exclude_files_from_autoreq}
  19.  
  20. Summary:    Opera Web Browser for Linux
  21. Name:       %{name}
  22. # This epoch works for an upgrade vs. version 11.00. You might need to increase
  23. #  it to be able to upgrade more recent versions.
  24. Epoch:      2
  25. Version:    %{version}
  26. Release:    %buildnb.%rel
  27. %define shortver %(echo %version | tr -d .)
  28. Source0:    http://get.opera.com/pub/opera/linux/%{shortver}/%{tarball_base}.i386.linux.tar.bz2
  29. Source1:    http://get.opera.com/pub/opera/linux/%{shortver}/%{tarball_base}.x86_64.linux.tar.bz2
  30. Vendor:     Opera Software ASA
  31. License:    Proprietary
  32. Url:        http://www.opera.com/
  33. Group:      Applications/Internet
  34. BuildRoot:  %{_tmppath}/%{name}-buildroot
  35. ExclusiveArch:  %ix86 x86_64
  36. BuildRequires:  desktop-file-utils
  37.  
  38. %description
  39. Opera for Linux is an alternative feature-rich Web browser.
  40.  
  41. %prep
  42. %ifarch x86_64
  43. %setup -qTn %{name}-%{version}-%{buildnb}.%{_arch}.linux -b1
  44. %else
  45. %setup -qTn %{name}-%{version}-%{buildnb}.%{_arch}.linux -b0
  46. %endif
  47.  
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. ./install --system --repackage %{buildroot}%{_prefix} --prefix %{_prefix}
  51.  
  52. %if "%_lib" != "lib"
  53. mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
  54. %endif
  55. sed -i 's,/usr/lib,%{_libdir},' %{buildroot}%{_bindir}/opera
  56.  
  57. rm -rf rpmdocs
  58. mv %{buildroot}%{_docdir}/opera rpmdocs
  59.  
  60. # StartupNotify does not work correctly when opera is already running;
  61. # the already-existing window is activated and a new tab is opened
  62. # and the completion signal is not sent.
  63. cat >> %{buildroot}%{_datadir}/applications/%{name}-browser.desktop << EOF
  64. StartupNotify=false
  65. EOF
  66.  
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69.  
  70. %files
  71. %defattr(-,root,root)
  72. %doc rpmdocs/*
  73. %_bindir/opera
  74. %_libdir/opera
  75.  
  76. %_iconsdir/hicolor/*/apps/%{name}-*.*
  77. %_iconsdir/hicolor/*/mimetypes/%{name}-*.*
  78. %_datadir/applications/%{name}-browser.desktop
  79. %_datadir/mime/packages/%{name}-*.xml
  80. %_mandir/man1/opera*
  81.  
  82. %dir %{_datadir}/opera
  83. %{_datadir}/opera/encoding.bin
  84. %{_datadir}/opera/html5_entity_init.dat
  85. %{_datadir}/opera/pubsuffix.xml
  86. %{_datadir}/opera/*.dtd
  87. %{_datadir}/opera/*.sig
  88. %{_datadir}/opera/lngcode.txt
  89. %{_datadir}/opera/package-id.ini
  90. %{_datadir}/opera/defaults
  91. %{_datadir}/opera/extra
  92. %{_datadir}/opera/region
  93. %{_datadir}/opera/skin
  94. %{_datadir}/opera/styles
  95. %{_datadir}/opera/ui
  96. %{_datadir}/opera/locale/en
  97.  
  98. # langs
  99. %dir %{_datadir}/%{name}/locale
  100. %lang(ar) %{_datadir}/%name/locale/ar
  101. %lang(be) %{_datadir}/%name/locale/be
  102. %lang(bg) %{_datadir}/%name/locale/bg
  103. %lang(cs) %{_datadir}/%name/locale/cs
  104. %lang(da) %{_datadir}/%name/locale/da
  105. %lang(de) %{_datadir}/%name/locale/de
  106. %lang(el) %{_datadir}/%name/locale/el
  107. %lang(en_GB) %{_datadir}/%name/locale/en-GB
  108. %lang(es) %{_datadir}/%name/locale/es-ES
  109. %lang(es) %{_datadir}/%name/locale/es-LA
  110. %lang(et) %{_datadir}/%name/locale/et
  111. %lang(fa) %{_datadir}/%name/locale/fa
  112. %lang(fi) %{_datadir}/%name/locale/fi
  113. %lang(fr) %{_datadir}/%name/locale/fr
  114. %lang(fr_CA) %{_datadir}/%name/locale/fr-CA
  115. %lang(fy) %{_datadir}/%name/locale/fy
  116. %lang(gd) %{_datadir}/%name/locale/gd
  117. %lang(he) %{_datadir}/%name/locale/he
  118. %lang(hi) %{_datadir}/%name/locale/hi
  119. %lang(hu) %{_datadir}/%name/locale/hu
  120. %lang(hr) %{_datadir}/%name/locale/hr
  121. %lang(id) %{_datadir}/%name/locale/id
  122. %lang(it) %{_datadir}/%name/locale/it
  123. %lang(ja) %{_datadir}/%name/locale/ja
  124. %lang(ka) %{_datadir}/%name/locale/ka
  125. %lang(kk) %{_datadir}/%name/locale/kk
  126. %lang(ko) %{_datadir}/%name/locale/ko
  127. %lang(lt) %{_datadir}/%name/locale/lt
  128. %lang(mk) %{_datadir}/%name/locale/mk
  129. %lang(nn) %{_datadir}/%name/locale/nn
  130. %lang(nb) %{_datadir}/%name/locale/nb
  131. %lang(nl) %{_datadir}/%name/locale/nl
  132. %lang(pl) %{_datadir}/%name/locale/pl
  133. %lang(pt) %{_datadir}/%name/locale/pt
  134. %lang(pt_BR) %{_datadir}/%name/locale/pt-BR
  135. %lang(ro) %{_datadir}/%name/locale/ro
  136. %lang(ru) %{_datadir}/%name/locale/ru
  137. %lang(sk) %{_datadir}/%name/locale/sk
  138. %lang(sr) %{_datadir}/%name/locale/sr
  139. %lang(sv) %{_datadir}/%name/locale/sv
  140. %lang(te) %{_datadir}/%name/locale/te
  141. %lang(ta) %{_datadir}/%name/locale/ta
  142. %lang(tr) %{_datadir}/%name/locale/tr
  143. %lang(uk) %{_datadir}/%name/locale/uk
  144. %lang(ur) %{_datadir}/%name/locale/ur
  145. %lang(vi) %{_datadir}/%name/locale/vi
  146. %lang(zh_CN) %{_datadir}/%name/locale/zh-cn
  147. %lang(zh_TW) %{_datadir}/%name/locale/zh-tw
  148. %lang(af) %{_datadir}/%name/locale/af
  149. %lang(az) %{_datadir}/%name/locale/az
  150. %lang(bn) %{_datadir}/%name/locale/bn
  151. %lang(me) %{_datadir}/%name/locale/me
  152. %lang(ms) %{_datadir}/%name/locale/ms
  153. %lang(pa) %{_datadir}/%name/locale/pa
  154. %lang(sw) %{_datadir}/%name/locale/sw
  155. %lang(th) %{_datadir}/%name/locale/th
  156. %lang(tl) %{_datadir}/%name/locale/tl
  157. %lang(uz) %{_datadir}/%name/locale/uz
  158. %lang(zu) %{_datadir}/%name/locale/zu
  159.  
  160.  
  161. %changelog
  162. * Wed Jun 27 2012 Leonard den Ottolander <leonard.den.ottolander.nl> 12.00-1
  163. - Update to version 12.00 build 1467
  164. - Fix %files
  165. - Package on Centos 5
  166.  
  167. * Tue Jun 28 2011 Funda Wang <fwang@mandriva.org> 11.50-1mdv2011.0
  168. + Revision: 687780
  169. - new version 11.50
  170.  
  171. * Tue May 17 2011 Funda Wang <fwang@mandriva.org> 11.11-1
  172. + Revision: 675830
  173. - update file list
  174. - 11.11
  175.  
  176.   + Anssi Hannula <anssi@mandriva.org>
  177.     - new version 11.10
  178.  
  179. * Thu Jan 27 2011 Funda Wang <fwang@mandriva.org> 11.01-1
  180. + Revision: 633256
  181. - New version 11.01
  182.  
  183.   + Oden Eriksson <oeriksson@mandriva.com>
  184.     - built for updates
  185.  
  186. * Thu Dec 16 2010 Funda Wang <fwang@mandriva.org> 11.00-1mdv2011.0
  187. + Revision: 622344
  188. - add startupnotify flag after installing, the installer need to sure files are not modified
  189. - new version 11.00
  190.  
  191. * Tue Oct 12 2010 Funda Wang <fwang@mandriva.org> 10.63-1mdv2011.0
  192. + Revision: 585028
  193. - New version 10.63
  194.  
  195. * Thu Oct 07 2010 Anssi Hannula <anssi@mandriva.org> 10.62-2mdv2011.0
  196. + Revision: 584069
  197. - fix missing library dependencies on 32-bit builds (reported by Megaf)
  198.  
  199. * Thu Sep 09 2010 Funda Wang <fwang@mandriva.org> 10.62-1mdv2011.0
  200. + Revision: 576972
  201. - new version 10.62
  202.  
  203.   + Anssi Hannula <anssi@mandriva.org>
  204.     - disable startup notification (it does not work correctly when opera
  205.       is already running)
  206.  
  207. * Fri Aug 13 2010 Anssi Hannula <anssi@mandriva.org> 10.61-1mdv2011.0
  208. + Revision: 569415
  209. - new version
  210.  
  211. * Sat Jul 10 2010 Anssi Hannula <anssi@mandriva.org> 10.60-1mdv2011.0
  212. + Revision: 549971
  213. - spec cleanup
  214. - handle the new mime type definitions
  215.  
  216.   + Funda Wang <fwang@mandriva.org>
  217.     - build with x86_64 arch
  218.     - New version 10.60
  219.  
  220. * Sat May 08 2010 Anssi Hannula <anssi@mandriva.org> 10.10-1mdv2010.1
  221. + Revision: 544093
  222. - remove separate language files, they are included in the tarballs now
  223. - do not require 32-bit packages on 64-bit systems just to support 32-bit
  224.   plugins (the plugins themselves will pull the packages in if needed)
  225. - include tarballs for both archs in the src.rpm
  226. - use upstream supplied icons instead of ones from a separate tarball
  227.   (no notable difference between the two)
  228. - uncompress opera6.adr source
  229. - update summary, description, url
  230. - remove now unneeded requires
  231. - add proper exclusivearch entry
  232. - use upstream .desktop file
  233. - remove now unneeded hacks from .spec
  234. - install configuration files
  235. - remove visible builddir from bindir script
  236. - install old-style menu only on Mandriva 2006.0 and older
  237. - install provided standard-location icons
  238. - do not call /sbin/ldconfig after installation, there are no libraries
  239. - call proper macros in rpm script, on 2008.1 and older only
  240. - add lang tags to language files
  241.  
  242.   + Anne Nicolas <ennael@mandriva.org>
  243.     - clean spec
  244.       first release in non-free repository due to agreement changes
  245.     - add 32 bits tarball
  246.     - import opera
  247.  
  248.  
  249. * Sat Dec 5 2009 Anne Nicolas <anne.nicolas@mandriva.com> 10.10.static-1mdv2010.0
  250. - Fix CVE-2009-4071, CVE-2009-4072, CVE-2009-3832, CVE-2009-3831
  251.  
  252. * Thu Oct 29 2009 Anne Nicolas <anne.nicolas@mandriva.com> 10.01.static-1mdv2010.0
  253. - new version
  254.  
  255. * Wed Sep 02 2009 Anne Nicolas <anne.nicolas@mandriva.com> 10.00.static-1mdv2010.0
  256. - new major version
  257. - fix CVE-2009-3013, CVE-2009-3044, CVE-2009-3046, CVE-2009-3047, CVE-2009-3048,
  258. CVE-2009-3049
  259.  
  260. * Sun Feb 22 2009 Anne Nicolas <anne.nicolas@mandriva.com> 9.64.static-1mdv2009.0
  261. - 9.64 version, security fixes
  262.  
  263. * Mon Aug 25 2008 Anne Nicolas <anne.nicolas@mandriva.com> 9.52.static-1mdv2009.0
  264. - new version
  265.  
  266. * Sat Aug 23 2008 Anne Nicolas <anne.nicolas@mandriva.com> 9.51.static-2mdv2009.0
  267. - update Mandriva bookmarks
  268.  
  269. * Wed Jul 23 2008 Anne Nicolas <anne.nicolas@mandriva.com> 9.51.static-1mdv2009.0
  270. - new version
  271.  
  272. * Mon Feb 25 2008 Anne Nicolas <anne.nicolas@mandriva.com> 9.26.static-1mdv2008.0
  273. - new version
  274.  
  275. * Tue Aug 28 2007 Anne Nicolas <anne.nicolas@mandriva.com> 9.23.static-1mdv2008.0
  276. - 9.23
  277. - add langs
  278. - fix menus
  279.  
  280. * Thu Oct 12 2006 Lenny Cartier <lenny@mandriva.com> 9.02.static-1mdv2007.1
  281. - 9.02
  282.  
  283. * Mon Aug 14 2006 Lenny Cartier <lenny@mandriva.com> 9.01.static-1mdv2007.0
  284. - updated to 20060728 of 9.1
  285. - mkrel
  286. - xdg
  287.  
  288. * Wed Jun 08 2005 Lenny Cartier <lenny@mandriva.com> 8.0.static-1mdk
  289. - updated to 20050415 of 8.0
  290.  
  291. * Sun Mar 13 2005 Lenny Cartier <lenny@mandrakesoft.com> 7.54.static-2mdk
  292. - update to 20050131 release of 7.54
  293.  
  294. * Mon Aug 23 2004 Lenny Cartier <lenny@mandrakesoft.com> 7.54.static-1mdk
  295. - update to 7.54
  296. - move plugin (libnpp.so) to /usr/lib/opera/plugins/
  297. - Opera ChangeLog :
  298.   * Denied write-access to properties on objects from scripts that fail a
  299.   standard origin check, in order to block potential access by attackers
  300.   to user's computer. Fixes critical vulnerability reported in GreyMagic
  301.   Security Advisory GM#008-OP.
  302.   * Fixed security issue regarding spoofing of the addressfield by loading
  303.   other page contents while keeping the URL, reported in Secunia Advisory
  304.   SA12162.
  305.   * Blocked access to file:/ URLs from documents that are not themselves
  306.   loaded from file:/ URLs.
  307.  
  308.   Miscellaneous
  309.   * Fixed problem with canceling connections/downloads.
  310.   * Cache-size limitation improved.
  311.  
  312. * Wed Apr 14 2004 Lenny Cartier <lenny@mandrakesoft.com> 7.23.static-2mdk
  313. - remove wrong opera.jar reference. Was pointing to my homedir... (noticed by Thor Vadstein, thanks)
  314.  
  315. * Thu Jan 22 2004 Lenny Cartier <lenny@mandrakesoft.com> 7.23.static-1mdk
  316. - update to 7.23
  317. - remove files depending on libXm.so.3 (openmotif ?)
  318. - patch1: Disable mandrake steps while running install.sh
  319.  
  320. * Mon Feb 24 2003 Lenny Cartier <lenny@mandrakesoft.com> 6.11.static-1mdk
  321. - 6.11
  322. - update files section
  323.  
  324. * Wed Jun 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 6.01.static-1mdk
  325. - updated to 6.01
  326.  
  327. * Wed Jun 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 6.0-2mdk
  328. - patch to opera6rc ( partner id )
  329. - opera6.adr adds
  330.  
  331. * Sun May 26 2002 Lenny Cartier <lenny@mandrakesoft.com> 6.0-1mdk
  332. - this is a real mdk spec...not a simple link on a media...
  333. - human readable spec.
  334. - supply new paths to the install script
  335.   WRAPPER_DEST PLUGIN_DEST
  336. - update to latest stable sources
  337. - update & fix filelist
  338. - verbose build
  339. - png menu icons
  340. - remove buildroot path copied in the wrapper by install script
  341. - opera bookmarks file is now opera6.adr
  342.  
  343. * Mon Sep 03 2001 Gregory Letoquart <gletoquart@mandrakesoft.com> 5.0-4mdk
  344. - Final Version
  345.  
  346. * Fri Apr 06 2001 Laurent MONTEL <lmontel@mandrakesoft.com> 5.0-3mdk
  347. - Clean spec
  348.  
  349. * Wed Mar 28 2001 Matthias Badaire <mbadaire@mandrakesoft.com> 5.0-2mdk
  350. - change the bookmarks
  351.  
  352. * Thu Mar 15 2001 Matthias Badaire <mbadaire@mandrakesoft.com> 5.0-1mdk
  353. - First release
  354.  
  355.  
  356. # end of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement