- Update to 2.30.

- spec cleanup (#153200)
This commit is contained in:
Warren Togami 2005-04-02 22:39:51 +00:00
parent 5852fa4c3e
commit 5bc6c89082
3 changed files with 43 additions and 36 deletions

View File

@ -1 +1 @@
TermReadKey-2.20.tar.gz
TermReadKey-2.30.tar.gz

View File

@ -1,54 +1,61 @@
%define _use_internal_dependency_generator 0
Name: perl-TermReadKey
Version: 2.30
Release: 1
Summary: A perl module for simple terminal control
Name: perl-TermReadKey
Version: 2.20
Release: 18
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
Group: Development/Libraries
License: Distributable
URL: http://search.cpan.org/dist/TermReadKey/
Source0: http://www.cpan.org/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 1:5.6.1
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%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.
control over terminal driver modes (cbreak, raw, cooked, etc.)
support for non-blocking reads, if the architecture allows, and some
generalized handy functions for working with terminals. One of the
main goals is to have the functions as portable as possible, so you
can just plug in "use Term::ReadKey" on any architecture and have a
good likelyhood of it working.
%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
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check || :
make test
%clean
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
make install
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
%files
%defattr(-,root,root,-)
%doc README
%{perl_vendorarch}/Term/
%{perl_vendorarch}/auto/Term/
%{_mandir}/man3/*.3*
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
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com>
- remove brp-compress
* Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-1
- Update to 2.30.
- spec cleanup (#153200)
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

View File

@ -1 +1 @@
25f56ae64b3f1ef86c24fcd349acb48d TermReadKey-2.20.tar.gz
f0ef2cea8acfbcc58d865c05b0c7e1ff TermReadKey-2.30.tar.gz