]> git.pld-linux.org Git - packages/perl-Filter.git/commitdiff
- updated to 1.64, added tests auto/th/perl-Filter-1.64-1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 3 Feb 2023 19:54:51 +0000 (20:54 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 3 Feb 2023 19:54:51 +0000 (20:54 +0100)
perl-Filter.spec

index a42a766789b76d00f2da2e318c143309e459bf27..5f32dc599345f4ba8a8474a1a4fae74f2048b1c8 100644 (file)
@@ -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}
This page took 0.266089 seconds and 4 git commands to generate.