File python-oslo.rootwrap.spec of Package python-oslo.rootwrap
#
# spec file for package python-oslo.rootwrap
#
# Copyright (c) 2015 SUSE LINUX 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/
#
%define component oslo_rootwrap
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
Name: python-oslo.rootwrap
Version: 4.1.0
Release: 0
Summary: OpenStack RootWrap
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/oslo/
Source: http://tarballs.openstack.org/oslo.rootwrap/oslo.rootwrap-%{version}.tar.gz
Source99: rpmlintrc
# PATCH-FIX-UPSTREAM 0001-Fix-running-unknown-commands-in-daemon-mode.patch -- https://review.openstack.org/#/c/385785/
Patch1: 0001-Fix-running-unknown-commands-in-daemon-mode.patch
BuildRequires: fdupes
BuildRequires: openstack-suse-macros
BuildRequires: python-devel
BuildRequires: python-pbr
Requires: python-six >= 1.9.0
Provides: python-oslo.rootwrap = 1.3.0.0a1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Oslo Rootwrap library.
%package test
Summary: OpenStack RootWrap API - test suite
Group: System/Management
Requires: %{name} = %{version}
Requires: python-eventlet >= 0.17.3
Requires: python-fixtures >= 0.3.14
Requires: python-mock >= 1.0
Requires: python-oslotest >= 1.5.1
Requires: python-python-subunit >= 0.0.18
Requires: python-testrepository >= 0.0.18
Requires: python-testscenarios >= 0.4
Requires: python-testtools >= 0.9.36
%description test
This package contains testsuite files for %{name}.
%prep
%setup -q -n oslo.rootwrap-%{version}
%patch1 -p1
%build
python setup.py build
%install
python setup.py install --skip-build --root=%{buildroot} --prefix=%{_prefix} --install-data=%{python_sitelib}
#rm doc/build/html/.buildinfo
%fdupes doc
%{openstack_test_package_install}
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst AUTHORS
%{_bindir}/oslo-rootwrap
%{_bindir}/oslo-rootwrap-daemon
%{python_sitelib}/oslo_rootwrap
%{python_sitelib}/*.egg-info
%files test
%defattr(-,root,root,-)
%{_localstatedir}/lib/%{name}-test/
%changelog