perl-Expect/perl-Expect.spec

80 lines
2.3 KiB
RPMSpec
Raw Normal View History

%define PERL_VERSION %(eval `perl -V:version`; echo $version)
Name: perl-Expect
Version: 1.38
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: libperl
BuildRequires: perl-IO-Tty
BuildRequires: perl-Scalar-List-Utils
BuildRequires: perl-devel
## 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
* Sat Mar 09 2024 Automatic Build System <autodist@openmamba.org> 1.38-1mamba
- automatic update by autodist
* Fri Mar 08 2024 Automatic Build System <autodist@openmamba.org> 1.37-1mamba
- automatic version update by autodist
* Sat Feb 24 2024 Automatic Build System <autodist@openmamba.org> 1.36-1mamba
- automatic version update by autodist
* 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