%define _use_internal_dependency_generator 0 Name: perl-TermReadKey Version: 2.20 Release: 12 Summary: A perl module for simple terminal control. License: distributable Group: Development/Libraries URL: http://search.cpan.org/search?mode=module&query=TermReadKey BuildRoot: %{_tmppath}/%{name}-root BuildRequires: perl >= 0:5.00503 Source0: TermReadKey-%{version}.tar.gz %description Term::ReadKey is a compiled perl module dedicated to providing simple control over terminal driver modes (cbreak, raw, cooked, etc.,) support for non-blocking reads and some generalized handy functions for working with terminals. %prep %setup -q -n TermReadKey-%{version} %build CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor make # make test || /bin/true %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT/usr -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v perllocal.pod | \ grep -v "\.packlist" > TermReadKey-%{version}-filelist if [ "$(cat TermReadKey-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %files -f TermReadKey-%{version}-filelist %defattr(-,root,root) %changelog * Tue Jun 17 2003 Chip Turner 2.20-12 - rebuild * Mon Jan 27 2003 Chip Turner - version bump and rebuild * Wed Nov 20 2002 Chip Turner - rebuild * Tue Sep 10 2002 Chip Turner - remove 'make test' as it seems to open a tty and hang * Tue Aug 6 2002 Chip Turner - automated release bump and build * Tue Aug 6 2002 Chip Turner - update to 2.20 * Wed Jan 30 2002 cturner@redhat.com - Specfile autogenerated