From 941d1ec7e8ea206aae85f875dcb40422ea2f312b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Fri, 23 Nov 2012 16:08:40 +0100 Subject: [PATCH] Drop BR perl(Module::Install::*) for RHEL. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcela Mašláňová --- perl-XML-SAX-Writer.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/perl-XML-SAX-Writer.spec b/perl-XML-SAX-Writer.spec index cd7fd85..abbf6b2 100644 --- a/perl-XML-SAX-Writer.spec +++ b/perl-XML-SAX-Writer.spec @@ -1,6 +1,6 @@ Name: perl-XML-SAX-Writer Version: 0.53 -Release: 1%{?dist} +Release: 2%{?dist} Summary: SAX2 Writer License: GPL+ or Artistic Group: Development/Libraries @@ -10,8 +10,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(inc::Module::Install) BuildRequires: perl(Encode) >= 2.12 +%if ! ( 0%{?rhel} ) BuildRequires: perl(Module::Install::AutoManifest) BuildRequires: perl(Module::Install::Repository) +%endif BuildRequires: perl(Test::More) >= 0.40 BuildRequires: perl(XML::Filter::BufferText) >= 1.00 BuildRequires: perl(XML::NamespaceSupport) >= 1.00 @@ -23,11 +25,15 @@ A new XML Writer to match the SAX2 effort. %prep %setup -q -n XML-SAX-Writer-%{version} - rm -r inc sed -i -e '/^inc\// d' MANIFEST find -type f -exec chmod -x {} + +%if ( 0%{?rhel} ) +sed -i -e '/^auto_set_repository/ d' Makefile.PL +sed -i -e '/^auto_manifest/ d' Makefile.PL +%endif + %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} @@ -55,6 +61,9 @@ rm -rf %{buildroot} %{_mandir}/man3/* %changelog +* Fri Nov 23 2012 Jitka Plesnikova - 0.53-2 +- Drop BR perl(Module::Install::*) for RHEL + * Fri Nov 23 2012 Jitka Plesnikova - 0.53-1 - 0.53 bump - Update dependencies