perl-Array-Diff/perl-Array-Diff.spec

74 lines
2.1 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Array-Diff
Version: 0.05002
Release: 2mamba
Summary: Array::Diff - Diff two arrays
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.cpan.org
Source: http://www.cpan.org/modules/by-module/Array/Array-Diff-%{version}.tar.gz
License: GPL, Artistic
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: perl-Module-Build
BuildRequires: perl-Class-Accessor
BuildRequires: perl-Algorithm-Diff
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Array::Diff - Diff two arrays.
%prep
%setup -q -n Array-Diff-%{version}
%build
perl Makefile.PL installdirs=vendor
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
#./Build install \
# destdir="%{buildroot}" \
# --install_path bindoc="%{_mandir}/man1" \
# --install_path libdoc="%{_mandir}/man3"
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
find %{buildroot}%{perl_vendorlib} \
-type d -depth -exec rmdir {} 2>/dev/null \;
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
* Mon Jul 15 2013 Automatic Build System <autodist@mambasoft.it> 0.05002-2mamba
- automatic rebuild by autodist
* Thu May 28 2009 Automatic Build System <autodist@mambasoft.it> 0.05002-1mamba
- automatic update by autodist
* Mon Mar 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.05-1mamba
- automatic update by autodist
* Mon Nov 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.04-2mamba
- automatic rebuild by autodist
* Fri Nov 09 2007 Aleph0 <aleph0@openmamba.org> 0.04-1mamba
- package created by autospec