[perl-DBD-SQLite2] Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS #914266)

corsepiu corsepiu at fedoraproject.org
Fri Mar 1 10:36:29 UTC 2013


commit 2acd88b5095c414e181fae4bd070f706adc46ca2
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Fri Mar 1 11:36:15 2013 +0100

    Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS #914266)
    
    - Modernize spec.
    - Reactivate testsuite.

 perl-DBD-SQLite2.spec |   32 ++++++++++++++++++++++----------
 1 files changed, 22 insertions(+), 10 deletions(-)
---
diff --git a/perl-DBD-SQLite2.spec b/perl-DBD-SQLite2.spec
index 511082f..cd45ae2 100644
--- a/perl-DBD-SQLite2.spec
+++ b/perl-DBD-SQLite2.spec
@@ -1,16 +1,19 @@
 Name:           perl-DBD-SQLite2
 Version:        0.33
-Release:        21%{?dist}
+Release:        22%{?dist}
 Summary:        Self Contained RDBMS in a DBI Driver (sqlite 2.x)
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/DBD-SQLite2
 Source0:        http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/DBD-SQLite2-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Patch0:		DBD-SQLite2-systemlibs.patch
 
-BuildRequires:  perl(DBI), perl(Test::More)
-#BuildRequires:	sqlite2-devel
+BuildRequires:	perl(DBI)
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Test::More)
+BuildRequires:	sqlite2-devel
+
+BuildRequires:  perl(Fatal)
 Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
@@ -20,12 +23,19 @@ Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 %setup -q -n DBD-SQLite2-%{version}
 %patch0 -p1
 
+# Make sure to be using the system-wide version
+rm sqlite.h
+
+# https://rt.cpan.org/Public/Bug/Display.html?id=55636
+# Unclear whether test is broken or not supposed to be executed
+# Rename to avoid it being executed
+mv t/ak-dbd.t t/ak-dbd.t.bak
+
 %build
 CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
 
 %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 f -name '*.bs' -a -size 0 -exec rm -f {} ';'
@@ -33,11 +43,8 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
 chmod -R u+w $RPM_BUILD_ROOT/*
 
 %check
-# Doesn't work right at all.
-# make test
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+# t/ak-dbd.t doesn't work (c.f. above)
+make test
 
 %files
 %defattr(-,root,root,-)
@@ -48,6 +55,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Mar 01 2013 Ralf Corsépius <corsepiu at fedoraproject.org> - 0.33-22
+- Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS #914266)
+- Modernize spec.
+- Reactivate testsuite.
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.33-21
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list