lynx.spec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ##
  2. ## lynx.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 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. %define V_file 2-8-4
  26. %define V_real 2.8.4
  27. # package information
  28. Name: lynx
  29. Summary: Interactive Full-Screen Client for HTTP/HTTPS/FTP Protocols
  30. URL: http://lynx.isc.org/
  31. Vendor: Internet Software Consortium
  32. Packager: The OpenPKG Project
  33. Distribution: OpenPKG [BASE]
  34. Group: Web
  35. License: BSD
  36. Version: %{V_real}
  37. Release: 20021216
  38. # list of sources
  39. Source0: http://lynx.isc.org/release/lynx%{V_real}.tar.bz2
  40. Patch0: http://lynx.isc.org/lynx%{V_real}/patches/lynx%{V_real}rel.1a.patch
  41. Patch1: http://lynx.isc.org/lynx%{V_real}/patches/lynx%{V_real}rel.1b.patch
  42. Patch2: http://lynx.isc.org/lynx%{V_real}/patches/lynx%{V_real}rel.1c.patch
  43. Patch3: http://lynx.isc.org/lynx%{V_real}/patches/lynx%{V_real}rel.1d.patch
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20020206, slang, zlib, openssl
  48. PreReq: OpenPKG, openpkg >= 20020206
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Lynx is a text browser for the World Wide Web.
  53. %prep
  54. %setup -q -n %{name}%{V_file}
  55. %patch0 -p1
  56. %patch1 -p1
  57. %patch2 -p1
  58. %patch3 -p1
  59. %build
  60. CC="%{l_cc}" \
  61. CFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
  62. CPPFLAGS="-I%{l_prefix}/include" \
  63. LDFLAGS="-L%{l_prefix}/lib" \
  64. ./configure \
  65. --prefix=%{l_prefix} \
  66. --sysconfdir=%{l_prefix}/etc/lynx \
  67. --libdir=%{l_prefix}/etc/lynx \
  68. --disable-trace \
  69. --disable-nls \
  70. --with-screen=slang \
  71. --with-ssl=%{l_prefix} \
  72. --enable-default-colors \
  73. --enable-prettysrc \
  74. --enable-read-eta \
  75. --enable-scrollbar \
  76. --with-zlib
  77. %{l_make} %{l_mflags -O}
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  81. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
  82. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  83. %files -f files
  84. %clean
  85. rm -rf $RPM_BUILD_ROOT