perl-TermReadKey/perl-TermReadKey.spec
cvsdist bdeb76eb4b auto-import changelog data from perl-TermReadKey-2.20-12.src.rpm
Tue Jun 17 2003 Chip Turner <cturner@redhat.com> 2.20-12
- rebuild
2004-09-09 10:18:15 +00:00

73 lines
1.9 KiB
RPMSpec

%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 <cturner@redhat.com> 2.20-12
- rebuild
* Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
- version bump and rebuild
* Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
- rebuild
* Tue Sep 10 2002 Chip Turner <cturner@redhat.com>
- remove 'make test' as it seems to open a tty and hang
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
- automated release bump and build
* Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
- update to 2.20
* Wed Jan 30 2002 cturner@redhat.com
- Specfile autogenerated