perl-Net-SSLeay-vl.spec 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. %define pkgname Net-SSLeay
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.42
  5. Release: 1%{?_dist_release}
  6. # COPYING などを参照して License を修正してください。
  7. License: Artistic or GPL
  8. # /usr/share/doc/rpm-4.9.1.2/GROUPS_for_vine.txt を参照して Group を修正してください。
  9. Group: Development/Libraries
  10. Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/%{pkgname}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. Packager: yasumichi
  15. Summary: Net::SSLeay - Perl extension for using OpenSSL
  16. Summary(ja): Net::SSLeay - OpenSSL を利用するための Perl 拡張
  17. # Dependency
  18. Requires: perl
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. BuildRequires: perl
  21. BuildRequires: openssl-devel
  22. BuildRequires: zlib-devel
  23. %description
  24. This module offers some high level convenience functions for accessing web
  25. pages on SSL servers (for symmetry, the same API is offered for accessing
  26. http servers, too), an sslcat() function for writing your own clients, and
  27. finally access to the SSL api of the SSLeay/OpenSSL package so you can write
  28. servers or clients for more complicated applications.
  29. %description -l ja
  30. このモジュールは、SSL サーバー上の web ページに接続するための高レベルで便利
  31. な関数を提供します。(調和のため、http サーバーに接続するのも同じ API を提供
  32. します。) あなたのクライアントで sslcat() 関数を使い、SSLay/OpenSSL パッケー
  33. ジの SSL API にアクセスすることでより複雑なアプリケーションでのためサーバーや
  34. クライアントを記述することができます。
  35. %prep
  36. %setup -q -n Net-SSLeay-1.42
  37. %build
  38. perl Makefile.PL << EOI
  39. n
  40. EOI
  41. %{__make}
  42. %install
  43. %{__rm} -rf ${RPM_BUILD_ROOT}
  44. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  45. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  46. sed "s@^$RPM_BUILD_ROOT@@g" |
  47. grep -v ^%{_mandir} |
  48. grep -v perllocal.pod |
  49. grep -v "\.packlist" > %{name}.files
  50. if [ "$(cat %{name}.files)X" = "X" ] ; then
  51. echo "ERROR: EMPTY FILE LIST"
  52. exit -1
  53. fi
  54. # remove unnecessary files.
  55. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  56. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  57. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  58. %clean
  59. %{__rm} -rf ${RPM_BUILD_ROOT}
  60. %files -f %{name}.files
  61. %defattr(-,root,root)
  62. %doc Changes README TODO
  63. %changelog
  64. * Sat Feb 25 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.42-1
  65. - initial build for Vine Linux