1 |
jquelin |
13453 |
%define module Net-LDAPapi |
2 |
|
|
%define modparent Net |
3 |
|
|
%define modname LDAPapi |
4 |
|
|
|
5 |
|
|
Summary: Perl bindings for LDAP client library |
6 |
|
|
Name: perl-%{module} |
7 |
|
|
Version: 3.0.3 |
8 |
|
|
Release: %mkrel 3 |
9 |
|
|
License: GPL or Artistic |
10 |
|
|
Group: Development/Perl |
11 |
|
|
URL: http://search.cpan.org/dist/%{module}/ |
12 |
|
|
Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{module}-%{version}.tar.gz |
13 |
|
|
BuildRequires: openldap-devel |
14 |
|
|
BuildRequires: glibc-devel |
15 |
|
|
%if %{?mdkversion:1}%{?!mdkversion:0} |
16 |
|
|
BuildRequires: perl-devel >= 5.8.0 |
17 |
|
|
%endif |
18 |
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot |
19 |
|
|
|
20 |
|
|
%description |
21 |
|
|
Perl bindings for LDAP client library |
22 |
|
|
|
23 |
|
|
%prep |
24 |
|
|
|
25 |
|
|
%setup -q -n %{module}-%{version} |
26 |
|
|
|
27 |
|
|
%build |
28 |
|
|
#find -name \*.pm | xargs chmod 644 |
29 |
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor -sdk 1 -lib_path %{_libdir} -include_path %{_includedir} |
30 |
|
|
%make |
31 |
|
|
|
32 |
|
|
%check |
33 |
|
|
#make test |
34 |
|
|
|
35 |
|
|
%install |
36 |
|
|
rm -rf %{buildroot} |
37 |
|
|
|
38 |
|
|
%makeinstall_std |
39 |
|
|
|
40 |
|
|
%clean |
41 |
|
|
rm -rf %{buildroot} |
42 |
|
|
|
43 |
|
|
%files |
44 |
|
|
%defattr(-,root,root) |
45 |
|
|
%doc Credits Changes examples |
46 |
|
|
%{perl_vendorarch}/%{modparent}/*.pm |
47 |
|
|
%{perl_vendorarch}/auto/%{modparent}/%{modname} |
48 |
|
|
%{_mandir}/*/* |
49 |
|
|
|
50 |
|
|
|