rpms/perl-XML-Twig/devel perl-XML-Twig.spec, 1.18, 1.19 filter-requires.sh, 1.1, NONE
Robin Norwood (rnorwood)
fedora-extras-commits at redhat.com
Sun Jul 8 04:28:18 UTC 2007
Author: rnorwood
Update of /cvs/pkgs/rpms/perl-XML-Twig/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12375
Modified Files:
perl-XML-Twig.spec
Removed Files:
filter-requires.sh
Log Message:
Fix bogus Provides.
Index: perl-XML-Twig.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-XML-Twig/devel/perl-XML-Twig.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- perl-XML-Twig.spec 29 Jun 2007 04:18:11 -0000 1.18
+++ perl-XML-Twig.spec 8 Jul 2007 04:27:42 -0000 1.19
@@ -1,13 +1,12 @@
Name: perl-XML-Twig
Version: 3.29
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A perl module for processing huge XML documents in tree mode
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)
BuildArch: noarch
@@ -29,8 +28,6 @@
BuildRequires: perl(Unicode::String)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-%define __perl_requires %{SOURCE1}
-
%description
This module provides a way to process XML documents. It is build on
top of XML::Parser. XML::Twig offers a tree interface to the
@@ -44,10 +41,31 @@
%prep
%setup -q -n XML-Twig-%{version}
+# Filter unwanted Provides:
+cat << \EOF > %{name}-prov
+#!/bin/sh
+%{__perl_provides} $* |\
+ sed -e '/perl(XML::XPathEngine::NodeSet)/d'
+EOF
+
+%define __perl_provides %{_builddir}/XML-Twig-%{version}/%{name}-prov
+chmod +x %{__perl_provides}
+
+
+# Filter unwanted Requires:
+cat << \EOF > %{name}-req
+#!/bin/sh
+%{__perl_requires} $* |\
+ sed -e '/perl(XML::XPath)/d'
+EOF
+
+%define __perl_requires %{_builddir}/XML-Twig-%{version}/%{name}-req
+chmod +x %{__perl_requires}
%build
%{__perl} Makefile.PL -y INSTALLDIRS=vendor
make %{?_smp_mflags}
+
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
@@ -72,6 +90,11 @@
%changelog
+* Sun Jul 08 2007 Robin Norwood <rnorwood at redhat.com> - 3.29-4
+- Resolves: rhbz#247247
+- Remove bogus Provides: perl(XML::XPathEngine::NodeSet), and move
+ Requires filter into spec file.
+
* Thu Jun 28 2007 Robin Norwood <rnorwood at redhat.com> - 3.29-3
- Add several buildrequires for tests and optional features
--- filter-requires.sh DELETED ---
More information about the fedora-extras-commits
mailing list