%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Module-ExtractUse Version: 0.341 Release: 1mamba Summary: Module::ExtractUse - A Parse::RecDescent grammar to parse Perl code Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://www.cpan.org Source: http://www.cpan.org/modules/by-module/Module/Module-ExtractUse-%{version}.tar.gz License: GPL, Artistic Requires: perl >= %perl_major_ver BuildRequires: perl-Pod-Simple BuildRequires: perl-Test-Deep BuildRequires: perl-Test-Pod-Coverage BuildRequires: perl-UNIVERSAL-require ## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel BuildRequires: perl-Parse-RecDescent BuildRequires: perl-Pod-Strip BuildRequires: perl-version ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Module::ExtractUse is basically a Parse::RecDescent grammar to parse Perl code. It tries very hard to find all modules (whether pragmas, Core, or from CPAN) used by the parsed code. %prep %setup -q -n Module-ExtractUse-%{version} %build perl Build.PL installdirs=vendor ./Build ./Build test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" ./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 * Sat Feb 27 2016 Automatic Build System 0.341-1mamba - automatic update by autodist * Sun May 25 2014 Automatic Build System 0.33-1mamba - automatic update by autodist * Mon Sep 09 2013 Automatic Build System 0.32-1mamba - automatic update by autodist * Thu Jun 06 2013 Automatic Build System 0.31-1mamba - automatic version update by autodist * Mon Apr 22 2013 Automatic Build System 0.30-1mamba - automatic version update by autodist * Fri Mar 01 2013 Automatic Build System 0.29-1mamba - automatic version update by autodist * Sun Nov 11 2012 Automatic Build System 0.28-1mamba - automatic version update by autodist * Wed Nov 05 2008 Silvan Calarco 0.23-2mamba - automatic rebuild by autodist * Mon Oct 20 2008 gil 0.23-1mamba - update to 0.23 * Mon Nov 12 2007 Aleph0 0.20-1mamba - package created by autospec