perl-Tk-TableMatrix-vl.spec 2.5 KB

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