[perl-Prima] 1.42 bump
Petr Pisar
ppisar at fedoraproject.org
Thu Mar 12 15:31:10 UTC 2015
commit 4f6e5674b900ae3ea0e6e94dcd58a7c2132c0500
Author: Petr Písař <ppisar at redhat.com>
Date: Thu Mar 12 16:29:25 2015 +0100
1.42 bump
.gitignore | 1 +
perl-Prima.spec | 42 ++++++++++++++++++++++++++++++++++++------
sources | 2 +-
3 files changed, 38 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0c16be7..a23cbd5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/Prima-1.37.tar.gz
/Prima-1.40.tar.gz
/Prima-1.41.tar.gz
+/Prima-1.42.tar.gz
diff --git a/perl-Prima.spec b/perl-Prima.spec
index 93066b6..0ca5ea4 100644
--- a/perl-Prima.spec
+++ b/perl-Prima.spec
@@ -1,5 +1,7 @@
+%global use_x11_tests 1
+
Name: perl-Prima
-Version: 1.41
+Version: 1.42
Release: 1%{?dist}
Summary: Perl graphic toolkit
License: BSD
@@ -41,6 +43,14 @@ BuildRequires: perl(Encode)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(Tie::Array)
BuildRequires: perl(Tie::RefHash)
+# Tests:
+BuildRequires: perl(Test::More)
+%if %{use_x11_tests}
+# X11 tests:
+BuildRequires: xorg-x11-server-Xvfb
+BuildRequires: xorg-x11-xinit
+BuildRequires: font(:lang=en)
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Virtual packages used to load more modules
Provides: perl(Prima::Buttons) = %{version}
@@ -60,6 +70,15 @@ Prima is a general purpose extensible graphical user interface toolkit with
a rich set of standard widgets and an emphasis on 2D image processing tasks.
A Perl program using PRIMA looks and behaves identically on X, Win32.
+%package Test
+Summary: Test tools for Prima Perl graphic toolkit
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%description Test
+This Perl module contains a small set or tool used for testing of
+Prima-related code together with standard Perl Test:: suite.
+
+
%prep
%setup -q -n Prima-%{version}
@@ -73,22 +92,33 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
-# Remove hard-coded DESTDIR prefix, CPAN RT#88983
-sed -i -e 's,%{buildroot},,g' '%{buildroot}%{perl_vendorarch}/Prima/Config.pm'
-
%check
-make test
+%if %{use_x11_tests}
+ xvfb-run -a make test
+%else
+ make test
+%endif
%files
-%doc Copying Changes README
+%license Copying
+%doc Changes README
%{_bindir}/*
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/gencls.pod
%{perl_vendorarch}/Prima*
+%exclude %{perl_vendorarch}/Prima/Test.*
%{_mandir}/man1/*
%{_mandir}/man3/*
+%exclude %{_mandir}/man3/Prima::Test.*
+
+%files Test
+%{perl_vendorarch}/Prima/Test.*
+%{_mandir}/man3/Prima::Test.*
%changelog
+* Thu Mar 12 2015 Petr Pisar <ppisar at redhat.com> - 1.42-1
+- 1.42 bump
+
* Wed Nov 12 2014 Petr Pisar <ppisar at redhat.com> - 1.41-1
- 1.41 bump
diff --git a/sources b/sources
index 7f8dd1d..416e075 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6c66d7f6f208a8400001b0354796081d Prima-1.41.tar.gz
+44017a874ab7fd4e352d43acbcd277a6 Prima-1.42.tar.gz
More information about the scm-commits
mailing list