perl-Data-ShowTable-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %define name perl-Data-ShowTable
  2. %define real_name Data-ShowTable
  3. %define version 3.3
  4. %define release 7%{?_dist_release}
  5. Summary: Perl 5 module to print arrays of data
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. License: GPL
  10. Group: Development/Libraries
  11. URL: http://www.cpan.org
  12. Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Data/%{real_name}-%{version}.tar.bz2
  13. Patch0: %{real_name}-3.3.patch.bz2
  14. BuildRequires: perl
  15. BuildArch: noarch
  16. Buildroot: %{_tmppath}/%{name}-%{version}-root
  17. %description
  18. ShowTable.pm, version 3.3, is a Perl 5 module which defines subroutines to
  19. print arrays of data in a nicely formatted listing, using one of four possible
  20. formats: simple table, boxed table, list style, and HTML-formatting (for
  21. World-Wide-Web output). See the documentation on ShowTable.pm for details on
  22. the formatting.
  23. %prep
  24. %setup -q -n %{real_name}-%{version}
  25. %patch0 -p1
  26. find . -type f | xargs perl -pi -e "s|/usr/bin/perl5|/usr/bin/perl|g"
  27. %build
  28. CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
  29. make
  30. %check
  31. make test
  32. %install
  33. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  34. make install DESTDIR=$RPM_BUILD_ROOT
  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" > Data-ShowTable-%{version}-filelist
  41. if [ "$(cat Data-ShowTable-%{version}-filelist)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. %clean
  46. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  47. %files -f Data-ShowTable-%{version}-filelist
  48. %defattr(-,root,root)
  49. %changelog
  50. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 3.3-7vl5
  51. - applied new versioning policy
  52. * Sat Jul 21 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.3-6vl6
  53. - changed Group to Development/Libraries
  54. * Sat Jul 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.3-6vl5
  55. - changed Group to Development/Languages
  56. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 3.3-6vl4
  57. - rebuilt with perl-5.8.6
  58. * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 3.3-6vl3
  59. - changed ftp site of source
  60. * Fri Feb 01 2002 Satoshi MACHINO <machino@vinelinux.org> 3.3-6vl2
  61. - modified spec file
  62. * Sun Jan 27 2002 Satoshi MACHINO <machino@vinelinux.org> 3.3-6vl1
  63. - build on VineLinux
  64. - fixed spec file
  65. * Thu Nov 08 2001 FraníÐis Pons <fpons@mandrakesoft.com> 3.3-6mdk
  66. - added url tag.
  67. * Tue Oct 16 2001 Stefan van der Eijk <stefan@eijk.nu> 3.3-5mdk
  68. - BuildRequires: perl-devel
  69. * Sun Jun 17 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 3.3-4mdk
  70. - Rebuild against latest perl.
  71. * Thu Aug 03 2000 FraníÐis Pons <fpons@mandrakesoft.com> 3.3-3mdk
  72. - macroszifications.
  73. - noarch.
  74. * Mon Apr 3 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 3.3-2mdk
  75. - fixed group
  76. - rebuild with new perl
  77. - fixed location
  78. - patched the source in order to build, the tests in order to test
  79. - fixed install process for correct man1 install
  80. * Sun Dec 05 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
  81. - First spec file