File sc_mkwsconfig.spec of Package sc_mkwsconfig
#
# spec file for package sc_mkwsconfig
#
# Copyright (c) 2002 SuSE AG Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# $Id: sc_mkwsconfig.spec 5669 2019-05-14 08:44:46Z joergs $
#
%if 0%{?suse_version} >= 1210
%define initsystem systemd
%else
%define initsystem SysV
%endif
Name: sc_mkwsconfig
License: GPL
Group: Applications/SmartClient
Autoreqprov: on
Requires: sc_base perl-SmartClient sc_hardware
Summary: SmartClient: get workstation information from LDAP and password server
Url: http://trac.dass-it.de/pub/
Version: 1.1.5669
Release: 0
Source: sc_mkwsconfig_1.1.5669.orig.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: sc_base pam gzip
%if %{initsystem} == systemd
BuildRequires: systemd
%endif
BuildArch: noarch
%description
SmartClient: get workstation information from LDAP and password server
Authors:
--------
Joerg Steffens
%prep
%setup -c
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/sbin
install -m 755 sc_mkwsconfig.pl $RPM_BUILD_ROOT/usr/sbin/
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
install -m 755 sc_mkwsconfig $RPM_BUILD_ROOT/etc/init.d/
ln -sf ../../etc/init.d/sc_mkwsconfig $RPM_BUILD_ROOT/usr/sbin/rcsc_mkwsconfig
%if %{initsystem} == systemd
mkdir -p $RPM_BUILD_ROOT/%_unitdir/
install -m 644 sc_mkwsconfig.service $RPM_BUILD_ROOT/%_unitdir/
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/sbin/sc_mkwsconfig.pl
%config /etc/init.d/sc_mkwsconfig
/usr/sbin/rcsc_mkwsconfig
%if %{?initsystem} == systemd
%_unitdir/sc_mkwsconfig.service
%endif