15
0

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
This commit is contained in:
Tomáš Chvátal
2019-10-14 06:42:55 +00:00
committed by Git OBS Bridge
commit 6bcb97deee
5 changed files with 100 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
librouteros-2.4.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:238aeb646b7bef833d4e70763e9b92a636c1b1883d806c2a880619047ac14882
size 25603

View File

@@ -0,0 +1,12 @@
-------------------------------------------------------------------
Sat Oct 12 08:26:33 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- 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

61
python-librouteros.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# spec file for package python-librouteros
#
# Copyright (c) 2017-2019, Martin Hauke <mardnh@gmx.de>
#
# 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