]> git.pld-linux.org Git - packages/perl-DBD-LDAP.git/blob - perl-DBD-LDAP.spec
- tests added
[packages/perl-DBD-LDAP.git] / perl-DBD-LDAP.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    DBD
7 %define         pnam    LDAP
8 Summary:        DBD::LDAP - a DBI driver for LDAP databases
9 Summary(pl):    DBD::LDAP - sterownik DBI do baz danych LDAP
10 Name:           perl-DBD-LDAP
11 Version:        0.06
12 Release:        1
13 License:        GPL or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  db90c6990f309781e94493fcf5402168
17 Patch0:         %{name}-paths.patch
18 BuildRequires:  perl-DBI >= 1.03
19 BuildRequires:  perl-ldap >= 0.01
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 DBD::LDAP - a DBI driver for LDAP databases.
25
26 %description -l pl
27 DBD::LDAP - sterownik DBI do baz danych LDAP.
28
29 %prep
30 %setup -q -n %{pdir}-%{pnam}-%{version}
31 %patch0 -p1
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36 %{__make}
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes README
52 %{perl_vendorlib}/DBD/LDAP.pm
53 %{perl_vendorlib}/JLdap.pm
54 #%{perl_vendorlib}/auto/DBD
55 %{_mandir}/man3/*
This page took 0.062929 seconds and 3 git commands to generate.