commit a66ae301a965740cb671f69d18f0f8d283cc6283 Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Tue Mar 29 08:47:43 2011 +0200 Import .gitignore | 1 + perl-File-PathList.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..4d2f44a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/File-PathList-1.04.tar.gz diff --git a/perl-File-PathList.spec b/perl-File-PathList.spec new file mode 100644 index 0000000..a4d19b1 --- /dev/null +++ b/perl-File-PathList.spec @@ -0,0 +1,60 @@ +Name: perl-File-PathList +Version: 1.04 +Release: 1%{?dist} +Summary: Find a file within a set of paths (like @INC or Java classpaths) +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-PathList/ +Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/File-PathList-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(File::Spec) >= 0.80 +BuildRequires: perl(File::Spec::Unix) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Params::Util) >= 0.24 +# Tests only: +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(Test::More) >= 0.47 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(File::Spec) >= 0.80 +Requires: perl(Params::Util) >= 0.24 + +# Remove underspecified dependencies +%filter_from_requires /^perl(File::Spec)\s*$/d +%filter_from_requires /^perl(Params::Util)\s*$/d +%filter_setup + +%description +Many systems that map generic relative paths to absolute paths do so with a +set of base paths. For example, perl itself when loading classes first turn +a "Class::Name" into a path like "Class/Name.pm", and then looks through each +element of @INC to find the actual file. To aid in portability, all relative +paths are provided as UNIX-style relative paths, and converted to the +localized version in the process of looking up the path. + +%prep +%setup -q -n File-PathList-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Mar 24 2011 Petr Pisar <ppisar@xxxxxxxxxx> 1.04-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff +- Enhance description diff --git a/sources b/sources index e69de29..021a6be 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4559e3b29a04471ea3d36a5779d3b70a File-PathList-1.04.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