perl-TimeDate-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %define _use_internal_dependency_generator 0
  2. Summary: A Perl module for time and date manipulation.
  3. Name: perl-TimeDate
  4. Version: 1.20
  5. Release: 2%{_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. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. This module includes a number of smaller modules suited for
  18. manipulation of time and date strings with Perl. In particular, the
  19. Date::Format and Date::Parse modules can display and read times and
  20. dates in various formats, providing a more reliable interface to
  21. textual representations of points in time.
  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 TimeDate-%{version}
  29. %build
  30. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  31. make
  32. %check
  33. make test
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. make DESTDIR=$RPM_BUILD_ROOT install
  39. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  40. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  41. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  42. sed "s@^$RPM_BUILD_ROOT@@g" |
  43. grep -v perllocal.pod |
  44. grep -v "\.packlist" > TimeDate-%{version}-filelist
  45. if [ "$(cat TimeDate-%{version}-filelist)X" = "X" ] ; then
  46. echo "ERROR: EMPTY FILE LIST"
  47. exit -1
  48. fi
  49. %files -f TimeDate-%{version}-filelist
  50. %defattr(-,root,root)
  51. %changelog
  52. * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20-2
  53. - rebuilt with perl-5.16.3.
  54. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.20-1
  55. - new upstream release
  56. - add Vendor and Distribution tags
  57. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.16-3
  58. - built with perl-5.10.0.
  59. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.16-2vl3
  60. - changed Group to Development/Libraries
  61. - changed INSTALLDIRS to vendor from site
  62. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.16-2vl2
  63. - built with perl-5.8.6
  64. * Sun Oct 03 2004 Satoshi MACHINO <machino@vinelinux.org> 1.16-2vl1
  65. - rebuilt for VineLinux
  66. -- deleted epoch tag
  67. -- changed INSTALLDIR to site from vendor
  68. * Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1:1.16-2
  69. - rebuild
  70. * Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1:1.16-1
  71. - update to 1.16, bump epoch since previous version was 1.1301
  72. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  73. - automated release bump and build
  74. * Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
  75. - update to 1.301
  76. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  77. - automated rebuild
  78. * Wed Oct 24 2001 root <root@redhat.com>
  79. - Spec file was autogenerated.