From 3090f86431d4a0c9abe771408239e1df8bdb94e89902964b78c3579de605912b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 18 Oct 2018 08:03:15 +0000 Subject: [PATCH] Accepting request 642676 from home:stephenma:branches:devel:languages:python Adding the python-acitoolkit package to devel:languages:python. Derived from the package of the same name in Cloud:Openstack:Pike:cisco-apic. Cleaned up the .spec file. OBS-URL: https://build.opensuse.org/request/show/642676 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acitoolkit?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + python-acitoolkit.changes | 28 +++++++++++++++++++ python-acitoolkit.spec | 59 +++++++++++++++++++++++++++++++++++++++ v0.3.2.tar.gz | 3 ++ 5 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-acitoolkit.changes create mode 100644 python-acitoolkit.spec create mode 100644 v0.3.2.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-acitoolkit.changes b/python-acitoolkit.changes new file mode 100644 index 0000000..0c389c7 --- /dev/null +++ b/python-acitoolkit.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +Tue Oct 16 15:43:21 UTC 2018 - sma@suse.com + +- Changed the spec file to singlespec format. Also removed + duplicates in the RPM. And explicit set the permission of all + files. + +------------------------------------------------------------------- +Mon Oct 15 15:03:28 UTC 2018 - sma@suse.com + +- Corrected the spelling in .spec file: python-sqlalchemy should + be python-SQLAlchemy. + +------------------------------------------------------------------- +Wed Oct 10 15:33:53 UTC 2018 - sma@suse.com + +- License should be Apache-2.0 according to the LICENSE file + in the v0.3.2.tar.gz tarball. + +------------------------------------------------------------------- +Thu Dec 21 12:02:53 UTC 2017 - mmnelemane@suse.com + +- Fix Requires python-oslo.config + +------------------------------------------------------------------- +Fri Aug 25 14:01:52 UTC 2017 - mmnelemane@suse.com + +- Initial packaging for ACI firmware 2.2.2 diff --git a/python-acitoolkit.spec b/python-acitoolkit.spec new file mode 100644 index 0000000..97c458f --- /dev/null +++ b/python-acitoolkit.spec @@ -0,0 +1,59 @@ +# +# 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 diff --git a/v0.3.2.tar.gz b/v0.3.2.tar.gz new file mode 100644 index 0000000..30437a6 --- /dev/null +++ b/v0.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0617aade43ce1bcedb3c6e4a464967c60d97423a0dfd7c29503b7e5806c8eaac +size 3040038