# # Copyright (c) 2012-2021 dass IT GmbH, Koeln, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # $Id: dass-opsi-tools.spec 1254 2021-02-15 17:34:36Z joergs $ Name: dass-opsi-tools URL: http://trac.dass-it.de/pub/ License: GPL-2.0-or-later Group: Productivity/Networking/Opsi Autoreqprov: on Summary: OPSI admin tools from dass IT Version: 1.3 Release: 0 Requires: python-dateutil Requires: python-tinyrpc # python-argparse is part of python >= 2.7 %if ( ( 0%{?suse_version} && 0%{?suse_version} <= 1110 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 600 ) ) # python 2.6 Requires: python-argparse %endif Source: %{name}_%{version}.orig.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %if 0%{?suse_version} BuildRequires: gzip pam-modules tar %endif %description dass-opsi-tools contains some tools to help working in OPSI environments %prep %setup -c %build %install mkdir -p $RPM_BUILD_ROOT/usr/bin/ install -m 755 usr/bin/opsiclient $RPM_BUILD_ROOT/usr/bin/ #install -m 755 usr/bin/opsi-getDepots.py $RPM_BUILD_ROOT/usr/bin/ install -m 755 usr/bin/opsiws.sh $RPM_BUILD_ROOT/usr/bin/ %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/bin/*