perl-Time-Object-vl.spec 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Summary: Time-Object module for perl
  2. Name: perl-Time-Object
  3. Version: 1.00
  4. Release: 0vl1
  5. Copyright: distributable
  6. Group: Development/Languages
  7. Source0: http://www.cpan.org/authors/id/M/MS/MSERGEANT/Time-Object-%{version}.tar.gz
  8. Url: http://search.cpan.org/search?dist=Time-Object
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: perl >= 5.004
  11. Requires: perl >= 5.004
  12. %description
  13. Time-Object module for perl
  14. %prep
  15. %setup -q -n Time-Object-%{version}
  16. %build
  17. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
  18. make
  19. %clean
  20. rm -rf $RPM_BUILD_ROOT
  21. %install
  22. rm -rf $RPM_BUILD_ROOT
  23. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  24. make PREFIX=$RPM_BUILD_ROOT%{_prefix} install
  25. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  26. sed "s@^$RPM_BUILD_ROOT@@g" |
  27. grep -v ^%{_mandir} |
  28. grep -v perllocal.pod |
  29. grep -v "\.packlist" > %{name}.files
  30. if [ "$(cat %{name}.files)X" = "X" ] ; then
  31. echo "ERROR: EMPTY FILE LIST"
  32. exit -1
  33. fi
  34. %files -f %{name}.files
  35. %defattr(-,root,root)
  36. %doc README
  37. %dir %{perl_sitearch}/Time
  38. %dir %{perl_sitearch}/auto/Time
  39. %dir %{perl_sitearch}/auto/Time/Object
  40. %{_mandir}/*/*
  41. %changelog
  42. * Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.00-0vl1
  43. - first build for Vine Linux