Files
perl-Net-LDAP-SimpleServer/perl-Net-LDAP-SimpleServer.spec
2025-08-12 18:16:01 +02:00

108 lines
3.5 KiB
RPMSpec

#
# spec file for package perl-Net-LDAP-SimpleServer
#
# Copyright (c) 2017 SUSE LINUX 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/
#
Name: perl-Net-LDAP-SimpleServer
Version: 0.0.21
Release: 0
%define cpan_name Net-LDAP-SimpleServer
Summary: Minimal-configuration, read-only LDAP server
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Net-LDAP-SimpleServer/
Source0: https://cpan.metacpan.org/authors/id/R/RU/RUSSOZ/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Authen::SASL)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Path) >= 2.080000
BuildRequires: perl(Net::LDAP)
BuildRequires: perl(Net::LDAP::Constant)
BuildRequires: perl(Net::LDAP::Filter)
BuildRequires: perl(Net::LDAP::FilterMatch)
BuildRequires: perl(Net::LDAP::LDIF)
BuildRequires: perl(Net::LDAP::Server)
BuildRequires: perl(Net::LDAP::Util)
BuildRequires: perl(Net::Server) >= 2.003
BuildRequires: perl(Proc::Fork)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::UseAllModules)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(UNIVERSAL::isa)
Requires: perl(File::HomeDir)
Requires: perl(File::Path) >= 2.080000
Requires: perl(Net::LDAP::Constant)
Requires: perl(Net::LDAP::Filter)
Requires: perl(Net::LDAP::FilterMatch)
Requires: perl(Net::LDAP::LDIF)
Requires: perl(Net::LDAP::Server)
Requires: perl(Net::LDAP::Util)
Requires: perl(Net::Server) >= 2.003
Requires: perl(UNIVERSAL::isa)
%{perl_requires}
%description
As the name suggests, this module aims to implement a simple LDAP server,
using many components already available in CPAN. It can be used for
prototyping and/or development purposes. This is *NOT* intended to be a
production-grade server, although some brave souls in small offices might
use it as such.
The server will load a LDIF file and serve its contents through the LDAP
protocol. Many operations are *NOT* available yet, some will never be.
The constructors will follow the rules defined by Net::Server, but the most
useful are the two forms described below.
'Net::LDAP::SimpleServer' will use the directory '${HOME}/.ldapsimple' as a
'BASEDIR' for server files. If there exists a file:
BASEDIR/server.conf
it will be used as the default configuration file. Similarly, if there
exists a file:
BASEDIR/server.ldif
it will be used as the default data file for this server.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples README README.MD TODO
%license LICENSE
%changelog