[packages/perl-Filter] - updated to 1.64, added tests

qboosh qboosh at pld-linux.org
Fri Feb 3 20:53:25 CET 2023


commit c57f5e750af44dada57fabf4d6a3f78bb8a7db8d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Feb 3 20:54:51 2023 +0100

    - updated to 1.64, added tests

 perl-Filter.spec | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/perl-Filter.spec b/perl-Filter.spec
index a42a766..5f32dc5 100644
--- a/perl-Filter.spec
+++ b/perl-Filter.spec
@@ -1,14 +1,21 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
 Summary:	Source filters
 Summary(pl.UTF-8):	Filtry źródeł 
 Name:		perl-Filter
-Version:	1.60
-Release:	3
+Version:	1.64
+Release:	1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
-Source0:	http://www.cpan.org/modules/by-module/Filter/Filter-%{version}.tar.gz
-# Source0-md5:	2c23bef617f75b5ca48970e7ff856ab6
+Source0:	https://www.cpan.org/modules/by-module/Filter/Filter-%{version}.tar.gz
+# Source0-md5:	b524e63f44e8a7724d31ef91eb5a7d53
 URL:		https://metacpan.org/dist/Filter
+%if %{with tests}
+BuildRequires:	perl-Test-Simple >= 0.88
+%endif
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	rpmbuild(macros) >= 1.745
@@ -35,6 +42,8 @@ preprocesor C zanim kompilator ujrzy kod.
 	CC="%{__cc}" \
 	OPTIMIZE="%{rpmcflags}"
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Filter.git/commitdiff/c57f5e750af44dada57fabf4d6a3f78bb8a7db8d



More information about the pld-cvs-commit mailing list