perl-Date-Manip-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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: 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. 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. # Provide perl-specific find-{provides,requires}.
  23. %define __find_provides /usr/lib/rpm/find-provides.perl
  24. %define __find_requires /usr/lib/rpm/find-requires.perl
  25. %prep
  26. %setup -q -n Date-Manip-%{version}
  27. %build
  28. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  29. make %{?_smp_mflags}
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  33. make DESTDIR=$RPM_BUILD_ROOT install
  34. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  35. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  36. find $RPM_BUILD_ROOT/usr -type f -print |
  37. sed "s@^$RPM_BUILD_ROOT@@g" |
  38. grep -v perllocal.pod |
  39. grep -v "\.packlist" > Date-Manip-%{version}-filelist
  40. if [ "$(cat Date-Manip-%{version}-filelist)X" = "X" ] ; then
  41. echo "ERROR: EMPTY FILE LIST"
  42. exit -1
  43. fi
  44. %check
  45. make test
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %files -f Date-Manip-%{version}-filelist
  49. %defattr(-,root,root)
  50. %changelog
  51. * Sat Nov 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.54-1
  52. - changed name to Date-Manip as now used on CPAN
  53. - new upstream release
  54. - applied new versioning policy
  55. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.44-0vl1
  56. - new upstream release
  57. - installed files to vendor_perl
  58. - changed URL
  59. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 5.42a-0vl3
  60. - build on perl-5.8.6-0vl1
  61. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl2
  62. - rebuilt on perl-5.8.2
  63. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl1
  64. - new upstream version
  65. - built on perl-5.8.1
  66. * Sun Apr 29 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl2
  67. - build on perl-5.8.0
  68. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl1
  69. - build for VineLinux
  70. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  71. - automated release bump and build
  72. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  73. - automated rebuild
  74. * Fri Dec 7 2001 root <root@redhat.com>
  75. - Spec file was autogenerated.