diff --git a/.cvsignore b/.cvsignore index e69de29..cc37420 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +XML-NamespaceSupport-1.08.tar.gz diff --git a/perl-XML-NamespaceSupport.spec b/perl-XML-NamespaceSupport.spec new file mode 100644 index 0000000..22dfc8a --- /dev/null +++ b/perl-XML-NamespaceSupport.spec @@ -0,0 +1,53 @@ +Name: perl-XML-NamespaceSupport +Version: 1.08 +Release: 5 +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 + +%description +XML-NamespaceSupport Perl module +%prep +%setup -q -n XML-NamespaceSupport-%{version} + +%build +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor +make +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` + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +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 -f XML-NamespaceSupport-%{version}-filelist +%defattr(-,root,root) + +%changelog +* Thu Oct 17 2002 cturner@redhat.com +- Specfile autogenerated + diff --git a/sources b/sources index e69de29..0671b68 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +81bd5ae772906d0579c10061ed735dc8 XML-NamespaceSupport-1.08.tar.gz