]> git.pld-linux.org Git - packages/perl-Socket6.git/blobdiff - perl-Socket6.spec
- cosmetics
[packages/perl-Socket6.git] / perl-Socket6.spec
index 0057521899c7b7dd9c5c4c8af740c73ef144fca2..03e5190e6b822173c3d8980c68cd5a812a6807c0 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without  tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
 %define                pdir    Socket6
 %define                pnam    Socket6
@@ -21,7 +25,7 @@ Summary(zh_CN):       Socket6 Perl ģ
 Name:          perl-Socket6
 Version:       0.17
 Release:       1
-License:       GPL
+License:       BSD-like
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
 # Source0-md5: 2ebf9659bedabfd9a128889730455c56
@@ -45,11 +49,14 @@ program
 %{__make}
 pod2man --section=3pm Socket6.pm >Socket6.3pm
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_mandir}/man3
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 install Socket6.3pm $RPM_BUILD_ROOT%{_mandir}/man3
 
 %clean
This page took 0.118461 seconds and 4 git commands to generate.