openssl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ##
  2. ## openssl.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. # package information
  26. Name: openssl
  27. Summary: Cryptography and SSL/TLS Toolkit
  28. URL: http://www.openssl.org/
  29. Vendor: The OpenSSL Project
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [CORE]
  32. Group: Cryptography
  33. License: BSD-style
  34. Version: 0.9.7a
  35. Release: 20030320
  36. # list of sources
  37. Source0: ftp://ftp.openssl.org/source/openssl-%{version}.tar.gz
  38. Patch0: openssl.patch
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20021230, perl, make, gcc
  43. PreReq: OpenPKG, openpkg >= 20021230
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. The OpenSSL Project is a collaborative effort to develop a robust,
  48. commercial-grade, full-featured, and Open Source toolkit implementing the
  49. Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
  50. protocols with full-strength cryptography world-wide. The project is
  51. managed by a worldwide community of volunteers that use the Internet to
  52. communicate, plan, and develop the OpenSSL tookit and its related
  53. documentation.
  54. %prep
  55. %setup -q
  56. %patch -p0
  57. %{l_shtool} subst -e 's;-m486;-march=i486;g' Configure
  58. %{l_shtool} subst -e 's;test "$OSTYPE" = msdosdjgpp;true;' util/point.sh
  59. %build
  60. %{l_prefix}/bin/perl util/perlpath.pl %{l_prefix}/bin/perl
  61. PERL=%{l_prefix}/bin/perl \
  62. ./config \
  63. --prefix=%{l_prefix} \
  64. --openssldir=%{l_prefix}/etc/openssl \
  65. no-idea no-threads
  66. %{l_make} %{l_mflags}
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %{l_make} %{l_mflags} install INSTALL_PREFIX=$RPM_BUILD_ROOT
  70. strip $RPM_BUILD_ROOT%{l_prefix}/bin/openssl >/dev/null 2>&1 || true
  71. ( cd $RPM_BUILD_ROOT%{l_prefix}
  72. rm -f bin/c_rehash
  73. rm -rf etc/openssl/private
  74. rm -rf etc/openssl/certs
  75. rm -rf etc/openssl/misc
  76. rm -rf etc/openssl/lib
  77. mv etc/openssl/man man
  78. cd man
  79. for dir in man[1-9]; do
  80. for file in `cd $dir; echo *`; do
  81. mv $dir/$file $dir/openssl_$file
  82. done
  83. done )
  84. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  85. %{l_files_std} \
  86. '%config %{l_prefix}/etc/openssl/openssl.cnf' \
  87. '%not %dir %{l_prefix}/lib/pkgconfig'
  88. %files -f files
  89. %clean
  90. rm -rf $RPM_BUILD_ROOT