jplesnik pushed to perl-GO-TermFinder (master). "0.86 bump; Modernize spec"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Jul 21 10:51:43 UTC 2015


From 5f035791384c4971d9f35d99c7d88485cf098433 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik at redhat.com>
Date: Tue, 21 Jul 2015 12:51:24 +0200
Subject: 0.86 bump; Modernize spec


diff --git a/.gitignore b/.gitignore
index badb644..8b3f9c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 GO-TermFinder-0.82.tar.gz
+/GO-TermFinder-0.86.tar.gz
diff --git a/GO-TermFinder-filter-provides.sh b/GO-TermFinder-filter-provides.sh
deleted file mode 100644
index 93c81a1..0000000
--- a/GO-TermFinder-filter-provides.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-@@PERL_PROV@@ "$@" | sed -e '/^perl(Hang)$/d' \
-    -e '/^perl(NullHang)$/d'
diff --git a/perl-GO-TermFinder.spec b/perl-GO-TermFinder.spec
index a8c7edf..6b95085 100644
--- a/perl-GO-TermFinder.spec
+++ b/perl-GO-TermFinder.spec
@@ -1,24 +1,34 @@
-
 Name:		perl-GO-TermFinder
-Version:	0.82
-Release:	21%{?dist}
+Version:	0.86
+Release:	1%{?dist}
 Summary:	Identify GO nodes that annotate a group of genes with a significant p-value
 License:	MIT
 Group:		Development/Libraries
 URL:		http://search.cpan.org/dist/Go-TermFinder/
 Source0:	http://www.cpan.org/authors/id/S/SH/SHERLOCK/GO-TermFinder-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:	perl(ExtUtils::MakeMaker), perl(Test::More)
-BuildRequires:	perl(GD), perl(GraphViz)
-
-Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-Requires:	perl(Storable), perl(GD), perl(GraphViz), perl(CGI)
 
-# Filter out perl(Hang) and perl(NullHang) auto-provides.
-Source99:	GO-TermFinder-filter-provides.sh
+BuildRequires:	coreutils
+BuildRequires:	findutils
+BuildRequires:	make
+BuildRequires:	perl
+BuildRequires:	perl(base)
+BuildRequires:	perl(CGI)
+BuildRequires:	perl(diagnostics)
+BuildRequires:	perl(DynaLoader)
+BuildRequires:	perl(Exporter)
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(File::Find)
+BuildRequires:	perl(GD)
+BuildRequires:	perl(GraphViz)
+BuildRequires:	perl(IO::File)
+BuildRequires:	perl(Storable)
+BuildRequires:	perl(strict)
+BuildRequires:	perl(Test)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(vars)
+BuildRequires:	perl(warnings)
 
-%global real_perl_provides %{__perl_provides}
-%define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-provides
+Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 This package is intended to provide a method whereby the P-values of a set
@@ -35,43 +45,34 @@ accurate, though slower to calculate, than the binomial distribution
 
 %prep
 %setup -q -n GO-TermFinder-%{version}
-chmod a-x lib/GO/TermFinder.pm Changes README
-
-sed -e 's,@@PERL_PROV@@,%{real_perl_provides},' %{SOURCE99} > %{__perl_provides}
-chmod +x %{__perl_provides}
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
 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 "*.bs" -exec rm -f {} \;
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 find $RPM_BUILD_ROOT -type f -name "*.pm" -exec chmod 644 {} \;
 
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
-# this test seems to have issues with being unable to resolve the builder's
-# hostname inside mock.
-%{?!_with_termfinder_native: rm t/GO-TermFinder-Native.t }
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT %{__perl_provides}
-
 %files
-%defattr(-,root,root,-)
+%license LICENSE
 %doc Changes README
 %{perl_vendorarch}/*
 %{_mandir}/man3/*
 
 %changelog
+* Tue Jul 21 2015 Jitka Plesnikova <jplesnik at redhat.com> - 0.86-1
+- 0.86 bump
+- Modernize spec
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.82-21
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
diff --git a/sources b/sources
index 5734dd1..0cfee36 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ffebb282cdd3d8dbd5819d57d2c20d37  GO-TermFinder-0.82.tar.gz
+d703bab2856f04de8b64efb8aaa49151  GO-TermFinder-0.86.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-GO-TermFinder.git/commit/?h=master&id=5f035791384c4971d9f35d99c7d88485cf098433


More information about the perl-devel mailing list