perl-Time-modules-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Summary: Time-modules module for Perl
  2. Name: perl-Time-modules
  3. Version: 2006.0814
  4. Release: 1%{?_dist_release}
  5. License: Distributable
  6. Group: Development/Libraries
  7. Source0: Time-modules-%{version}.tar.gz
  8. Url: http://www.cpan.org/dist/Time-modules/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: perl >= 5.004
  11. Requires: perl >= 5.004
  12. BuildArch: noarch
  13. %description
  14. This package contains the following perl5 modules:
  15. Time::CTime.pm
  16. ctime, strftime, and asctime
  17. Time::JulianDay.pm
  18. Julian Day conversions
  19. Time::ParseDate.pm
  20. Reverses strftime and also understands relative times
  21. Time::Timezone.pm
  22. Time::DaysInMonth.pm
  23. %prep
  24. %setup -q -n Time-modules-%{version}
  25. %build
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  27. make
  28. %install
  29. rm -rf %{buildroot}
  30. mkdir -p %{buildroot}%{_prefix}
  31. make DESTDIR=$RPM_BUILD_ROOT install
  32. find %{buildroot}%{_prefix} -type f -print |
  33. sed "s@^%{buildroot}@@g" |
  34. grep -v ^%{_mandir} |
  35. grep -v perllocal.pod |
  36. grep -v "\.packlist" > %{name}.files
  37. if [ "$(cat %{name}.files)X" = "X" ] ; then
  38. echo "ERROR: EMPTY FILE LIST"
  39. exit -1
  40. fi
  41. %check
  42. make test
  43. %clean
  44. rm -rf %{buildroot}
  45. %files -f %{name}.files
  46. %defattr(-,root,root)
  47. %doc README CHANGELOG
  48. %{_mandir}/*/*
  49. %dir %{perl_vendorlib}/Time
  50. %changelog
  51. * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2006.0814-1vl5
  52. - applied new versioning policy
  53. - rebuilt with perl-5.10.0
  54. * Tue Sep 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2006.0814-0vl1
  55. - new upstream release
  56. - changed Group to Development/Libraries
  57. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 2003.1126-0vl1
  58. - new upstream release
  59. - built with perl-5.8.6
  60. * Sun Jun 15 2003 IWAI Masaharu <iwai@alib.jp> 2003.0211-0vl1
  61. - first build for Vine Linux