File python-dib-utils.spec of Package python-dib-utils
#
# spec file for package python-dib-utils
#
# Copyright (c) 2018 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/
#
%global sname dib-utils
Name: python-dib-utils
Version: 0.0.11
Release: 0
Summary: Pieces of diskimage-builder that are useful standalone
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/%{sname}
Source0: https://tarballs.openstack.org//%{sname}/%{sname}-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-d2to1
BuildRequires: python-devel
BuildRequires: python-pbr
BuildArch: noarch
%description
Pieces of diskimage-builder that are useful standalone.
This allows them to be used without pulling in all of
diskimage-builder and its dependencies.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build
%py2_build
%install
%py2_install
%check
tests/run_tests.sh
%files
%license LICENSE
%doc README.md
%{_bindir}/dib-run-parts
%{python2_sitelib}/*.egg-info
%changelog