[perl-PDL-Graphics-PLplot] Update to 0.59 Add patch to add ./ to path of C test command Re-enable all tests
Orion Poplawski
orion at fedoraproject.org
Thu Sep 8 20:55:41 UTC 2011
commit 2f09bba8f2cda17bc31929bc9dc2d818d5652543
Author: Orion Poplawski <orion at cora.nwra.com>
Date: Thu Sep 8 14:55:28 2011 -0600
Update to 0.59
Add patch to add ./ to path of C test command
Re-enable all tests
.gitignore | 1 +
perl-PDL-Graphics-PLplot-path.patch | 11 +++++++++++
perl-PDL-Graphics-PLplot.spec | 16 +++++++++++-----
sources | 2 +-
4 files changed, 24 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ca8cdd6..733a221 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
PDL-Graphics-PLplot-0.52.tar.gz
/PDL-Graphics-PLplot-0.56.tar.gz
+/PDL-Graphics-PLplot-0.59.tar.gz
diff --git a/perl-PDL-Graphics-PLplot-path.patch b/perl-PDL-Graphics-PLplot-path.patch
new file mode 100644
index 0000000..e90e213
--- /dev/null
+++ b/perl-PDL-Graphics-PLplot-path.patch
@@ -0,0 +1,11 @@
+--- PDL-Graphics-PLplot-0.59/t/plplot_library_tests.t.path 2011-09-08 13:04:57.000000000 -0600
++++ PDL-Graphics-PLplot-0.59/t/plplot_library_tests.t 2011-09-08 14:51:05.584271634 -0600
+@@ -50,7 +50,7 @@
+
+ # Run C version
+ my $devnull = File::Spec->devnull();
+- system "a.out -dev svg -o x${num}c.svg -fam > $devnull 2>&1";
++ system "./a.out -dev svg -o x${num}c.svg -fam > $devnull 2>&1";
+ ok ($? == 0, "C code $c_code ran successfully");
+
+ # Run perl version
diff --git a/perl-PDL-Graphics-PLplot.spec b/perl-PDL-Graphics-PLplot.spec
index 88ae835..326b0f9 100644
--- a/perl-PDL-Graphics-PLplot.spec
+++ b/perl-PDL-Graphics-PLplot.spec
@@ -1,11 +1,13 @@
Name: perl-PDL-Graphics-PLplot
-Version: 0.56
-Release: 2%{?dist}
+Version: 0.59
+Release: 1%{?dist}
Summary: Object-oriented interface from perl/PDL to the PLPLOT plotting library
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/PDL-Graphics-PLplot/
Source0: http://search.cpan.org/CPAN/authors/id/D/DH/DHUNT/PDL-Graphics-PLplot-%{version}.tar.gz
+# Add ./ to path of c test command
+Patch0: perl-PDL-Graphics-PLplot-path.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
@@ -27,6 +29,7 @@ interface which is easier to use.
%prep
%setup -q -n PDL-Graphics-PLplot-%{version}
+%patch0 -p1 -b .path
%build
@@ -48,9 +51,7 @@ rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/PDL/Graphics/PLplot/PLplot.bs
%check
-# Restrict ourselves to the main test for now, otherwise it compares
-# output to pre-generated files which will differ from the ones we generate
-make test TEST_FILES=t/plplot.t
+make test
%clean
@@ -66,6 +67,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Sep 8 2011 Orion Poplawski <orion at cora.nwra.com> - 0.59-1
+- Update to 0.59
+- Add patch to add ./ to path of C test command
+- Re-enable all tests
+
* Wed Aug 24 2011 Orion Poplawski <orion at cora.nwra.com> - 0.56-2
- Disable tests that fail due to upstream test design issues
diff --git a/sources b/sources
index fc1b00b..c7aec90 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3eefea1048052fab50ba1b2b2d2b61b6 PDL-Graphics-PLplot-0.56.tar.gz
+e6d700640304757697c41f4ec3517d51 PDL-Graphics-PLplot-0.59.tar.gz
More information about the scm-commits
mailing list