perl-Net_SSLeay-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. %define real_name Net-SSLeay
  2. Summary: Perl module for using OpenSSL via Network
  3. Summary(ja): OpenSSL を Network にて用いる為の perl モジュール
  4. Name: perl-Net_SSLeay
  5. Version: 1.35
  6. Release: 1%{?_dist_release}
  7. License: BSDish
  8. Group: Development/Libraries
  9. Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Net/%{real_name}-%{version}.tar.gz
  10. Source1: COPYRIGHT.SSLeay-0.9.0
  11. BuildPreReq: perl, openssl >= 0.9.6b
  12. Requires: perl, openssl >= 0.9.6b
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. %description
  15. Perl module for using OpenSSL via Network, Net::SSLeay.
  16. %description -l ja
  17. OpenSSL を Network にて用いる為の perl モジュール, Net::SSLeay
  18. %prep
  19. %setup -q -n %{real_name}-%{version}
  20. cp -p %{SOURCE1} .
  21. # openssl_path is /usr here, therefore don't -I/usr/include and
  22. # especially don't (badly) hardcode standard library search path
  23. # /usr/lib
  24. if [[ "%{_prefix}" = "/usr" ]]; then
  25. perl -pi -e "s@-[LI]\\\$openssl_path[^\s\"]*@@g" Makefile.PL INSTALLDIRS=vendor
  26. fi
  27. %build
  28. # note the %{_prefix} which must passed to Makefile.PL, weird but necessary :-(
  29. perl Makefile.PL %{_prefix} INSTALLDIRS=vendor
  30. make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{_prefix}
  31. perl -p -i -e 's|/usr/local/bin|/usr/bin|g;' *.pm examples/*
  32. %install
  33. rm -rf %{buildroot}
  34. #mkdir -p %{buildroot}%{perl_archlib}
  35. #make install PREFIX=%{buildroot}%{_prefix} \
  36. # SITEPREFIX=%{buildroot}%{_prefix} \
  37. # VENDORPREFIX=%{buildroot}%{_prefix} \
  38. # INSTALLPRIVLIB=%{buildroot}%{perl_privlib} \
  39. # INSTALLSITELIB=%{buildroot}%{perl_sitelib} \
  40. # INSTALLVENDORLIB=%{buildroot}%{perl_vendorlib} \
  41. # INSTALLARCHLIB=%{buildroot}%{perl_archlib} \
  42. # INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \
  43. # INSTALLVENDORARCH=%{buildroot}%{perl_vendorarch} \
  44. # INSTALLBIN=%{buildroot}%{_bindir} \
  45. # INSTALLSITEBIN=%{buildroot}%{_bindir} \
  46. # INSTALLVENDORBIN=%{buildroot}%{_bindir} \
  47. # INSTALLSCRIPT=%{buildroot}%{_bindir} \
  48. # INSTALLMAN1DIR=%{buildroot}%{_mandir}/man1 \
  49. # INSTALLSITEMAN1DIR=%{buildroot}%{_mandir}/man1 \
  50. # INSTALLVENDORMAN1DIR=%{buildroot}%{_mandir}/man1 \
  51. # INSTALLMAN3DIR=%{buildroot}%{_mandir}/man3 \
  52. # INSTALLSITEMAN3DIR=%{buildroot}%{_mandir}/man3 \
  53. # INSTALLVENDORMAN3DIR=%{buildroot}%{_mandir}/man3
  54. make install DESTDIR=%{buildroot}
  55. sed -e "s@^%{buildroot}@@g" < %{buildroot}/%{perl_vendorarch}/auto/Net/SSLeay/.packlist > .packlist
  56. mv -f .packlist %{buildroot}/%{perl_vendorarch}/auto/Net/SSLeay/.packlist
  57. #if [ -f %{buildroot}%{perl_archlib}/perllocal.pod ] ; then
  58. # mv %{buildroot}%{perl_archlib}/perllocal.pod .
  59. #else
  60. # touch perllocal.pod
  61. #fi
  62. perllocalfile=`find %{buildroot} -name perllocal.pod`
  63. echo "mv $perllocalfile ."
  64. mv $perllocalfile .
  65. {
  66. find %{buildroot} \
  67. -type f -o -type l | sed -e "s@^%{buildroot}@@g" -e 's@^\(.*/man/.*\)$@\1*@g'
  68. } > %{name}.files
  69. %clean
  70. rm -rf %{buildroot}
  71. #check
  72. #make test
  73. %files -f %{name}.files
  74. %defattr(-,root,root)
  75. %doc Changes Credits QuickRef README COPYRIGHT.SSLeay-0.9.0 perllocal.pod
  76. #%dir %{perl_vendorarch}/auto/Net
  77. #%dir %{perl_vendorarch}/auto/Net/SSLeay
  78. #%dir %{perl_vendorarch}/Net
  79. #%dir %{perl_vendorarch}/Net/SSLeay
  80. %changelog
  81. * Wed Jul 8 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.35-1
  82. - new upstream release
  83. * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.30-2
  84. - spec in utf-8
  85. * Tue Apr 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.30-1
  86. - rebuilt with perl-5.10.0
  87. - applied new versioning policy
  88. * Sun Jun 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.30-0vl2
  89. - rebuilt with openssl-0.9.8e
  90. * Mon Dec 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.30-0vl1
  91. - updated to 1.30
  92. * Sat Sep 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.25-0vl4
  93. - installed files to vendor_perl
  94. - changed Group to Development/Libraries
  95. * Mon Nov 29 2004 IWAI, Masaharu <iwai@alib.jp> 1.25-0vl3
  96. - build on perl-5.8.6-0vl1
  97. * Wed Dec 10 2003 IWAI, Masaharu <iwai@alib.jp> 1.25-0vl2
  98. - build with perl-5.8.2
  99. - add %%{perl_sitearch}/{Net,Net/SSLeay} directories in %%files
  100. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.25-0vl1
  101. - new upstream version
  102. - built on perl-5.8.1
  103. * Thu May 08 2003 Tomoya TAKA <taka@vinelinux.org> 1.22-0vl5
  104. - fixed install man dir, again
  105. * Tue May 06 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.22-0vl4
  106. - fixed install dir of perllocal.pod
  107. * Thu May 05 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.22-0vl3
  108. - fixed install man dir
  109. * Thu May 01 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.22-0vl2
  110. - comment out "make test"
  111. * Thu May 01 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.22-0vl1
  112. - updated to 1.22
  113. * Fri Feb 15 2002 Toru Sagami <sagami@vinelinux.org> 1.13-0vl1
  114. - updated to 1.13
  115. - BuildPreReq/Requires: perl, openssl-0.9.6b
  116. - rewrite a better spec with License/Group
  117. * Mon Jul 16 2001 <sagami@vinelinux.org>
  118. - 1.07-0vl3: rebuilt with openssl-0.9.6b
  119. - erase unneeeded files from %%doc
  120. - use _prefix, not prefix
  121. * Thu Jul 05 2001 <sagami@vinelinux.org>
  122. - 1.07-0vl2: built with perl-5.6.1
  123. * Thu Jun 7 2001 Yasuhide OMORI <omori@m-t.com>
  124. - 1.07
  125. * Fri Sep 1 2000 Yoshishiro Kajiki <kajiki@ylug.org>
  126. - first version of rpm.