perl-Data-Dump-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. %define pkgname Data-Dump
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.20
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. Summary: Pretty printing of data structures
  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 module provide a few functions that traverse their argument and
  21. produces a string as its result. The string contains Perl code that, when
  22. evaled, produces a deep copy of the original arguments.
  23. #%%description -l ja
  24. #ここに日本語で詳細を記述してください。
  25. %prep
  26. %setup -q -n Data-Dump-1.20
  27. %build
  28. perl Makefile.PL
  29. %{__make}
  30. %install
  31. %{__rm} -rf ${RPM_BUILD_ROOT}
  32. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  33. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  34. sed "s@^$RPM_BUILD_ROOT@@g" |
  35. grep -v ^%{_mandir} |
  36. grep -v perllocal.pod |
  37. grep -v "\.packlist" > %{name}.files
  38. if [ "$(cat %{name}.files)X" = "X" ] ; then
  39. echo "ERROR: EMPTY FILE LIST"
  40. exit -1
  41. fi
  42. # remove unnecessary files.
  43. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  44. %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Data/Dump/.packlist
  45. %clean
  46. %{__rm} -rf ${RPM_BUILD_ROOT}
  47. %files -f %{name}.files
  48. %defattr(-,root,root)
  49. %doc Changes README
  50. %dir %{perl_sitelib}/Data/Dump
  51. %{_mandir}/*/*
  52. %changelog
  53. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.20-1
  54. - initial build for Vine Linux