perl-Term-ReadKey/perl-Term-ReadKey.spec

87 lines
3.1 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Term-ReadKey
Version: 2.38
Release: 2mamba
Summary: Term::ReadKey - A perl module for simple terminal control
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-%{version}.tar.gz
License: Artistic, GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
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
find %{buildroot} -name *.so -exec chmod u+w {} \;
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 2.38-2mamba
- rebuilt with perl 5.36.0
* Mon Jan 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.38-1mamba
- update to 2.38
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30.02-2mamba
- rebuilt with perl 5.24
* 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