[perl-CSS-DOM] - Patch to avoid incorrect automatic dependencies with rpmbuild < 4.9.0-rc1. - Bring back BuildRoot

Ville Skyttä scop at fedoraproject.org
Wed Feb 16 22:28:33 UTC 2011


commit 3ef40f69d80d48aa9a2900e874eb0afbc241e8c7
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Feb 17 00:28:30 2011 +0200

    - Patch to avoid incorrect automatic dependencies with rpmbuild < 4.9.0-rc1.
    - Bring back BuildRoot lost in previous commit.
    - Fix perl(Encode) build dependency.

 perl-CSS-DOM-0.14-rpmdeps.patch |   16 ++++++++++++++++
 perl-CSS-DOM.spec               |   13 +++++++++++--
 2 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/perl-CSS-DOM-0.14-rpmdeps.patch b/perl-CSS-DOM-0.14-rpmdeps.patch
new file mode 100644
index 0000000..95a0f75
--- /dev/null
+++ b/perl-CSS-DOM-0.14-rpmdeps.patch
@@ -0,0 +1,16 @@
+diff -up CSS-DOM-0.14/lib/CSS/DOM.pm~ CSS-DOM-0.14/lib/CSS/DOM.pm
+--- CSS-DOM-0.14/lib/CSS/DOM.pm~	2010-12-10 10:07:15.000000000 +0200
++++ CSS-DOM-0.14/lib/CSS/DOM.pm	2011-02-17 00:13:58.991872662 +0200
+@@ -4,10 +4,8 @@ use 5.008002;
+ 
+ $VERSION = '0.14';
+ 
+-use   # to keep CPANTS happy :-)
+-   strict;
+-use   # same here
+-   warnings;
++use strict;    # to keep CPANTS happy :-)
++use warnings;  # same here
+ 
+ use CSS::DOM::Exception
+ 	'SYNTAX_ERR' ,'HIERARCHY_REQUEST_ERR', 'INDEX_SIZE_ERR';
diff --git a/perl-CSS-DOM.spec b/perl-CSS-DOM.spec
index 80b830e..bb26224 100644
--- a/perl-CSS-DOM.spec
+++ b/perl-CSS-DOM.spec
@@ -1,16 +1,19 @@
 Name:           perl-CSS-DOM
 Version:        0.14
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Document Object Model for Cascading Style Sheets
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/CSS-DOM/
 Source0:        http://www.cpan.org/authors/id/S/SP/SPROUT/CSS-DOM-%{version}.tar.gz
+# to avoid false "perl()" and "perl(#)" dependencies with rpmbuild < 4.9.0-rc1
+Patch0:         %{name}-0.14-rpmdeps.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  perl(Clone) >= 0.09
-Requires:       perl(Encode) >= 2.10
+BuildRequires:  perl(Encode) >= 2.10
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Test::More)
 # Dependencies not detected automatically:
@@ -25,6 +28,7 @@ the W3C DOM recommendation.
 
 %prep
 %setup -q -n CSS-DOM-%{version}
+%patch0 -p1
 
 
 %build
@@ -56,6 +60,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Feb 17 2011 Ville Skyttä <ville.skytta at iki.fi> - 0.14-5
+- Patch to avoid incorrect automatic dependencies with rpmbuild < 4.9.0-rc1.
+- Bring back BuildRoot lost in previous commit.
+- Fix perl(Encode) build dependency.
+
 * Tue Feb 15 2011 Marcela Mašláňová <mmaslano at redhat.com> - 0.14-4
 - remove filter, which is now useless with RPM4.9
 



More information about the perl-devel mailing list