From 4e0427bdb2fef78ff0b1e859dcf74e0713d68abb Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Sun, 17 Apr 2005 21:21:38 +0000 Subject: [PATCH] - Update to 3.17. - Specfile cleanup. (#155168) --- .cvsignore | 2 +- perl-XML-Twig.spec | 76 +++++++++++++++++++++++----------------------- sources | 2 +- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.cvsignore b/.cvsignore index ce52136..ff901a3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -XML-Twig-3.13.tar.gz +XML-Twig-3.17.tar.gz diff --git a/perl-XML-Twig.spec b/perl-XML-Twig.spec index a522fac..5dd6c1c 100644 --- a/perl-XML-Twig.spec +++ b/perl-XML-Twig.spec @@ -1,24 +1,21 @@ -%define _use_internal_dependency_generator 0 +Name: perl-XML-Twig +Version: 3.17 +Release: 1 +Summary: A perl module for processing huge XML documents in tree mode -Name: perl-XML-Twig -Version: 3.13 -Release: 7 -Summary: A perl module for processing huge XML documents in tree mode. -License: distributable -Group: Development/Libraries -URL: http://search.cpan.org/search?mode=module&query=XML%3a%3aTwig -BuildRoot: %{_tmppath}/%{name}-root -BuildRequires: perl >= 0:5.00503 -Buildarch: noarch -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-Twig-%{version}.tar.gz -Source1: filter-requires.sh +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/XML-Twig/ +Source0: http://www.cpan.org/authors/id/M/MI/MIROD/XML-Twig-%{version}.tar.gz +Source1: filter-requires.sh +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: perl-XML-Parser +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +BuildRequires: perl(XML::Parser) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -%define __find_requires %{SOURCE1} +%define __perl_requires %{SOURCE1} %description This module provides a way to process XML documents. It is build on @@ -29,38 +26,41 @@ usage by building the tree only for the parts of the documents that need actual processing, through the use of the twig_roots and twig_print_outside_roots options. + %prep %setup -q -n XML-Twig-%{version} %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor < /dev/null -make -make test || /bin/true +%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null +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 -make install -find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; +%files +%defattr(-,root,root,-) +%doc Changes README +%{_bindir}/* +%{perl_vendorlib}/XML/ +%{_mandir}/man1/*.1* +%{_mandir}/man3/*.3* -find $RPM_BUILD_ROOT/usr -type f -print | \ - sed "s@^$RPM_BUILD_ROOT@@g" | \ - grep -v perllocal.pod | \ - grep -v "\.packlist" > XML-Twig-%{version}-filelist -if [ "$(cat XML-Twig-%{version}-filelist)X" = "X" ] ; then - echo "ERROR: EMPTY FILE LIST" - exit 1 -fi - -%files -f XML-Twig-%{version}-filelist -%defattr(-,root,root) %changelog -* Wed Mar 30 2005 Warren Togami -- remove brp-compress +* Sun Apr 17 2005 Jose Pedro Oliveira - 3.17-1 +- Update to 3.17. +- Specfile cleanup. (#155168) * Wed Sep 22 2004 Chip Turner 3.13-6 - rebuild diff --git a/sources b/sources index 0b78df4..b3c1b5e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cbf3265ce25aa0c0a4d9a2439ba9d632 XML-Twig-3.13.tar.gz +70be541c68247b1394138eb2e1dc109a XML-Twig-3.17.tar.gz