perl-TermReadKey-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. Name: perl-TermReadKey
  2. Version: 2.30
  3. Release: 2%{?_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. * Thu Jan 29 2009 IWAI, Masaharu <iwai@alib.jp> - 2.30-2
  48. - do not require perl(:MODULE_COMPAT_x.y.z) on Vine Linux 4.x
  49. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.30-1
  50. - initial build for Vine Linux
  51. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.30-6
  52. - Rebuild for perl 5.10 (again)
  53. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.30-5
  54. - Autorebuild for GCC 4.3
  55. * Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.36-4
  56. - rebuild for new perl
  57. * Thu Oct 25 2007 Robin Norwood <rnorwood@redhat.com> - 2.30-3
  58. - fix various issues from package review:
  59. - remove extra || : from %%check
  60. - add dist tag to release
  61. - remove BR: perl
  62. - fix tabs and spacing
  63. * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.30-2
  64. - correct license tag
  65. - add BR: perl(ExtUtils::MakeMaker)
  66. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
  67. - rebuild
  68. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.30-1.2.2
  69. - bump again for double-long bug on ppc(64)
  70. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.30-1.2.1
  71. - rebuilt for new gcc4.1 snapshot and glibc changes
  72. * Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 2.30-1.2
  73. - rebuild for new perl-5.8.8
  74. * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
  75. - rebuilt for new gcc
  76. * Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-1
  77. - Update to 2.30.
  78. - spec cleanup (#153200)
  79. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  80. - rebuilt
  81. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  82. - rebuilt
  83. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  84. - rebuilt
  85. * Tue Jun 17 2003 Chip Turner <cturner@redhat.com> 2.20-12
  86. - rebuild
  87. * Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
  88. - version bump and rebuild
  89. * Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
  90. - rebuild
  91. * Tue Sep 10 2002 Chip Turner <cturner@redhat.com>
  92. - remove 'make test' as it seems to open a tty and hang
  93. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  94. - automated release bump and build
  95. * Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
  96. - update to 2.20
  97. * Wed Jan 30 2002 cturner@redhat.com
  98. - Specfile autogenerated