]> git.pld-linux.org Git - packages/perl-Digest-GOST.git/commitdiff
- generic Source URL, added tests auto/th/perl-Digest-GOST-0.06-1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 29 Apr 2016 17:37:04 +0000 (19:37 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 29 Apr 2016 17:37:04 +0000 (19:37 +0200)
perl-Digest-GOST.spec

index 3b0f942fee939964af7201159802c6dc1b6e80b6..49b701a1f74d5655f86bb7c26c3e9b85761eeffe 100644 (file)
@@ -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
 
This page took 0.120532 seconds and 4 git commands to generate.