perl-Date-Manip-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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: 5.54
  5. Release: 2%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-root/
  11. BuildRequires: perl >= 5.8.2
  12. Requires: perl >= 5.8.2
  13. BuildArch: noarch
  14. # This package was formerly known as perl-DateManip
  15. Provides: perl-DateManip = %{version}-%{release}
  16. Obsoletes: perl-DateManip < 5.48
  17. %description
  18. This is a set of routines designed to make any common date/time
  19. manipulation easy to do. Operations such as comparing two times,
  20. calculating a time a given amount of time from another, or parsing
  21. international times are all easily done.
  22. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
  23. # Provide perl-specific find-{provides,requires}.
  24. %define __find_provides /usr/lib/rpm/find-provides.perl
  25. %define __find_requires /usr/lib/rpm/find-requires.perl
  26. %endif
  27. %prep
  28. %setup -q -n Date-Manip-%{version}
  29. %build
  30. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  31. make %{?_smp_mflags}
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  37. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  38. find $RPM_BUILD_ROOT/usr -type f -print |
  39. sed "s@^$RPM_BUILD_ROOT@@g" |
  40. grep -v perllocal.pod |
  41. grep -v "\.packlist" > Date-Manip-%{version}-filelist
  42. if [ "$(cat Date-Manip-%{version}-filelist)X" = "X" ] ; then
  43. echo "ERROR: EMPTY FILE LIST"
  44. exit -1
  45. fi
  46. %check
  47. make test
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files -f Date-Manip-%{version}-filelist
  51. %defattr(-,root,root)
  52. %changelog
  53. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 5.54-2vl6
  54. - build with perl 5.12.3
  55. - defined __find_{provides,requires} with vl4 and vl5
  56. * Sat Nov 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.54-1
  57. - changed name to Date-Manip as now used on CPAN
  58. - new upstream release
  59. - applied new versioning policy
  60. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.44-0vl1
  61. - new upstream release
  62. - installed files to vendor_perl
  63. - changed URL
  64. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 5.42a-0vl3
  65. - build on perl-5.8.6-0vl1
  66. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl2
  67. - rebuilt on perl-5.8.2
  68. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl1
  69. - new upstream version
  70. - built on perl-5.8.1
  71. * Sun Apr 29 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl2
  72. - build on perl-5.8.0
  73. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl1
  74. - build for VineLinux
  75. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  76. - automated release bump and build
  77. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  78. - automated rebuild
  79. * Fri Dec 7 2001 root <root@redhat.com>
  80. - Spec file was autogenerated.