67 lines
1.8 KiB
RPMSpec
67 lines
1.8 KiB
RPMSpec
|
%define PERL_VERSION %(eval `perl -V:version`; echo $version)
|
||
|
Name: perl-Expect
|
||
|
Version: 1.21
|
||
|
Release: 3mamba
|
||
|
Summary: Perl Expect module
|
||
|
Group: Development/Libraries/Perl
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
Source: http://www.cpan.org/authors/id/R/RG/RGIERSIG/Expect-%{version}.tar.gz
|
||
|
URL: http://www.cpan.org
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: perl-devel >= %PERL_VERSION
|
||
|
BuildRequires: perl-IO-Tty >= 1.07
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: perl >= %PERL_VERSION
|
||
|
BuildRoot: %{_tmppath}/perl-root
|
||
|
|
||
|
%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
|
||
|
* 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
|