perl-DateManip-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %define _use_internal_dependency_generator 0
  2. Summary: A Perl module containing a wide variety of date manipulation routines.
  3. Name: perl-DateManip
  4. Version: 5.44
  5. Release: 0vl1
  6. License: distributable
  7. Group: Development/Libraries
  8. Source0: DateManip-%{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. %description
  15. This is a set of routines designed to make any common date/time
  16. manipulation easy to do. Operations such as comparing two times,
  17. calculating a time a given amount of time from another, or parsing
  18. international times are all easily done.
  19. # Provide perl-specific find-{provides,requires}.
  20. %define __find_provides /usr/lib/rpm/find-provides.perl
  21. %define __find_requires /usr/lib/rpm/find-requires.perl
  22. %prep
  23. %setup -q -n DateManip-%{version}
  24. %build
  25. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  26. make
  27. %check
  28. make test
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  34. make DESTDIR=$RPM_BUILD_ROOT install
  35. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  36. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  37. find $RPM_BUILD_ROOT/usr -type f -print |
  38. sed "s@^$RPM_BUILD_ROOT@@g" |
  39. grep -v perllocal.pod |
  40. grep -v "\.packlist" > DateManip-%{version}-filelist
  41. if [ "$(cat DateManip-%{version}-filelist)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. %files -f DateManip-%{version}-filelist
  46. %defattr(-,root,root)
  47. %changelog
  48. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.44-0vl1
  49. - new upstream release
  50. - installed files to vendor_perl
  51. - changed URL
  52. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 5.42a-0vl3
  53. - build on perl-5.8.6-0vl1
  54. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl2
  55. - rebuilt on perl-5.8.2
  56. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 5.42a-0vl1
  57. - new upstream version
  58. - built on perl-5.8.1
  59. * Sun Apr 29 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl2
  60. - build on perl-5.8.0
  61. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 5.40-30vl1
  62. - build for VineLinux
  63. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  64. - automated release bump and build
  65. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  66. - automated rebuild
  67. * Fri Dec 7 2001 root <root@redhat.com>
  68. - Spec file was autogenerated.