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