File perl-SmartClient.spec of Package perl-SmartClient

#
# spec file for package perl-SmartClient
# 
# Copyright  (c)  
#   2001-2003  SuSE GmbH  Nuernberg, Germany.
#   2005-2019  dass IT GmbH, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# 
# please send bugfixes or comments to feedback@suse.de.
#


Name:           perl-SmartClient
License:        GPL
Group:          Development/Libraries/Perl
Autoreqprov:    on
Requires:       sc_base >= 1.4.9785
Requires:       perl-ldap perl-Net-IP perl-Net-Netmask perl-Log-Log4perl perl-Log-Dispatch perl-Unix-Syslog perl-IPC-Run
Summary:        Perl modules for SmartClient Framework
Version: 1.16.5667
Release:        0
Source: perl-SmartClient_1.16.5667.orig.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf automake cracklib gdbm gzip libtool make pam perl tar
BuildRequires:  perl-macros

%description
Perl modules for the SmartClient Framework

Authors:
--------
    Ralf Doppelstein
    Frank Balzer
    Stephan Duehr
    Jörg Steffens
    Felix Schumacher

%prep
%setup -c



%build
cd SmartClient

# legacy: link to old name
ln -s LdapCheck.pm Ldapcheck.pm

perl Makefile.PL
make
cd ..



%check
cd SmartClient
make test
cd ..



%install

cd SmartClient

%perl_make_install
%perl_process_packlist
%perl_gen_filelist

cd ..


mkdir -p $RPM_BUILD_ROOT/usr/bin/
install sc_getattr.pl $RPM_BUILD_ROOT/usr/bin/sc_getattr.pl




%clean
# clean up after build
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d "$RPM_BUILD_ROOT" ] && rm -rf $RPM_BUILD_ROOT



%files -f SmartClient/%{name}.files
%defattr(-,root,root)
%doc README
/usr/bin/sc_getattr.pl