perl-Date-Calc-vl.spec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Summary: Gregorian calendar date calculations using Perl
  2. Name: perl-Date-Calc
  3. Version: 5.4
  4. Release: 1%{?_dist_release}
  5. License: distributable
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/search?dist=Date-Calc
  8. Source0: http://www.cpan.org/authors/id/STBEY/Date-Calc-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: perl >= 0:5.00503
  11. BuildRequires: perl-Bit-Vector >= 6.4
  12. BuildRequires: perl-Carp-Clan >= 5.3
  13. Requires: perl-Bit-Vector >= 6.4
  14. Requires: perl-Carp-Clan >= 5.3
  15. %description
  16. This package consists of a C library (intended to make life easier for C
  17. developers) and a Perl module to access this library from Perl.
  18. The library provides all sorts of date calculations based on the Gregorian
  19. calendar (the one used in all western countries today), thereby complying
  20. with all relevant norms and standards: ISO/R 2015-1971, DIN 1355 and, to
  21. some extent, ISO 8601 (where applicable).
  22. The package is designed as an efficient (and fast) toolbox, not a bulky
  23. ready-made application. It provides extensive documentation and examples
  24. of use, multi-language support and special functions for business needs.
  25. %prep
  26. %setup -q -n Date-Calc-%{version}
  27. %build
  28. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  29. make
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. make DESTDIR=$RPM_BUILD_ROOT pure_install
  33. find $RPM_BUILD_ROOT%{perl_vendorarch} -type f -print | \
  34. sed "s@^$RPM_BUILD_ROOT@@g" | \
  35. grep -v perllocal.pod | \
  36. grep -v "\.packlist" > Date-Calc-%{version}-filelist
  37. if [ "$(cat Date-Calc-%{version}-filelist)X" = "X" ] ; then
  38. echo "ERROR: EMPTY FILE LIST"
  39. exit -1
  40. fi
  41. install -m 0644 blib/man3/* %{buildroot}%{_mandir}/man3
  42. %check
  43. LANG=C make test
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files -f Date-Calc-%{version}-filelist
  47. %defattr(-,root,root)
  48. %doc CHANGES.txt CREDITS.txt EXAMPLES.txt README.txt TOOLS.txt
  49. %doc examples tools
  50. %dir %{perl_vendorarch}/Date
  51. %dir %{perl_vendorarch}/Date/Calc
  52. %dir %{perl_vendorarch}/Date/Calendar
  53. %dir %{perl_vendorarch}/auto/Date/Calc
  54. %{_mandir}/man3/*
  55. %changelog
  56. * Sat Nov 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.4-1
  57. - applied new versioning policy
  58. - rebuilt with perl-5.10.0
  59. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 5.4-0vl1
  60. - new upstream release
  61. - update {Build,}Requires
  62. - add Summary and description
  63. * Thu Apr 17 2003 IWAI Masaharu <iwai@alib.jp> 5.3-0vl1
  64. - version up to 5.3
  65. - add directories in %%files section
  66. - add some documents
  67. - drop %%{perl_sitearch}/Carp ( installed from perl-Bit-Vector )
  68. * Thu Apr 11 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 5.0-15vl2
  69. - add LANG=C for 'make test'
  70. * Thu Apr 11 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 5.0-15vl1
  71. - build Rawhide-5.0-15 for Vine Linux
  72. - added perl-Bit-Vector in {Build,}Requires
  73. * Wed Jan 30 2002 cturner@redhat.com
  74. - Specfile autogenerated