mozilla.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. ##
  2. ## mozilla.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: mozilla
  27. Summary: Graphical Web/Mail/News/Chat Frontend
  28. URL: http://www.mozilla.org/
  29. Vendor: Mozilla
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [BRK]
  32. Group: Web
  33. License: MPL
  34. Version: 0.9.9
  35. Release: 20020312
  36. # list of sources
  37. Source0: ftp://ftp.mozilla.org/pub/mozilla/releases/mozilla%{version}/src/mozilla-source-%{version}.tar.bz2
  38. Source1: mozilla.sh
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20020206, X11, make, gcc, glib, gtk, orbit
  43. PreReq: OpenPKG, openpkg >= 20020206, X11, make, gcc, glib, gtk, orbit
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Mozilla is a full-featured open-source web browser derived
  48. from Netscape Communicator, designed for standards compliance,
  49. performance and portability.
  50. %prep
  51. %setup -q -n mozilla
  52. %build
  53. PATH="%{l_prefix}/bin:$PATH"; export PATH
  54. LD_LIBRARY_PATH="%{l_prefix}/lib:/usr/lib:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH
  55. CC="%{l_cc}" \
  56. CXX="%{l_cxx}" \
  57. CFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
  58. CXXFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
  59. LDFLAGS="-L%{l_prefix}/lib" \
  60. GLIB_CONFIG="%{l_prefix}/bin/glib-config" \
  61. GTK_CONFIG="%{l_prefix}/bin/gtk-config" \
  62. LIBIDL_CONFIG="%{l_prefix}/bin/libIDL-config" \
  63. ./configure \
  64. --prefix=%{l_prefix} \
  65. --with-jpeg=%{l_prefix} \
  66. --with-png=%{l_prefix} \
  67. --with-zlib=%{l_prefix} \
  68. --enable-toolkit=gtk \
  69. --with-x \
  70. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  71. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  72. --with-gtk \
  73. --with-gtk-prefix=%{l_prefix} \
  74. --with-glib-prefix=%{l_prefix} \
  75. --with-libIDL-prefix=%{l_prefix} \
  76. --enable-shared \
  77. --enable-double-buffer \
  78. --enable-x11-shm \
  79. --disable-dtd-debug \
  80. --disable-cpp-exceptions \
  81. --disable-cpp-rtti \
  82. --disable-md \
  83. --disable-pedantic \
  84. --disable-xterm-updates \
  85. --enable-editor \
  86. --enable-mailnews \
  87. --enable-crypto \
  88. --disable-ldap \
  89. --disable-debug \
  90. --disable-tests \
  91. --with-pthreads
  92. %{l_make} %{l_mflags}
  93. ( cd dist/bin
  94. LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH
  95. MOZILLA_FIVE_HOME=.; export MOZILLA_FIVE_HOME
  96. ./regxpcom
  97. echo "skin,install,select,classic/1.0" >>chrome/installed-chrome.txt
  98. echo "locale,install,select,en-US" >>chrome/installed-chrome.txt
  99. ./regchrome
  100. find . -type d -depth -print | xargs rmdir >/dev/null 2>&1 || true
  101. )
  102. %install
  103. rm -rf $RPM_BUILD_ROOT
  104. %{l_shtool} mkdir -f -p -m 755 \
  105. $RPM_BUILD_ROOT%{l_prefix}/bin \
  106. $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla
  107. (cd dist/bin && %{l_tar} -chf - . ) |\
  108. (cd $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla && %{l_tar} -xf -)
  109. strip $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/* >/dev/null 2>&1 || true
  110. %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
  111. %{SOURCE mozilla.sh} \
  112. $RPM_BUILD_ROOT%{l_prefix}/bin/mozilla
  113. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  114. %files -f files
  115. %clean
  116. rm -rf $RPM_BUILD_ROOT