jplesnik pushed to perl-Math-Derivative (master). "0.04 bump; Modernize spec"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Jul 23 12:17:00 UTC 2015
From 51ba6c519a121bb7e15f9f039f32e69d82b1a04f Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik at redhat.com>
Date: Thu, 23 Jul 2015 14:16:45 +0200
Subject: 0.04 bump; Modernize spec
diff --git a/.gitignore b/.gitignore
index fb5962e..24741bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
Math-Derivative-0.01.tar.gz
+/Math-Derivative-0.04.tar.gz
diff --git a/perl-Math-Derivative.spec b/perl-Math-Derivative.spec
index 44564a3..5241ac2 100644
--- a/perl-Math-Derivative.spec
+++ b/perl-Math-Derivative.spec
@@ -1,14 +1,23 @@
Name: perl-Math-Derivative
-Version: 0.01
-Release: 21%{?dist}
+Version: 0.04
+Release: 1%{?dist}
Summary: Numeric 1st and 2nd order differentiation
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Math-Derivative/
Source0: http://www.cpan.org/modules/by-module/Math/Math-Derivative-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: perl(Carp)
+BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(strict)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod) >= 1.22
+BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
@@ -17,39 +26,37 @@ This Perl package exports functions for performing numerical first
data. They both take references to two arrays containing the x and y
ordinates of the data and return an array of the 1st or 2nd derivative at
the given x ordinates. Derivative2 may optionally be given values to use
-for the first dervivative at the start and end points of the data -
+for the first derivative at the start and end points of the data -
otherwise 'natural' values are used.
%prep
%setup -q -n Math-Derivative-%{version}
+# Convert EOL
+sed -i 's/\r//' README
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
+make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
-%doc README Release
+%license LICENSE
+%doc README Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Thu Jul 23 2015 Jitka Plesnikova <jplesnik at redhat.com> - 0.04-1
+- 0.04 bump
+- Modernize spec
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.01-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
@@ -107,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT
* Tue Sep 04 2007 Alex Lancaster <alexl at users.sourceforge.net> 0.01-3
- Clarified license terms: GPL+ or Artistic
-* Fri Mar 25 2007 Alex Lancaster <alexl at users.sourceforge.net> 0.01-2
+* Tue Mar 27 2007 Alex Lancaster <alexl at users.sourceforge.net> 0.01-2
- Add perl(ExtUtils::MakeMaker) BR as suggested by Chris Weyl in
review.
diff --git a/sources b/sources
index e1b0357..76fdd10 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a359b1b4b545c03f4147594fc64420a2 Math-Derivative-0.01.tar.gz
+7e357abf9b3106cc511bfe0e2689df05 Math-Derivative-0.04.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Math-Derivative.git/commit/?h=master&id=51ba6c519a121bb7e15f9f039f32e69d82b1a04f
More information about the perl-devel
mailing list