perl-addon.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ##
  2. ## perl-addon.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: perl-addon
  26. Summary: Perl Add-on Module Cluster
  27. URL: http://www.cpan.org/
  28. Vendor: Perl Community
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: Language
  32. License: GPL/Artistic
  33. Version: 1.0
  34. Release: %{l_branch}.0
  35. # list of sources
  36. Source0: http://www.cpan.org/modules/by-module/Net/Net_SSLeay.pm-1.07.tar.gz
  37. Source1: http://www.cpan.org/modules/by-module/Crypt/Crypt-SSLeay-0.29.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20011023.0, perl, openssl
  42. PreReq: OpenPKG, openpkg >= 20011023.0, perl, openssl
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Perl Add-on Module Cluster
  47. %prep
  48. %setup0 -q -c -n %{name}-%{version}
  49. %setup1 -q -T -D -a 1
  50. %build
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib/perl5
  54. perl=%{l_prefix}/bin/perl
  55. for mod in %{SOURCE0} %{SOURCE1}; do
  56. %{l_gzip} -dc $mod | %{l_tar} xf -
  57. dir=`echo "$mod" | sed -e 's;^.*/\([^/]*\)\.tar\.gz$;\1;'`
  58. cd $dir
  59. chmod -R u+rw .
  60. cp Makefile.PL Makefile.PL.orig
  61. sed -e "s:\$^X:'$perl':g" <Makefile.PL.orig >Makefile.PL
  62. arg="PREFIX=$RPM_BUILD_ROOT%{l_prefix} PERL=$perl FULLPERL=$perl"
  63. case $dir in
  64. Net_SSLeay* | Crypt-SSLeay* ) arg="%{l_prefix} $arg" ;;
  65. esac
  66. $perl Makefile.PL $arg </dev/null
  67. %{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl all
  68. %{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl install
  69. cd ..
  70. done
  71. find $RPM_BUILD_ROOT%{l_prefix} -name perllocal.pod -print | xargs rm -f
  72. find $RPM_BUILD_ROOT%{l_prefix} -name .packlist -print | xargs rm -f
  73. find $RPM_BUILD_ROOT%{l_prefix} -type d -depth -print | (xargs rmdir >/dev/null 2>&1 || true)
  74. eval `$perl -V:installarchlib -V:installprivlib -V:installsitearch -V:installsitelib`
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  76. %{l_files_std} \
  77. '%not %dir %{l_prefix}/lib/perl5' \
  78. '%not %dir %{l_prefix}/lib/perl5/*' \
  79. "%not %dir $installarchlib" \
  80. "%not %dir $installprivlib" \
  81. "%not %dir $installsitearch" \
  82. "%not %dir $installsitelib" \
  83. "%not %dir $installarchlib/auto" \
  84. "%not %dir $installprivlib/auto" \
  85. "%not %dir $installsitearch/auto" \
  86. "%not %dir $installsitelib/auto"
  87. %files -f files
  88. %clean
  89. rm -rf $RPM_BUILD_ROOT