perl-Path-Extended-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. %define pkgname Path-Extended
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.22
  5. Release: 1%{?_dist_release}
  6. Summary: yet another Path class
  7. #Summary(ja): ここに日本語で概要を記述してください
  8. License: Artistic or GPL
  9. Group: Development/Libraries
  10. URL: http://search.cpan.org/~ishigaki/Path-Extended/
  11. Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.06
  16. BuildRequires: perl(Log::Dump)
  17. BuildRequires: perl(Test::Classy)
  18. BuildRequires: perl(Test::More) >= 0.98
  19. BuildRequires: perl(Test::UseAllModules) >= 0.09
  20. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. Packager: yasumichi
  24. %description
  25. This is yet another file/directory handler that does a bit more than
  26. Path::Class for some parts, and a bit less for other parts. One of the main
  27. difference is Path::Extended always tries to use forward slashes when
  28. possible, ie. even when you're on the MS Windows, so that you don't need to
  29. care about escaping paths that annoys you from time to time when you want to
  30. apply regexen to a path, especially in file tests that use 'like' or
  31. 'compare'.
  32. #%%description -l ja
  33. #ここに日本語で詳細を記述してください。
  34. %prep
  35. %setup -q -n Path-Extended-%{version}
  36. %build
  37. perl Makefile.PL INSTALLDIRS=vendor
  38. make %{?_smp_mflags}
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make pure_install DESTDIR=$RPM_BUILD_ROOT
  42. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  43. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null
  44. %{_fixperms} $RPM_BUILD_ROOT
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %check
  48. make test
  49. %files
  50. %defattr(-,root,root)
  51. %doc Changes README
  52. %dir %{perl_vendorlib}/Path/Extended
  53. %dir %{perl_vendorlib}/Path/Extended/Class
  54. %{perl_vendorlib}/Path/*.pm
  55. %{perl_vendorlib}/Path/Extended/*.pm
  56. %{perl_vendorlib}/Path/Extended/Class/*.pm
  57. %{_mandir}/*/*
  58. %changelog
  59. * Tue Dec 9 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.03-1
  60. - updated to 0.22
  61. - built with perl 5.16.3
  62. - added BR: perl(ExtUtils::MakeMaker::CPANfile), perl(Log::Dump)
  63. - changed to noarch package
  64. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.19-1
  65. - initial build for Vine Linux