[packages/perl-Digest-GOST] - generic Source URL, added tests
qboosh
qboosh at pld-linux.org
Fri Apr 29 19:36:24 CEST 2016
commit 28aea11009545a00f7ad33419aa8a60b325cfb12
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Apr 29 19:37:04 2016 +0200
- generic Source URL, added tests
perl-Digest-GOST.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/perl-Digest-GOST.spec b/perl-Digest-GOST.spec
index 3b0f942..49b701a 100644
--- a/perl-Digest-GOST.spec
+++ b/perl-Digest-GOST.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
%define pdir Digest
%define pnam GOST
@@ -9,10 +13,13 @@ Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://search.cpan.org/CPAN/authors/id/G/GR/GRAY/%{pdir}-%{pnam}-%{version}.tar.gz
+Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: d91904e56300d08956ea5f1e174863f3
URL: http://search.cpan.org/dist/Digest-GOST/
BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires: perl-Test-Simple >= 0.82
+%endif
BuildRequires: rpm-perlprov >= 4.1-13
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -38,6 +45,8 @@ należy użyć modułu Digest::GOST::CryptoPro.
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
+%{?with_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Digest-GOST.git/commitdiff/28aea11009545a00f7ad33419aa8a60b325cfb12
More information about the pld-cvs-commit
mailing list