perl-ssl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ##
  2. ## perl-ssl.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2001 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: 1.0
  35. Release: 20011201
  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 >= 20011126.0, perl, openssl, gcc
  43. PreReq: OpenPKG, openpkg >= 20011126.0, perl, openssl
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Perl Modules for use with SSL.
  48. %prep
  49. %setup0 -q -c -n %{name}-%{version}
  50. %setup1 -q -T -D -a 1
  51. %build
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib/perl5
  55. perl=%{l_prefix}/bin/perl
  56. for mod in %{SOURCE0} %{SOURCE1}; do
  57. %{l_gzip} -dc $mod | %{l_tar} xf -
  58. dir=`echo "$mod" | sed -e 's;^.*/\([^/]*\)\.tar\.gz$;\1;'`
  59. cd $dir
  60. chmod -R u+rw .
  61. cp Makefile.PL Makefile.PL.orig
  62. sed -e "s:\$^X:'$perl':g" <Makefile.PL.orig >Makefile.PL
  63. arg="PREFIX=$RPM_BUILD_ROOT%{l_prefix} PERL=$perl FULLPERL=$perl"
  64. case $dir in
  65. Net_SSLeay* | Crypt-SSLeay* ) arg="%{l_prefix} $arg" ;;
  66. esac
  67. $perl Makefile.PL $arg </dev/null
  68. %{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl all
  69. %{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl install
  70. cd ..
  71. done
  72. find $RPM_BUILD_ROOT%{l_prefix} -name perllocal.pod -print | xargs rm -f
  73. find $RPM_BUILD_ROOT%{l_prefix} -name .packlist -print | xargs rm -f
  74. find $RPM_BUILD_ROOT%{l_prefix} -type d -depth -print | (xargs rmdir >/dev/null 2>&1 || true)
  75. eval `$perl -V:installarchlib -V:installprivlib -V:installsitearch -V:installsitelib`
  76. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  77. %{l_files_std} \
  78. '%not %dir %{l_prefix}/lib/perl5' \
  79. '%not %dir %{l_prefix}/lib/perl5/*' \
  80. "%not %dir $installarchlib" \
  81. "%not %dir $installprivlib" \
  82. "%not %dir $installsitearch" \
  83. "%not %dir $installsitelib" \
  84. "%not %dir $installarchlib/auto" \
  85. "%not %dir $installprivlib/auto" \
  86. "%not %dir $installsitearch/auto" \
  87. "%not %dir $installsitelib/auto"
  88. %files -f files
  89. %clean
  90. rm -rf $RPM_BUILD_ROOT