spot pushed to perl-HTML-Scrubber (el6). "disable tests for ancient builds"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Oct 30 19:07:11 UTC 2015


From 8905d55b395887216b2dac1e29c2174f977e6484 Mon Sep 17 00:00:00 2001
From: Tom Callaway <spot at fedoraproject.org>
Date: Fri, 30 Oct 2015 15:07:05 -0400
Subject: disable tests for ancient builds

---
 perl-HTML-Scrubber.spec | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/perl-HTML-Scrubber.spec b/perl-HTML-Scrubber.spec
index 125f971..1f08a09 100644
--- a/perl-HTML-Scrubber.spec
+++ b/perl-HTML-Scrubber.spec
@@ -1,12 +1,13 @@
 Name:           perl-HTML-Scrubber
 Version:        0.15
-Release:        1%{?dist}
+Release:        1%{?dist}.1
 Summary:        Library for scrubbing/sanitizing html
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/HTML-Scrubber/
 Source0:        http://www.cpan.org/authors/id/P/PO/PODMASTER/HTML-Scrubber-%{version}.tar.gz
 BuildArch:      noarch
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRequires:  perl(Test::More) perl(Test::EOL) perl(Test::Memory::Cycle) perl(Test::NoTabs)
 BuildRequires:	perl(Carp) perl(File::Spec) perl(File::Temp) perl(HTML::Entities)
 BuildRequires:  perl(HTML::Parser) perl(IO::Handle) perl(IPC::Open3) perl(Test::CPAN::Meta)
@@ -29,20 +30,30 @@ directly with HTML::Parser.
 ./Build
 
 %install
+rm -rf $RPM_BUILD_ROOT
 ./Build install --destdir $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
+%if %{rhel} >= 7
 ./Build test
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %files
+%defattr(-,root,root,-)
 %doc Changes LICENSE README
 %{perl_vendorlib}/HTML/
 %{_mandir}/man3/*.3pm*
 
 %changelog
+* Fri Oct 30 2015 Tom Callaway <spot at fedoraproject.org> - 0.15-1.1
+- disable tests for ancient builds
+
 * Mon Oct 12 2015 Tom Callaway <spot at fedoraproject.org> - 0.15-1
 - update to 0.15
 
-- 
cgit v0.11.2


	http://pkgs.fedoraproject.org/cgit/perl-HTML-Scrubber.git/commit/?h=el6&id=8905d55b395887216b2dac1e29c2174f977e6484


More information about the perl-devel mailing list