77 lines
2.7 KiB
RPMSpec
77 lines
2.7 KiB
RPMSpec
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||
|
|
||
|
Name: perl-Term-ReadKey
|
||
|
Version: 2.30.02
|
||
|
Release: 1mamba
|
||
|
Summary: Term::ReadKey - A perl module for simple terminal control
|
||
|
Group: System/Libraries/Perl
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
||
|
URL: http://www.cpan.org
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/S/ST/STSI/TermReadKey-%{version}.tar.gz
|
||
|
License: Artistic, GPL
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: perl-devel >= %perl_major_ver
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: perl >= %perl_major_ver
|
||
|
|
||
|
%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, 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
|
||
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
||
|
%make test
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall_perl
|
||
|
packlist=`find %{buildroot} -name .packlist`
|
||
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
||
|
sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \
|
||
|
sort -u > .packlist && rm $packlist
|
||
|
|
||
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
||
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
||
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
||
|
done
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
rm -f .packlist
|
||
|
|
||
|
%files -f .packlist
|
||
|
%defattr(-,root,root)
|
||
|
|
||
|
%changelog
|
||
|
* Fri Feb 08 2013 Automatic Build System <autodist@mambasoft.it> 2.30.02-1mamba
|
||
|
- update to 2.30.02
|
||
|
|
||
|
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30-4mamba
|
||
|
- perl 5.16 mass rebuild
|
||
|
|
||
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30-3mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Mon Jun 23 2008 Tiziana Ferro <tiziana.ferro@email.it> 2.30-2mamba
|
||
|
- update Vendor, Distribution, mantainer, buildrequirements list
|
||
|
* Tue Jun 20 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.30-1qilnx
|
||
|
- updated to version 2.30 by autospec
|
||
|
|
||
|
* Tue Oct 26 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.21-5qilnx
|
||
|
- package created by autospec (rebuilt after SRPM loss)
|
||
|
|
||
|
* Tue Nov 18 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.21-2qilnx
|
||
|
- package renamed from perl-TermReadKey to perl-Term-ReadKey
|
||
|
|
||
|
* Wed Oct 29 2003 Davide Madrisan <davide.madrisan@qilinux.it> 2.21-1qilnx
|
||
|
- first build
|