From e8992b8086c76e6e9b3a993cd5904440cfda4c61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Tue, 12 Jan 2016 12:26:46 +0100
Subject: Specify all dependencies and enable tests
---
perl-Pango.spec | 39 +++++++++++++++++++++++++++++++++++----
1 file changed, 35 insertions(+), 4 deletions(-)
diff --git a/perl-Pango.spec b/perl-Pango.spec
index 3798fd1..0eeab2e 100644
--- a/perl-Pango.spec
+++ b/perl-Pango.spec
@@ -1,3 +1,5 @@
+%global use_x11_tests 1
+
Name: perl-Pango
Version: 1.226
Release: 6%{?dist}
@@ -8,13 +10,38 @@ URL: http://search.cpan.org/dist/Pango/
Source0:
http://www.cpan.org/authors/id/T/TS/TSCH/Pango-%{version}.tar.gz
# Fix pkgconfig output concatenation with pkgconfig-0.29, bug #1297705
Patch0: Pango-1.226-fix-pangocairo_libs.patch
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: gcc
+BuildRequires: make
+BuildRequires: pango-devel >= 1.0.0
+BuildRequires: perl
+BuildRequires: perl-devel
+BuildRequires: perl(Cairo) >= 1.000
+BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::Depends) >= 0.300
+BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::PkgConfig)
-BuildRequires: perl(Cairo) >= 1.000
+BuildRequires: perl(File::Spec)
BuildRequires: perl(Glib) >= 1.220
+BuildRequires: perl(Glib::CodeGen)
BuildRequires: perl(Glib::MakeHelper)
-BuildRequires: pango-devel >= 1.0.0
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+BuildRequires: pkgconfig(pango)
+BuildRequires: pkgconfig(pangocairo)
+# Run-time:
+BuildRequires: perl(DynaLoader)
+BuildRequires: perl(Exporter)
+# Tests:
+BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
+# Optional tests:
+%if %{use_x11_tests}
+BuildRequires: font(:lang=en)
+BuildRequires: perl(Gtk2) >= 1.220
+BuildRequires: xorg-x11-server-Xvfb
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
Requires: perl(Cairo) >= 1.000
@@ -44,8 +71,11 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {}
2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
-# Tests break in odd ways on koji, possibly no-display to blame?
-# make test
+%if %{use_x11_tests}
+ xvfb-run -a make test
+%else
+ make test
+%endif
%files
%defattr(-,root,root,-)
@@ -57,6 +87,7 @@ chmod -R u+w $RPM_BUILD_ROOT/*
%changelog
* Tue Jan 12 2016 Petr Pisar <[email protected]> - 1.226-6
- Fix pkgconfig output concatenation with pkgconfig-0.29 (bug #1297705)
+- Specify all dependencies and enable tests
* Thu Jun 18 2015 Fedora Release Engineering <[email protected]>
- 1.226-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.11.2
http://pkgs.fedoraproject.org/cgit/perl-Pango.git/commit/?h=master&id=e8992b8086c76e6e9b3a993cd5904440cfda4c61
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]