mozilla.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 [EVAL]
  32. Group: Web
  33. License: MPL
  34. Version: 1.2.1
  35. Release: 20021214
  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. Source2: mozilla.pod
  40. Patch0: mozilla.patch
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20021204, X11, glib, gtk, orbit, infozip, openssl, freetype, make, gcc, perl
  45. PreReq: OpenPKG, openpkg >= 20021204, X11, glib, gtk, orbit, infozip, openssl, freetype, xsel
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Mozilla is a full-featured open-source web browser derived
  50. from Netscape Communicator, designed for standards compliance,
  51. performance and portability.
  52. %prep
  53. %setup -q -n mozilla
  54. %patch -p0
  55. %build
  56. CC="%{l_cc}" \
  57. CXX="%{l_cxx}" \
  58. CFLAGS="%{l_cflags} %{l_cppflags}" \
  59. CXXFLAGS="%{l_cxxflags} -Wno-deprecated %{l_cppflags}" \
  60. CPPFLAGS="%{l_cppflags}" \
  61. LDFLAGS="%{l_ldflags}" \
  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. --libdir=%{l_prefix}/lib/mozilla \
  68. --includedir=%{l_prefix}/include/mozilla \
  69. --with-x \
  70. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  71. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  72. --enable-toolkit-gtk \
  73. --enable-default-toolkit=gtk \
  74. --with-gtk-prefix=%{l_prefix} \
  75. --with-glib-prefix=%{l_prefix} \
  76. --with-libIDL-prefix=%{l_prefix} \
  77. --with-system-jpeg=%{l_prefix} \
  78. --with-system-png=%{l_prefix} \
  79. --with-system-zlib=%{l_prefix} \
  80. --with-ft-prefix=%{l_prefix} \
  81. --enable-jsd \
  82. --enable-crypto \
  83. --enable-chrome-format=jar \
  84. --enable-static \
  85. --enable-strip \
  86. --disable-xinerama \
  87. --disable-shared \
  88. --disable-tests \
  89. --disable-mailnews \
  90. --disable-composer \
  91. --disable-svg \
  92. --disable-ldap \
  93. --disable-freetype2 \
  94. --disable-accessibility \
  95. --disable-debug \
  96. --disable-dtd-debug \
  97. --disable-pedantic \
  98. --disable-auto-deps \
  99. --disable-md \
  100. --disable-cpp-exceptions \
  101. --disable-cpp-rtti \
  102. --disable-optimize \
  103. --disable-xterm-updates \
  104. --with-pthreads
  105. %{l_make} %{l_mflags}
  106. ( cd dist/bin
  107. LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH
  108. MOZILLA_FIVE_HOME=.; export MOZILLA_FIVE_HOME
  109. ./regxpcom || true
  110. ./regchrome || true
  111. touch chrome/user-skins.rdf chrome/user-locales.rdf
  112. #find . -type d -depth -print | xargs rmdir >/dev/null 2>&1 || true
  113. %{l_shtool} subst \
  114. -e "s;`pwd`;%{l_prefix}/lib/mozilla;" \
  115. components/xpti.dat components/compreg.dat
  116. mkdir .autoreg
  117. )
  118. %{l_prefix}/bin/pod2man \
  119. --section=1 --quotes=none \
  120. --release="Mozilla %{version}" --center="%{packager}" \
  121. %{SOURCE mozilla.pod} >mozilla.1
  122. %install
  123. rm -rf $RPM_BUILD_ROOT
  124. %{l_shtool} mkdir -f -p -m 755 \
  125. $RPM_BUILD_ROOT%{l_prefix}/bin \
  126. $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla \
  127. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  128. (cd dist/bin && %{l_tar} -chf - . ) |\
  129. (cd $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla && %{l_tar} -xf -)
  130. %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
  131. %{SOURCE mozilla.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/mozilla
  132. %{l_shtool} install -c -m 644 \
  133. mozilla.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  134. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  135. %files -f files
  136. %clean
  137. rm -rf $RPM_BUILD_ROOT