perl-TermReadKey-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Name: perl-TermReadKey
  2. Version: 2.30
  3. Release: 4%{?_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. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  12. %description
  13. Term::ReadKey is a compiled perl module dedicated to providing simple
  14. control over terminal driver modes (cbreak, raw, cooked, etc.)
  15. support for non-blocking reads, if the architecture allows, and some
  16. generalized handy functions for working with terminals. One of the
  17. main goals is to have the functions as portable as possible, so you
  18. can just plug in "use Term::ReadKey" on any architecture and have a
  19. good likelyhood of it working.
  20. %prep
  21. %setup -q -n TermReadKey-%{version}
  22. %build
  23. CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
  24. make %{?_smp_mflags} OPTIMIZE="%{optflags}"
  25. %install
  26. rm -rf %{buildroot}
  27. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  28. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  29. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  30. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  31. chmod -R u+w %{buildroot}/*
  32. %check
  33. make test
  34. %clean
  35. rm -rf %{buildroot}
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc README
  39. %{perl_vendorarch}/Term/
  40. %{perl_vendorarch}/auto/Term/
  41. %{_mandir}/man3/*.3*
  42. %changelog
  43. * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.30-4
  44. - rebuild
  45. * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 2.30-3vl6
  46. - build with perl 5.12.3
  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