15
0
Files
python-acitoolkit/python-acitoolkit.spec

60 lines
1.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-acitoolkit
#
# 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 https://bugs.opensuse.org/
#
%global sname acitoolkit
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-acitoolkit
Version: 0.3.2
Release: 0
Summary: Python library for programming ACI
License: Apache-2.0
URL: http://github.com/datacenter/acitoolkit
Source: https://github.com/datacenter/acitoolkit/archive/v%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: python-SQLAlchemy
Requires: python-click >= 3.3
Requires: python-oslo.config >= 1.4.0
BuildArch: noarch
%python_subpackages
%description
Python Library for configuring APIC Controller.
%prep
%setup -q -n acitoolkit-%{version}
rm -f requirements.txt
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(0644, root, root, -)
%doc README.md
%license LICENSE
%{python_sitelib}/acitoolkit
%{python_sitelib}/acitoolkit-*.egg-info
%changelog