perl-TimeDate-vl.spec 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. %define _use_internal_dependency_generator 0
  2. Summary: A Perl module for time and date manipulation.
  3. Name: perl-TimeDate
  4. Version: 1.16
  5. Release: 3%{_dist_release}
  6. License: distributable
  7. Group: Development/Libraries
  8. Source0: TimeDate-%{version}.tar.gz
  9. Url: http://search.cpan.org/search?query=timedate&mode=all
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: perl >= 0:5.00503
  12. Requires: perl >= 0:5.00503
  13. BuildArch: noarch
  14. %description
  15. This module includes a number of smaller modules suited for
  16. manipulation of time and date strings with Perl. In particular, the
  17. Date::Format and Date::Parse modules can display and read times and
  18. dates in various formats, providing a more reliable interface to
  19. textual representations of points in time.
  20. # Provide perl-specific find-{provides,requires}.
  21. %define __find_provides /usr/lib/rpm/find-provides.perl
  22. %define __find_requires /usr/lib/rpm/find-requires.perl
  23. %prep
  24. %setup -q -n TimeDate-%{version}
  25. %build
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  27. make
  28. %check
  29. make test
  30. %clean
  31. rm -rf $RPM_BUILD_ROOT
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  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%{_prefix} -type f -print |
  38. sed "s@^$RPM_BUILD_ROOT@@g" |
  39. grep -v perllocal.pod |
  40. grep -v "\.packlist" > TimeDate-%{version}-filelist
  41. if [ "$(cat TimeDate-%{version}-filelist)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. %files -f TimeDate-%{version}-filelist
  46. %defattr(-,root,root)
  47. %changelog
  48. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.16-3
  49. - built with perl-5.10.0.
  50. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.16-2vl3
  51. - changed Group to Development/Libraries
  52. - changed INSTALLDIRS to vendor from site
  53. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.16-2vl2
  54. - built with perl-5.8.6
  55. * Sun Oct 03 2004 Satoshi MACHINO <machino@vinelinux.org> 1.16-2vl1
  56. - rebuilt for VineLinux
  57. -- deleted epoch tag
  58. -- changed INSTALLDIR to site from vendor
  59. * Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1:1.16-2
  60. - rebuild
  61. * Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1:1.16-1
  62. - update to 1.16, bump epoch since previous version was 1.1301
  63. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  64. - automated release bump and build
  65. * Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
  66. - update to 1.301
  67. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  68. - automated rebuild
  69. * Wed Oct 24 2001 root <root@redhat.com>
  70. - Spec file was autogenerated.