perl-Tk-TableMatrix-vl.spec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. %define pkgname Tk-TableMatrix
  2. Summary: Perl module for creating and manipulating tables.
  3. Name: perl-%{pkgname}
  4. Version: 1.22
  5. Release: 2%{?_dist_release}
  6. Group: Development/Libraries
  7. License: Artistic
  8. Url: http://search.cpan.org/author/CERNEY/%{pkgname}-%{version}/
  9. Source: http://search.cpan.org/CPAN/authors/id/C/CE/CERNEY/%{pkgname}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: perl(Tk), xorg-x11-devel
  12. Requires: perl(Tk)
  13. %description
  14. The TableMatrix command creates a 2-dimensional grid of cells. The
  15. table can use a Tcl array variable or Tcl command for data storage and
  16. retrieval.
  17. %prep
  18. %setup -q -n %{pkgname}-%{version}
  19. %build
  20. perl Makefile.PL X11LIB=%{_libdir} INSTALLDIRS=vendor
  21. find . -name Makefile | xargs perl -pi -e's/pod2man --center (.*) "--"/pod2man -- --center $1/'
  22. make
  23. %install
  24. rm -rf %{buildroot}
  25. %makeinstall DESTDIR=$RPM_BUILD_ROOT
  26. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  27. find $RPM_BUILD_ROOT/usr -type f -print | \
  28. sed "s@^$RPM_BUILD_ROOT@@g" | \
  29. grep -v perllocal.pod | \
  30. grep -v "\.packlist" > %{pkgname}-%{version}-filelist
  31. if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
  32. echo "ERROR: EMPTY FILE LIST"
  33. exit -1
  34. fi
  35. %clean
  36. rm -rf %{buildroot}
  37. %files -f %{pkgname}-%{version}-filelist
  38. %defattr(-,root,root,-)
  39. %{perl_archlib}/perllocal.pod
  40. %{perl_vendorarch}/auto/Tk/TableMatrix/.packlist
  41. %changelog
  42. * Sat Oct 11 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.22-2vl5
  43. - removed BuildRequires: pwlib-devel
  44. - installed to vendor_perl dir
  45. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-1vl5
  46. - applied new versioning policy
  47. - built with perl-5.10.0
  48. * Mon Dec 31 2007 Shu KONNO <owa@bg.wakwak.com> 1.01-0vl3
  49. - added X11LIB to build (for x86_64)
  50. * Tue Aug 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl2
  51. - new upstream release
  52. - rebuild with pwlib-1.10.1
  53. * Wed Mar 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl1
  54. - initial build for Vine Linux