Files
perl-Apache-AuthNetLDAP/perl-Apache-AuthNetLDAP.spec
2025-08-12 18:11:42 +02:00

106 lines
3.0 KiB
RPMSpec

#
# spec file for package perl-Apache-AuthNetLDAP
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: perl-Apache-AuthNetLDAP
%define cpan_name Apache-AuthNetLDAP
BuildRequires: apache2-devel
BuildRequires: apache2-mod_perl
BuildRequires: libapr-util1-devel
BuildRequires: pcre-devel
BuildRequires: perl-ldap
BuildRequires: perl-macros
Version: 0.29
Release: 0
%define zver 0.07
Provides: Apache-AuthNetLDAP
Requires: apache2
Requires: apache2-mod_perl
Requires: perl-Convert-ASN1
Requires: perl-URI
Requires: perl-ldap
Conflicts: perlmod
URL: https://metacpan.org/pod/Apache::AuthNetLDAP
Summary: User authentication in Apache with Net::LDAP
License: Artistic-1.0
Group: Development/Libraries/Perl
Source0: Apache-AuthNetLDAP-%{version}.tar.gz
Source1: Apache-AuthzNetLDAP-%{zver}.tar.bz2
Source100: README.md
Patch0: Apache-AuthNetLDAP-%{version}-apache2.diff
Patch10: Apache-AuthzNetLDAP-%{zver}-apache2.diff
Patch11: fixmakefile.patch
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.
%prep
%setup -n %{name}-%{version} -q -c -a0 -a1
%patch -P0
%patch -P10
%patch -P11 -p1
%build
# MANUAL
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}
cd -
done
%check
# MANUAL
for i in Apache-AuthNetLDAP-%{version} Apache-AuthzNetLDAP-%{zver} ; do
cd $i
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