commit 6bcb97deee09c4d7923cd97856977e1760ebfc340ba4867db98ea4b2f93b4a52 Author: Tomáš Chvátal Date: Mon Oct 14 06:42:55 2019 +0000 Accepting request 737644 from home:mnhauke:network:automation Initial package for python-librouteros OBS-URL: https://build.opensuse.org/request/show/737644 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=1 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/librouteros-2.4.0.tar.gz b/librouteros-2.4.0.tar.gz new file mode 100644 index 0000000..acac4f3 --- /dev/null +++ b/librouteros-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:238aeb646b7bef833d4e70763e9b92a636c1b1883d806c2a880619047ac14882 +size 25603 diff --git a/python-librouteros.changes b/python-librouteros.changes new file mode 100644 index 0000000..abfe5eb --- /dev/null +++ b/python-librouteros.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Sat Oct 12 08:26:33 UTC 2019 - Martin Hauke + +- Update to version 2.4.0 +- Specfile cleanup +- Fix license +- Use tarball from github github + +------------------------------------------------------------------- +Mon Aug 7 10:06:30 UTC 2017 - mardnh@gmx.de + +- Initial package, version 1.0.2 diff --git a/python-librouteros.spec b/python-librouteros.spec new file mode 100644 index 0000000..7bd0f7e --- /dev/null +++ b/python-librouteros.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-librouteros +# +# Copyright (c) 2017-2019, Martin Hauke +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-librouteros +Version: 2.4.0 +Release: 0 +Summary: Python implementation of MikroTik RouterOS API +Group: Development/Languages/Python +License: GPL-2.0-or-later +URL: https://github.com/luqasz/librouteros +Source: https://github.com/luqasz/librouteros/archive/%{version}.tar.gz#/librouteros-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module chainmap} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Python implementation of MikroTik RouterOS API. +http://wiki.mikrotik.com/wiki/API + +%prep +%setup -q -n librouteros-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests/unit + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.rst README.rst +%{python_sitelib}/* + +%changelog