perl-ssl.spec 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ##
  2. ## perl-ssl.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. # versions of individual parts
  26. %define V_net_ssleay 1.23
  27. %define V_crypt_ssleay 0.51
  28. %define V_io_socket_ssl 0.901
  29. # package information
  30. Name: perl-ssl
  31. Summary: Perl Modules for use with SSL
  32. URL: http://www.cpan.org/
  33. Vendor: Perl Community
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [BASE]
  36. Group: Language
  37. License: GPL/Artistic
  38. Version: 20030614
  39. Release: 20030614
  40. # list of sources
  41. Source0: http://www.cpan.org/modules/by-module/Net/Net_SSLeay.pm-%{V_net_ssleay}.tar.gz
  42. Source1: http://www.cpan.org/modules/by-module/Crypt/Crypt-SSLeay-%{V_crypt_ssleay}.tar.gz
  43. Source2: http://www.cpan.org/modules/by-module/IO/IO-Socket-SSL-%{V_io_socket_ssl}.tar.gz
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20021230, perl, perl-openpkg, openssl
  48. PreReq: OpenPKG, openpkg >= 20021230, perl, perl-openpkg, openssl
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Various Perl modules for use with SSL/TLS (OpenSSL):
  53. - Net::SSLeay (%{V_net_ssleay})
  54. - Crypt::SSLeay (%{V_crypt_ssleay})
  55. - IO::Socket::SSL (%{V_io_socket_ssl})
  56. %prep
  57. %setup0 -q -c
  58. %setup1 -q -T -D -a 1
  59. %setup2 -q -T -D -a 2
  60. %build
  61. %install
  62. # perform common prolog operations
  63. %{l_prefix}/bin/perl-openpkg prolog
  64. # special module preparations
  65. ( cd Crypt-SSLeay-%{V_crypt_ssleay}
  66. %{l_shtool} subst \
  67. -e 's;^\(my @POSSIBLE_SSL_DIRS = qw(\)[^)]*\().*\)$;\1%{l_prefix}\2;' \
  68. Makefile.PL )
  69. # build and install individual modules
  70. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0} %{l_prefix}
  71. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1} %{l_prefix}
  72. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  73. # perform common epilog operations
  74. %{l_prefix}/bin/perl-openpkg epilog
  75. %files -f files
  76. %clean
  77. rm -rf $RPM_BUILD_ROOT