commit d630e384741a98b65c4a88a868905cd6513228cb Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Tue May 6 14:33:04 2014 +0200 Import .gitignore | 1 + perl-Module-Path.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 58 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..39ad956 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Module-Path-0.13.tar.gz diff --git a/perl-Module-Path.spec b/perl-Module-Path.spec new file mode 100644 index 0000000..b92de20 --- /dev/null +++ b/perl-Module-Path.spec @@ -0,0 +1,56 @@ +Name: perl-Module-Path +Version: 0.13 +Release: 1%{?dist} +Summary: Get the full path to a locally installed module +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Module-Path/ +Source0: http://www.cpan.org/authors/id/N/NE/NEILB/Module-Path-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Cwd) +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Basename) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(Pod::Usage) +# Tests: +BuildRequires: perl(Devel::FindPerl) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(FindBin) >= 0.05 +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This Module::Path Perl module provides a single function, module_path(), which +will find where a module is installed locally. + +%prep +%setup -q -n Module-Path-%{version} +sed -i -e '1s|^#!.*|#!%{__perl}|' bin/mpath + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes LICENSE README +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Mon May 05 2014 Petr Pisar <ppisar@xxxxxxxxxx> 0.13-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..9b412d5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f47121c8477e20c2dbbf4ad12b752af5 Module-Path-0.13.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel