perl-Time-modules-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Summary: Time-modules module for Perl
  2. Name: perl-Time-modules
  3. Version: 2013.1113
  4. Release: 1%{?_dist_release}
  5. License: Distributable
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/~muir/Time-ParseDate/
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MU/MUIR/modules/Time-ParseDate-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. Requires: perl >= 5.004
  13. Provides: perl-Time-ParseDate = %{version}-%{release}
  14. %description
  15. This package contains the following perl5 modules:
  16. Time::CTime.pm
  17. ctime, strftime, and asctime
  18. Time::JulianDay.pm
  19. Julian Day conversions
  20. Time::ParseDate.pm
  21. Reverses strftime and also understands relative times
  22. Time::Timezone.pm
  23. Time::DaysInMonth.pm
  24. %prep
  25. %setup -q -n Time-ParseDate-%{version}
  26. %build
  27. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  28. make
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. make pure_install DESTDIR=$RPM_BUILD_ROOT
  32. # remove unnecessary files.
  33. find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec %{__rm} -f {} ';'
  34. find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';'
  35. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  36. %{_fixperms} $RPM_BUILD_ROOT
  37. %check
  38. make test
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %files
  42. %defattr(-,root,root)
  43. %doc README Changes
  44. %{perl_vendorlib}/Time
  45. %{_mandir}/*/*
  46. %changelog
  47. * Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2013.1113-1
  48. - updated to 2013.1113
  49. - built with perl 5.16.3
  50. - updated URL
  51. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2006.0814-2
  52. - rebuild with perl-5.12.3
  53. * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2006.0814-1vl5
  54. - applied new versioning policy
  55. - rebuilt with perl-5.10.0
  56. * Tue Sep 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2006.0814-0vl1
  57. - new upstream release
  58. - changed Group to Development/Libraries
  59. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 2003.1126-0vl1
  60. - new upstream release
  61. - built with perl-5.8.6
  62. * Sun Jun 15 2003 IWAI Masaharu <iwai@alib.jp> 2003.0211-0vl1
  63. - first build for Vine Linux