#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
Summary: perl-ldap module - a client interface to LDAP servers
Version: 0.31
Release: 1
Epoch: 2
-License: GPL
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Net/%{name}-%{version}.tar.gz
# Source0-md5: b3107452e2bb4d74d4b9892d61d50137
BuildRequires: perl-XML-SAX
BuildRequires: perl-libwww
%endif
-BuildRequires: perl-devel >= 5.8.0
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
# this must be done after tests because of signature checking
find blib -type f | xargs -r perl -pi -e 's|/local/bin/perl\d*|/bin/perl|g'
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-
cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean