perl-TermReadKey-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. Name: perl-TermReadKey
  2. Version: 2.30
  3. Release: 3%{?_dist_release}
  4. Summary: A perl module for simple terminal control
  5. Group: Development/Libraries
  6. License: Copyright only
  7. URL: http://search.cpan.org/dist/TermReadKey/
  8. Source0: http://www.cpan.org/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildRequires: perl(ExtUtils::MakeMaker)
  11. %if "%{?_dist_release}" == "vl4"
  12. Requires: perl = %(rpm -q --qf '%%{epoch}:%%{version}' perl)
  13. %else
  14. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  15. %endif
  16. %description
  17. Term::ReadKey is a compiled perl module dedicated to providing simple
  18. control over terminal driver modes (cbreak, raw, cooked, etc.)
  19. support for non-blocking reads, if the architecture allows, and some
  20. generalized handy functions for working with terminals. One of the
  21. main goals is to have the functions as portable as possible, so you
  22. can just plug in "use Term::ReadKey" on any architecture and have a
  23. good likelyhood of it working.
  24. %prep
  25. %setup -q -n TermReadKey-%{version}
  26. %build
  27. CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
  28. make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  32. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  33. find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  34. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  35. chmod -R u+w $RPM_BUILD_ROOT/*
  36. %check
  37. make test
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc README
  43. %{perl_vendorarch}/Term/
  44. %{perl_vendorarch}/auto/Term/
  45. %{_mandir}/man3/*.3*
  46. %changelog
  47. * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 2.30-3vl6
  48. - build with perl 5.12.3
  49. * Thu Jan 29 2009 IWAI, Masaharu <iwai@alib.jp> - 2.30-2
  50. - do not require perl(:MODULE_COMPAT_x.y.z) on Vine Linux 4.x
  51. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.30-1
  52. - initial build for Vine Linux
  53. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.30-6
  54. - Rebuild for perl 5.10 (again)
  55. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.30-5
  56. - Autorebuild for GCC 4.3
  57. * Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.36-4
  58. - rebuild for new perl
  59. * Thu Oct 25 2007 Robin Norwood <rnorwood@redhat.com> - 2.30-3
  60. - fix various issues from package review:
  61. - remove extra || : from %%check
  62. - add dist tag to release
  63. - remove BR: perl
  64. - fix tabs and spacing
  65. * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.30-2
  66. - correct license tag
  67. - add BR: perl(ExtUtils::MakeMaker)
  68. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
  69. - rebuild
  70. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.30-1.2.2
  71. - bump again for double-long bug on ppc(64)
  72. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.30-1.2.1
  73. - rebuilt for new gcc4.1 snapshot and glibc changes
  74. * Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 2.30-1.2
  75. - rebuild for new perl-5.8.8
  76. * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
  77. - rebuilt for new gcc
  78. * Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-1
  79. - Update to 2.30.
  80. - spec cleanup (#153200)
  81. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  82. - rebuilt
  83. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  84. - rebuilt
  85. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  86. - rebuilt
  87. * Tue Jun 17 2003 Chip Turner <cturner@redhat.com> 2.20-12
  88. - rebuild
  89. * Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
  90. - version bump and rebuild
  91. * Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
  92. - rebuild
  93. * Tue Sep 10 2002 Chip Turner <cturner@redhat.com>
  94. - remove 'make test' as it seems to open a tty and hang
  95. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  96. - automated release bump and build
  97. * Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
  98. - update to 2.20
  99. * Wed Jan 30 2002 cturner@redhat.com
  100. - Specfile autogenerated