mozilla.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. ##
  2. ## mozilla.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2001 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-Browser
  28. URL: http://www.mozilla.org/
  29. Vendor: Netscape
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EXP]
  32. Group: Web
  33. License: MPL
  34. Version: 0.9.6
  35. Release: 20011201
  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. Patch0: mozilla.patch.freebsd
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20011126.0, make, gcc, glib, gtk, orbit
  44. PreReq: OpenPKG, openpkg >= 20011126.0, make, gcc, glib, gtk, orbit
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. Mozilla is a full-featured open-source web browser derived
  49. from Netscape Communicator, designed for standards compliance,
  50. performance and portability.
  51. %prep
  52. %setup -q -n mozilla
  53. %patch -p0
  54. %build
  55. PATH="%{l_prefix}/bin:$PATH"; export PATH
  56. LD_LIBRARY_PATH="%{l_prefix}/lib:/usr/lib:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH
  57. CC="%{l_cc}" \
  58. CXX="%{l_cxx}" \
  59. CFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
  60. CXXFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
  61. LDFLAGS="-L%{l_prefix}/lib" \
  62. GLIB_CONFIG="%{l_prefix}/bin/glib-config" \
  63. GTK_CONFIG="%{l_prefix}/bin/gtk-config" \
  64. LIBIDL_CONFIG="%{l_prefix}/bin/libIDL-config" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --with-jpeg=%{l_prefix} \
  68. --with-png=%{l_prefix} \
  69. --with-zlib=%{l_prefix} \
  70. --enable-toolkit=gtk \
  71. --with-gtk \
  72. --with-gtk-prefix=%{l_prefix} \
  73. --with-glib-prefix=%{l_prefix} \
  74. --with-libIDL-prefix=%{l_prefix} \
  75. --enable-shared \
  76. --enable-double-buffer \
  77. --enable-x11-shm \
  78. --disable-dtd-debug \
  79. --disable-cpp-exceptions \
  80. --disable-cpp-rtti \
  81. --disable-md \
  82. --disable-pedantic \
  83. --disable-xterm-updates \
  84. --enable-editor \
  85. --enable-mailnews \
  86. --enable-crypto \
  87. --disable-debug \
  88. --disable-tests \
  89. --with-pthreads
  90. %{l_make} %{l_mflags}
  91. ( cd dist/bin
  92. LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH
  93. MOZILLA_FIVE_HOME=.; export MOZILLA_FIVE_HOME
  94. ./regxpcom
  95. echo "skin,install,select,classic/1.0" >>chrome/installed-chrome.txt
  96. echo "locale,install,select,en-US" >>chrome/installed-chrome.txt
  97. ./regchrome
  98. find . -type d -depth -print | xargs rmdir >/dev/null 2>&1 || true
  99. )
  100. %install
  101. rm -rf $RPM_BUILD_ROOT
  102. %{l_shtool} mkdir -f -p -m 755 \
  103. $RPM_BUILD_ROOT%{l_prefix}/bin \
  104. $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla
  105. (cd dist/bin && %{l_tar} -chf - . ) |\
  106. (cd $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla && %{l_tar} -xf -)
  107. strip $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/* >/dev/null 2>&1 || true
  108. %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
  109. %{SOURCE mozilla.sh} \
  110. $RPM_BUILD_ROOT%{l_prefix}/bin/mozilla
  111. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  112. %files -f files
  113. %clean
  114. rm -rf $RPM_BUILD_ROOT