- Update to 3.17.

- Specfile cleanup. (#155168)
This commit is contained in:
Warren Togami 2005-04-17 21:21:38 +00:00
parent a68b6a72b7
commit 4e0427bdb2
3 changed files with 40 additions and 40 deletions

View File

@ -1 +1 @@
XML-Twig-3.13.tar.gz
XML-Twig-3.17.tar.gz

View File

@ -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 <wtogami@redhat.com>
- remove brp-compress
* Sun Apr 17 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 3.17-1
- Update to 3.17.
- Specfile cleanup. (#155168)
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 3.13-6
- rebuild

View File

@ -1 +1 @@
cbf3265ce25aa0c0a4d9a2439ba9d632 XML-Twig-3.13.tar.gz
70be541c68247b1394138eb2e1dc109a XML-Twig-3.17.tar.gz