perl-Tk-TableMatrix-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. %define pkgname Tk-TableMatrix
  2. Summary: Perl module for creating and manipulating tables.
  3. Name: perl-%{pkgname}
  4. Version: 1.22
  5. Release: 3%{?_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. * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.22-3
  43. - rebuild with perl-5.12.3
  44. * Sat Oct 11 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.22-2vl5
  45. - removed BuildRequires: pwlib-devel
  46. - installed to vendor_perl dir
  47. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-1vl5
  48. - applied new versioning policy
  49. - built with perl-5.10.0
  50. * Mon Dec 31 2007 Shu KONNO <owa@bg.wakwak.com> 1.01-0vl3
  51. - added X11LIB to build (for x86_64)
  52. * Tue Aug 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl2
  53. - new upstream release
  54. - rebuild with pwlib-1.10.1
  55. * Wed Mar 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl1
  56. - initial build for Vine Linux