perl-Tk-TableMatrix-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. %define pkgname Tk-TableMatrix
  2. Summary: Perl module for creating and manipulating tables.
  3. Name: perl-%{pkgname}
  4. Version: 1.23
  5. Release: 1%{?_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. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. %description
  15. The TableMatrix command creates a 2-dimensional grid of cells. The
  16. table can use a Tcl array variable or Tcl command for data storage and
  17. retrieval.
  18. %prep
  19. %setup -q -n %{pkgname}-%{version}
  20. %build
  21. perl Makefile.PL X11LIB=%{_libdir} INSTALLDIRS=vendor
  22. find . -name Makefile | xargs perl -pi -e's/pod2man --center (.*) "--"/pod2man -- --center $1/'
  23. make
  24. %install
  25. rm -rf %{buildroot}
  26. %makeinstall DESTDIR=$RPM_BUILD_ROOT
  27. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  28. find $RPM_BUILD_ROOT/usr -type f -print | \
  29. sed "s@^$RPM_BUILD_ROOT@@g" | \
  30. grep -v perllocal.pod | \
  31. grep -v "\.packlist" > %{pkgname}-%{version}-filelist
  32. if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
  33. echo "ERROR: EMPTY FILE LIST"
  34. exit -1
  35. fi
  36. %clean
  37. rm -rf %{buildroot}
  38. %files -f %{pkgname}-%{version}-filelist
  39. %defattr(-,root,root,-)
  40. %{perl_archlib}/perllocal.pod
  41. %{perl_vendorarch}/auto/Tk/TableMatrix/.packlist
  42. %changelog
  43. * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.23-1
  44. - new upstream release.
  45. * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.22-3
  46. - rebuild with perl-5.12.3
  47. * Sat Oct 11 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.22-2vl5
  48. - removed BuildRequires: pwlib-devel
  49. - installed to vendor_perl dir
  50. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-1vl5
  51. - applied new versioning policy
  52. - built with perl-5.10.0
  53. * Mon Dec 31 2007 Shu KONNO <owa@bg.wakwak.com> 1.01-0vl3
  54. - added X11LIB to build (for x86_64)
  55. * Tue Aug 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl2
  56. - new upstream release
  57. - rebuild with pwlib-1.10.1
  58. * Wed Mar 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl1
  59. - initial build for Vine Linux