Sisyphus
: 7 2020 | : 17687 | : 18845048
en ru br
ALT
S:2.00-alt2
5.1: 2.00-alt1
4.1: 2.00-alt1
4.0: 2.00-alt1
3.0:
+backports:2.00-alt0.M30.1
www.altlinux.org/Changes

::
: ldapsh

             Sources      Gear   Bugs and FR  Repocop 

# SPEC file for ldapsh
#

%define version 2.00
%define release alt0.M30.1

Name: ldapsh
Version: %version
Release: %release

Summary: a console tool for searching/managing data in LDAP
Summary(ru_RU.UTF-8): консольная утилита для поиска/управления данными в LDAP

License: GPL
Group: Databases
Packager: Nikolay Fetisov <naf at altlinux.ru>

URL: http://reductivelabs.com/projects/ldapsh
# http://search.cpan.org/~loosifer/ldapsh/

Source: http://search.cpan.org/CPAN/authors/id/L/LO/LOOSIFER/%name-%version.tar.gz
Source1: %name-2.00-alt-test_config.conf
Patch0: %name-2.00-alt-docs_fix.patch
Patch1: %name-2.00-alt-use_vars.patch
Patch2: %name-2.00-alt-help_msg_fix.patch
Patch3: %name-2.00-alt-help_msg_align.patch
Patch4: %name-2.00-alt-config_msg.patch
Patch5: %name-2.00-alt-fix_undef_print.patch
Patch6: %name-2.00-alt-fix_parse.patch

BuildArch: noarch

AutoReqProv: perl, yes
BuildPreReq: perl-devel
BuildPreReq: perl-DateManip perl-ldap perl-ParseLex perl-Parse-RecDescent
BuildPreReq: perl-Convert-ASN1 perl-Encode perl-Term-ReadKey perl-Term-ReadLine-Gnu

%description
ldapsh is an interactive LDAP shell, written entirely in Perl and
using Net::LDAP. It's extensible in that it is relatively easy to
add  new commands to it.  It is  largely modeled  after the  Unix
shell, but does not at this point allow multiple tokens through a
mechanism like pipes.

%description -l ru_RU.UTF-8
ldapsh - интерактивная оболочка для LDAP, написанная целиком на Perl
и использующая модуль Net::LDAP.  ldapsh позволяет  перемещаться  по
дереву LDAP,  просматривать, изменять  и создавать новые записи. Она
расширяема, в неё сравнительно легко добавить новые команды.  Работа
с ldapsh похожа на работу с обычным командным  интерпретатором UNIX,
хотя на данный момент в ней нет возможности объединения команд через
механизмы перенаправления ввода/вывода.


%prep
%setup -q -n %name-%version
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6

%__subst 's at ##DOCDIR## at %_docdir/%name-%version at ' lib/Net/LDAP/Config.pm

# In 2.00 tarball sample ldapsh_config named as ldapsh_profile and

# does not matched test suit. Fix this.
%__subst 's at examples/ldapsh_profile at examples/ldapsh_config at ' t/00source-tests.t
%__cp -- %SOURCE1 examples/ldapsh_config
%__rm -f -- examples/ldapsh_profile

# Create link to GPL v2. license file

%__mv -f LICENSE LICENSE.GPL.orig
%__ln_s $(relative %_licensedir/GPL-2 %_docdir/%name/LICENSE) LICENSE

%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%doc README TODO CHANGES COMMANDS
%doc --no-dereference LICENSE
%doc examples*

%_bindir/%name
%_man1dir/*
%exclude %perl_vendor_man3dir/*
%perl_vendor_privlib/Net/LDAP/*
%exclude /.perl.req

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin