perl-Class-Data-Inheritable-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. %define pkgname Class-Data-Inheritable
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.08
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. Summary: Inheritable, overridable class data
  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. Class::Data::Inheritable is for creating accessor/mutators to class data.
  21. That is, if you want to store something about your class as a whole (instead
  22. of about a single object). This data is then inherited by your subclasses
  23. and can be overriden.
  24. #%%description -l ja
  25. #ここに日本語で詳細を記述してください。
  26. %prep
  27. %setup -q -n Class-Data-Inheritable-0.08
  28. %build
  29. perl Makefile.PL
  30. %{__make}
  31. %install
  32. %{__rm} -rf ${RPM_BUILD_ROOT}
  33. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  34. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  35. sed "s@^$RPM_BUILD_ROOT@@g" |
  36. grep -v ^%{_mandir} |
  37. grep -v perllocal.pod |
  38. grep -v "\.packlist" > %{name}.files
  39. if [ "$(cat %{name}.files)X" = "X" ] ; then
  40. echo "ERROR: EMPTY FILE LIST"
  41. exit -1
  42. fi
  43. # remove unnecessary files.
  44. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  45. %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Class/Data/Inheritable/.packlist
  46. %clean
  47. %{__rm} -rf ${RPM_BUILD_ROOT}
  48. %files -f %{name}.files
  49. %defattr(-,root,root)
  50. %doc Changes README
  51. %{_mandir}/*/*
  52. %changelog
  53. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.08-1
  54. - initial build for Vine Linux