opera.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ##
  2. ## opera.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package version
  24. %define V_openpkg 9.27
  25. %define V_bsd_comp 927
  26. %define V_bsd_real 9.27-20080331.1
  27. %define V_lnx_comp 927
  28. %define V_lnx_real 9.27-20080331.1
  29. %define V_sol_comp 927
  30. %define V_sol_real 9.27-20080331.1
  31. # package information
  32. Name: opera
  33. Summary: Graphical Web Browser
  34. URL: http://www.opera.com/
  35. Vendor: Opera Software
  36. Packager: OpenPKG Foundation e.V.
  37. Distribution: OpenPKG Community
  38. Class: EVAL
  39. Group: Web
  40. License: Commercial
  41. Version: %{V_openpkg}
  42. Release: 20080402
  43. # list of sources
  44. Source0: ftp://ftp.opera.com/pub/opera/unix/freebsd/%{V_bsd_comp}/final/en/static/opera-%{V_bsd_real}-static-qt.i386.freebsd-en.tar.bz2
  45. Source1: ftp://ftp.opera.com/pub/opera/linux/%{V_lnx_comp}/final/en/i386/static/opera-%{V_lnx_real}-static-qt.i386-en.tar.bz2
  46. Source2: ftp://ftp.opera.com/pub/opera/unix/solaris/%{V_sol_comp}/final/en/sparc/static/opera-%{V_sol_real}-static-qt-sol8-sparc-en.tar.bz2
  47. # build information
  48. Prefix: %{l_prefix}
  49. BuildRoot: %{l_buildroot}
  50. BuildPreReq: OpenPKG, openpkg >= 20040130
  51. PreReq: OpenPKG, openpkg >= 20040130, X11
  52. AutoReq: no
  53. AutoReqProv: no
  54. %description
  55. Opera is a the fastest, smallest, most full featured desktop browser
  56. ever released. Its rendering engine supports W3C's DOM (Document Object
  57. Model) level 2, nonstandard dynamic HTML (DHTML), CSS1 and CSS2,
  58. ECMAScript, and has improved HTML 4.01 support, as well as complete
  59. support for WML 1.3 and 2.0. It is faster, smaller and can dynamically
  60. change documents through DOM.
  61. %track
  62. prog opera:freebsd = {
  63. version = %{V_bsd_comp}
  64. url = ftp://ftp.opera.com/pub/opera/unix/freebsd/
  65. regex = (\d\d\d(u\d+)?)[^b]
  66. }
  67. prog opera:linux = {
  68. version = %{V_lnx_comp}
  69. url = ftp://ftp.opera.com/pub/opera/linux/
  70. regex = (\d\d\d(u\d+)?)[^b]
  71. }
  72. prog opera:solaris = {
  73. version = %{V_sol_comp}
  74. url = ftp://ftp.opera.com/pub/opera/unix/solaris/
  75. regex = (\d\d\d(u\d+)?)[^b]
  76. }
  77. %prep
  78. %setup -q -c -T
  79. case "%{l_platform -t}" in
  80. i?86-freebsd[5-8]* ) src="%{SOURCE0}" ;;
  81. i?86-linux2* ) src="%{SOURCE1}" ;;
  82. sun4?-sunos5* ) src="%{SOURCE2}" ;;
  83. * ) echo "Platform \"%{l_platform -t}\" not supported" 1>&2; exit 1 ;;
  84. esac
  85. %{l_bzip2} -d -c $src | %{l_tar} xf -
  86. %build
  87. %install
  88. rm -rf $RPM_BUILD_ROOT
  89. ( cd opera-*
  90. ./install.sh \
  91. --DESTDIR=$RPM_BUILD_ROOT \
  92. --exec_prefix=%{l_prefix}/libexec/opera \
  93. --wrapperdir=%{l_prefix}/bin \
  94. --docdir=%{l_prefix}/doc/opera \
  95. --sharedir=%{l_prefix}/share/opera \
  96. --plugindir=%{l_prefix}/libexec/opera \
  97. --verbose
  98. rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc >/dev/null 2>&1 || true
  99. ) || exit $?
  100. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  101. %files -f files
  102. %clean
  103. rm -rf $RPM_BUILD_ROOT