From 28aea11009545a00f7ad33419aa8a60b325cfb12 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 29 Apr 2016 19:37:04 +0200 Subject: [PATCH] - 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 -- 2.43.0