From d887eeb533a95abffbbfc05b75cec4dfa30c2a5b Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Sun, 8 May 2005 04:03:32 +0000 Subject: [PATCH] Bring up to date with current Fedora.Extras perl spec template. (#156511) --- perl-XML-NamespaceSupport.spec | 70 +++++++++++++++++----------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/perl-XML-NamespaceSupport.spec b/perl-XML-NamespaceSupport.spec index 122e331..9f38569 100644 --- a/perl-XML-NamespaceSupport.spec +++ b/perl-XML-NamespaceSupport.spec @@ -1,53 +1,53 @@ -Name: perl-XML-NamespaceSupport -Version: 1.08 -Release: 7 -Summary: XML-NamespaceSupport Perl module -License: distributable -Group: Development/Libraries -URL: http://search.cpan.org/search?mode=module&query=XML%3a%3aNamespaceSupport -BuildRoot: %{_tmppath}/%{name}-root -Buildarch: noarch -BuildRequires: perl >= 1:5.6.1 -Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }') -Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }') -Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }') -Source0: XML-NamespaceSupport-1.08.tar.gz +Name: perl-XML-NamespaceSupport +Version: 1.08 +Release: 7 +Summary: XML-NamespaceSupport Perl module + +Group: Development/Libraries +License: GPL or Artistic +Url: http://search.cpan.org/dist/XML-NamespaceSupport/ +Source0: http://www.cpan.org/authors/id/R/RB/RBERJON/XML-NamespaceSupport-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description -XML-NamespaceSupport Perl module +%{summary}. + + %prep %setup -q -n XML-NamespaceSupport-%{version} +chmod 644 Changes README *.pm %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor -make +%{__perl} Makefile.PL INSTALLDIRS=vendor +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 d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check || : make test %clean rm -rf $RPM_BUILD_ROOT -%install -rm -rf $RPM_BUILD_ROOT -eval `perl '-V:installarchlib'` -mkdir -p $RPM_BUILD_ROOT/$installarchlib -%makeinstall -rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist` -find $RPM_BUILD_ROOT/usr -type f -print | \ - sed "s@^$RPM_BUILD_ROOT@@g" | \ - grep -v perllocal.pod | \ - grep -v "\.packlist" > XML-NamespaceSupport-%{version}-filelist -if [ "$(cat XML-NamespaceSupport-%{version}-filelist)X" = "X" ] ; then - echo "ERROR: EMPTY FILE LIST" - exit 1 -fi +%files +%defattr(-,root,root,-) +%{perl_vendorlib}/XML/ +%{_mandir}/man3/*.3* -%files -f XML-NamespaceSupport-%{version}-filelist -%defattr(-,root,root) %changelog -* Wed Mar 30 2005 Warren Togami -- remove brp-compress +* Sat Apr 30 2005 Jose Pedro Oliveira - 1.08-7 +- Bring up to date with current Fedora.Extras perl spec template. (#156511) * Wed Sep 22 2004 Chip Turner 1.08-6 - rebuild