opera.spec 4.2 KB

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