File perl-Apache-AuthNetLDAP.spec of Package perl-Apache-AuthNetLDAP
#
# spec file for package perl-Apache-AuthNetLDAP
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Apache-AuthNetLDAP
%define cpan_name Apache-AuthNetLDAP
BuildRequires: apache2-devel apache2-mod_perl libapr-util1-devel pcre-devel perl-ldap
BuildRequires: perl-macros
Version: 0.29
Release: 229
%define zver 0.07
Provides: Apache-AuthNetLDAP
Requires: apache2
Requires: apache2-mod_perl perl-ldap perl-Convert-ASN1 perl-URI
Conflicts: perlmod
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic-1.0
Url: http://cpan.org/modules/by-module/Apache/
Summary: use Net::LDAP for user authentication in Apache
Source0: Apache-AuthNetLDAP-%{version}.tar.gz
Source1: Apache-AuthzNetLDAP-%{zver}.tar.bz2
Patch0: Apache-AuthNetLDAP-%{version}-apache2.diff
Patch10: Apache-AuthzNetLDAP-%{zver}-apache2.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
Apache::AuthNetLDAP - mod_perl module that uses the Net::LDAP module
for user authentication for Apache. This module authenticates users
via LDAP using the Net::LDAP module. This module is Graham Barr's
"pure" Perl LDAP API. It also uses all of the same parameters as the
Apache::AuthPerLDAP, but I have added two extra parameters.
Authors:
--------
Mark Wilcox <mewilcox@unt.edu>
%prep
%setup -n %{name}-%{version} -q -b0 -b1 -c
%patch0
%patch10
%build
for i in Apache-AuthNetLDAP-%{version} Apache-AuthzNetLDAP-%{zver} ; do
cd $i
install -d -m755 lib/Apache
mv *.pm lib/Apache
cat MANIFEST | sed s/^.*pm$/lib\\/Apache\\/\&/ >MANIFEST.tmp
mv MANIFEST.tmp MANIFEST
perl Makefile.PL
make %{?_smp_mflags}
make test
cd -
done
%install
rm -rf $RPM_BUILD_ROOT
for i in Apache-AuthNetLDAP-%{version} Apache-AuthzNetLDAP-%{zver} ; do
cd $i
%perl_make_install
cd -
done
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Apache-AuthNetLDAP-%{version}/Changes
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Apache
%{perl_vendorlib}/auto/Apache
%{perl_vendorarch}/auto/Apache-AuthNetLDAP
%{perl_vendorarch}/auto/Apache-AuthzNetLDAP
%changelog