# 
# Copyright  (c)  2012  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 1056 2012-08-15 13:39:36Z joergs $

Name:           dass-opsi-tools
URL:            http://trac.dass-it.de/pub/
License:        GPL
Group:          Productivity/Networking/Opsi
Autoreqprov:    on
Summary:        opsi tools
Version:        1.0
Release:        0
Requires:       python-json-rpc
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/opsi-client $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/*
