%global shortname File-FnMatch Name: perl-%{shortname} Version: 0.02 Release: 6%{?dist} Summary: Simple file-name and pathname matching License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/%{shortname}/ Source0: http://www.cpan.org/modules/by-module/File/%{shortname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?filter_setup: %filter_from_provides /FnMatch.so/d %?perl_default_filter } %description This module provides simple, shell-like pattern matching. %prep %setup -q -n %{shortname}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/File* %{_mandir}/man3/* %changelog * Sat Sep 4 2010 Colin Coe <colin.coe@gmail.com> 0.02-6 - Fix 'private-shared-object-provides', take 3 * Fri Sep 3 2010 Colin Coe <colin.coe@gmail.com> 0.02-5 - Fix 'private-shared-object-provides', take 2 * Thu Sep 2 2010 Colin Coe <colin.coe@gmail.com> 0.02-4 - Bump for sanity * Thu Sep 2 2010 Colin Coe <colin.coe@gmail.com> 0.02-3 - Fix 'private-shared-object-provides' - Introduce shortname macro * Thu Aug 26 2010 Colin Coe <colin.coe@gmail.com> 0.02-2 - Silence rpmlint warning * Wed Aug 25 2010 Colin Coe <colin.coe@gmail.com> 0.02-1 - Specfile autogenerated by cpanspec 1.77.