perl-ssl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ##
  2. ## perl-ssl.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: perl-ssl
  27. Summary: Perl Modules for use with SSL
  28. URL: http://www.cpan.org/
  29. Vendor: Perl Community
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [REL]
  32. Group: Language
  33. License: GPL/Artistic
  34. Version: 20011201
  35. Release: 20020206
  36. # list of sources
  37. Source0: http://www.cpan.org/modules/by-module/Net/Net_SSLeay.pm-1.07.tar.gz
  38. Source1: http://www.cpan.org/modules/by-module/Crypt/Crypt-SSLeay-0.29.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, openssl, gcc
  43. PreReq: OpenPKG, openpkg >= 20020206, perl, openssl
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Various Perl modules for use with SSL/TLS (OpenSSL):
  48. - Net::SSLeay (1.07)
  49. - Crypt::SSLeay (0.29)
  50. %prep
  51. %setup0 -q -c -n %{name}-%{version}
  52. %setup1 -q -T -D -a 1
  53. %build
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib/perl5
  57. perl=%{l_prefix}/bin/perl
  58. for mod in %{SOURCE0} %{SOURCE1}; do
  59. %{l_gzip} -dc $mod | %{l_tar} xf -
  60. dir=`echo "$mod" | sed -e 's;^.*/\([^/]*\)\.tar\.gz$;\1;'`
  61. cd $dir
  62. chmod -R u+rw .
  63. cp Makefile.PL Makefile.PL.orig
  64. sed -e "s:\$^X:'$perl':g" <Makefile.PL.orig >Makefile.PL
  65. arg="PREFIX=$RPM_BUILD_ROOT%{l_prefix} PERL=$perl FULLPERL=$perl"
  66. case $dir in
  67. Net_SSLeay* | Crypt-SSLeay* ) arg="%{l_prefix} $arg" ;;
  68. esac
  69. $perl Makefile.PL $arg </dev/null
  70. %{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl all
  71. %{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl install
  72. cd ..
  73. done
  74. find $RPM_BUILD_ROOT%{l_prefix} -name perllocal.pod -print | xargs rm -f
  75. find $RPM_BUILD_ROOT%{l_prefix} -name .packlist -print | xargs rm -f
  76. find $RPM_BUILD_ROOT%{l_prefix} -type d -depth -print | (xargs rmdir >/dev/null 2>&1 || true)
  77. eval `$perl -V:installarchlib -V:installprivlib -V:installsitearch -V:installsitelib`
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  79. %{l_files_std} \
  80. '%not %dir %{l_prefix}/lib/perl5' \
  81. '%not %dir %{l_prefix}/lib/perl5/*' \
  82. "%not %dir $installarchlib" \
  83. "%not %dir $installprivlib" \
  84. "%not %dir $installsitearch" \
  85. "%not %dir $installsitelib" \
  86. "%not %dir $installarchlib/auto" \
  87. "%not %dir $installprivlib/auto" \
  88. "%not %dir $installsitearch/auto" \
  89. "%not %dir $installsitelib/auto"
  90. %files -f files
  91. %clean
  92. rm -rf $RPM_BUILD_ROOT