File sm-client-tools.spec of Package sm-client-tools.378
#
# spec file for package sm-client-tools
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: sm-client-tools
Version: 1.2.2
Release: 0
Summary: SUSE Manager Client Tools
License: Apache-2.0
Group: Development/Libraries/Python
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: python-devel
%if 0%{?rhel_version} >= 500
BuildRequires: python-setuptools
%endif
%define py_sitedir /usr/share/suse/smdba
%description
SUSE Manager Client Tools for a client machines registration against SUSE Manager or SUSE Manager Proxy.
%prep
%setup -q
%build
%{__python} setup.py build
%install
%{__python} setup.py install --compile --prefix=%{_prefix} --root=%{buildroot} --install-lib=%{py_sitedir}
%{__mkdir_p} %{buildroot}/usr/bin
%{__mkdir_p} %{buildroot}%{py_sitedir}
%{__install} -m 755 sm-client.py %{buildroot}/usr/bin/sm-client
find %{buildroot}/%{py_sitedir} -name '*.pyc' | xargs rm -f
rm -rf %{buildroot}/%{py_sitedir}/SUSE_Manager_Client_Tools*egg-info
%files
%defattr(-,root,root)
%{_bindir}/sm-client
%dir /usr/share/suse
%dir /usr/share/suse/smdba
%dir %{py_sitedir}/de
%dir %{py_sitedir}/de/suse
%dir %{py_sitedir}/de/suse/lib
%dir %{py_sitedir}/de/suse/lib/saferun
%{py_sitedir}/de/__init__.py
%{py_sitedir}/de/suse/__init__.py
%{py_sitedir}/de/suse/lib/__init__.py
%{py_sitedir}/de/suse/lib/saferun/SMChangeManagementLog.py
%{py_sitedir}/de/suse/lib/saferun/SMPackageManager.py
%{py_sitedir}/de/suse/lib/saferun/SMRegTasks.py
%{py_sitedir}/de/suse/lib/saferun/SMRegistrar.py
%{py_sitedir}/de/suse/lib/saferun/SMTransaction.py
%{py_sitedir}/de/suse/lib/saferun/SMUtils.py
%{py_sitedir}/de/suse/lib/saferun/SMSubprocess.py
%{py_sitedir}/de/suse/lib/saferun/__init__.py
%{py_sitedir}/de/suse/lib/saferun/cliprogwid.py
%changelog