perl-Path-Extended-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. %define pkgname Path-Extended
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.19
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. Summary: yet another Path class
  14. #Summary(ja): ここに日本語で概要を記述してください
  15. # Dependency
  16. Requires: perl
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. BuildRequires: perl
  19. %description
  20. This is yet another file/directory handler that does a bit more than
  21. Path::Class for some parts, and a bit less for other parts. One of the main
  22. difference is Path::Extended always tries to use forward slashes when
  23. possible, ie. even when you're on the MS Windows, so that you don't need to
  24. care about escaping paths that annoys you from time to time when you want to
  25. apply regexen to a path, especially in file tests that use 'like' or
  26. 'compare'.
  27. #%%description -l ja
  28. #ここに日本語で詳細を記述してください。
  29. %prep
  30. %setup -q -n Path-Extended-0.19
  31. %build
  32. perl Makefile.PL
  33. %{__make}
  34. %install
  35. %{__rm} -rf ${RPM_BUILD_ROOT}
  36. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  37. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  38. sed "s@^$RPM_BUILD_ROOT@@g" |
  39. grep -v ^%{_mandir} |
  40. grep -v perllocal.pod |
  41. grep -v "\.packlist" > %{name}.files
  42. if [ "$(cat %{name}.files)X" = "X" ] ; then
  43. echo "ERROR: EMPTY FILE LIST"
  44. exit -1
  45. fi
  46. # remove unnecessary files.
  47. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  48. %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Path/Extended/.packlist
  49. %clean
  50. %{__rm} -rf ${RPM_BUILD_ROOT}
  51. %files -f %{name}.files
  52. %defattr(-,root,root)
  53. %doc Changes README
  54. %dir %{perl_sitelib}/Path/Extended
  55. %dir %{perl_sitelib}/Path/Extended/Class
  56. %{_mandir}/*/*
  57. %changelog
  58. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.19-1
  59. - initial build for Vine Linux