perl-Expect/perl-Expect.spec

69 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

%define PERL_VERSION %(eval `perl -V:version`; echo $version)
Name: perl-Expect
Version: 1.35
Release: 1mamba
Summary: Perl Expect module
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
Source: https://cpan.metacpan.org/modules/by-module/Expect/Expect-%{version}.tar.gz
URL: https://www.cpan.org
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel >= %PERL_VERSION
BuildRequires: perl-IO-Tty >= 1.07
## AUTOBUILDREQ-END
Requires: perl >= %PERL_VERSION
%description
Perl Expect module
%prep
%setup -q -n Expect-%{version}
%build
perl Makefile.PL
make
make test
%install
test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT"
%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 -f $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
test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 1.35-1mamba
- automatic version update by autodist
* Thu Aug 29 2013 Automatic Build System <autodist@mambasoft.it> 1.21-3mamba
- automatic rebuild by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21-2mamba
- automatic rebuild by autodist
* Mon Sep 15 2008 gil <puntogil@libero.it> 1.21-1mamba
- update to 1.21
* Tue Feb 01 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15-2qilnx
- make perl version check non strict (>=)
* Fri Apr 30 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15-1qilnx
- First build