]> git.pld-linux.org Git - packages/perl-ldap.git/blobdiff - perl-ldap.spec
- fixed perl-devel BR
[packages/perl-ldap.git] / perl-ldap.spec
index 79ba4dee5940d8009fe620ea2c5d3349c86c9f34..fff11764b3e978187829bca77d81fb81244249b8 100644 (file)
@@ -1,6 +1,6 @@
 #
 # 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
@@ -9,7 +9,8 @@ Name:           perl-ldap
 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
@@ -25,7 +26,7 @@ BuildRequires:        perl-URI >= 1.08
 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)
@@ -48,7 +49,7 @@ poziomu program
        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'
@@ -59,7 +60,6 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
-
 cp -r {contrib,bin} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
This page took 0.025785 seconds and 4 git commands to generate.