perl-Net-Server-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. %define pkgname Net-Server
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 2.009
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/R/RH/RHANDOM/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: yasumichi
  14. Summary: Net::Server - Extensible, general Perl server engine
  15. Summary(ja): Net::Server - 拡張可能で一般的な Perl サーバーエンジン
  16. # Dependency
  17. Requires: perl
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. BuildRequires: perl
  20. %description
  21. Net::Server is an extensible, generic Perl server engine. Net::Server
  22. combines the good properties from Net::Daemon (0.34), NetServer::Generic
  23. (1.03), and Net::FTPServer (1.0), and also from various concepts in the
  24. Apache Webserver.
  25. %description -l ja
  26. Net::Server は、拡張可能で一般的な Perl サーバーエンジンです。Net::Server は、
  27. Net::Daemon (0.34)、NetServer::Generic (1.03)、Net::FTPServer (1.0) の良い特
  28. 性を組み合わせています。Apache ウェブサーバーのさまざまなコンセプトも取り入
  29. れています。
  30. %prep
  31. %setup -q -n Net-Server-%{version}
  32. %build
  33. perl Makefile.PL INSTALLDIRS="vendor"
  34. %{__make}
  35. %install
  36. %{__rm} -rf ${RPM_BUILD_ROOT}
  37. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  38. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  39. sed "s@^$RPM_BUILD_ROOT@@g" |
  40. grep -v ^%{_mandir} |
  41. grep -v perllocal.pod |
  42. grep -v "\.packlist" > %{name}.files
  43. if [ "$(cat %{name}.files)X" = "X" ] ; then
  44. echo "ERROR: EMPTY FILE LIST"
  45. exit -1
  46. fi
  47. # remove unnecessary files.
  48. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  49. %{__rm} ${RPM_BUILD_ROOT}%{perl_vendorarch}/auto/Net/Server/.packlist
  50. %clean
  51. %{__rm} -rf ${RPM_BUILD_ROOT}
  52. %files -f %{name}.files
  53. %defattr(-,root,root)
  54. %doc Changes README
  55. %{_mandir}/man1/*
  56. %{_mandir}/man3/*
  57. %changelog
  58. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.009-1
  59. - new upstream release.
  60. - rebuilt with perl-5.26.
  61. * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.008-1
  62. - new upstream release.
  63. * Thu Mar 27 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.007-1
  64. - new upstream release.
  65. * Wed Jan 25 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.99-2
  66. - Add BuildArch (noarch)
  67. * Fri Jan 13 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.99-1
  68. - initial build for Vine Linux