perl-Date-Manip-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. %define _use_internal_dependency_generator 0
  2. Summary: A Perl module containing a wide variety of date manipulation routines.
  3. Name: perl-Date-Manip
  4. Version: 6.45
  5. Release: 1%{?_dist_release}
  6. License: GPL+ or Artistic
  7. Group: Development/Libraries
  8. Source0: Date-Manip-%{version}.tar.gz
  9. URL: http://search.cpan.org/~sbeck/DateManip/
  10. BuildArch: noarch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root/
  12. BuildRequires: perl >= 5.16.3
  13. BuildRequires: perl(Carp)
  14. BuildRequires: perl(Encode)
  15. BuildRequires: perl(Exporter)
  16. BuildRequires: perl(IO::File)
  17. BuildRequires: perl(Module::Build)
  18. BuildRequires: perl(Storable)
  19. BuildRequires: perl(Test::More)
  20. BuildRequires: perl(YAML::Syck)
  21. # Tests only
  22. BuildRequires: perl(Test::Inter)
  23. BuildRequires: perl(Test::Pod) >= 1.00
  24. BuildRequires: perl(Test::Pod::Coverage) >= 1.00
  25. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  26. # This package was formerly known as perl-DateManip
  27. Provides: perl-DateManip = %{version}-%{release}
  28. Obsoletes: perl-DateManip < 5.48
  29. %description
  30. This is a set of routines designed to make any common date/time
  31. manipulation easy to do. Operations such as comparing two times,
  32. calculating a time a given amount of time from another, or parsing
  33. international times are all easily done.
  34. %prep
  35. %setup -q -n Date-Manip-%{version}
  36. chmod -x examples/*
  37. %build
  38. %{__perl} Makefile.PL INSTALLDIRS=vendor
  39. make %{?_smp_mflags}
  40. %install
  41. rm -rf %{buildroot}
  42. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  43. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  44. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  45. chmod -R u+w %{buildroot}/*
  46. %check
  47. make test
  48. %clean
  49. rm -rf %{buildroot}
  50. %files
  51. %defattr(-,root,root,-)
  52. %doc LICENSE README README.first examples
  53. %{_bindir}/*
  54. %{perl_vendorlib}/Date/
  55. %{_mandir}/man1/*.1*
  56. %{_mandir}/man3/*.3*
  57. %changelog
  58. * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.45-1
  59. - new upstream release.
  60. * Mon Mar 19 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 6.31-1
  61. - updated to 6.31
  62. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 5.54-2vl6
  63. - build with perl 5.12.3
  64. - defined __find_{provides,requires} with vl4 and vl5
  65. * Sat Nov 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.54-1
  66. - changed name to Date-Manip as now used on CPAN
  67. - new upstream release
  68. - applied new versioning policy
  69. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.44-0vl1
  70. - new upstream release
  71. - installed files to vendor_perl
  72. - changed URL
  73. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 5.42a-0vl3
  74. - build on perl-5.8.6-0vl1
  75. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl2
  76. - rebuilt on perl-5.8.2
  77. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl1
  78. - new upstream version
  79. - built on perl-5.8.1
  80. * Tue Apr 29 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl2
  81. - build on perl-5.8.0
  82. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl1
  83. - build for VineLinux
  84. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  85. - automated release bump and build
  86. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  87. - automated rebuild
  88. * Fri Dec 7 2001 root <root@redhat.com>
  89. - Spec file was autogenerated.