File osmo-python-tests.spec of Package osmo-python-tests
#
# spec file for package osmo-python-tests
#
# Copyright (c) 2018-2021, 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 http://bugs.opensuse.org/
#
Name: osmo-python-tests
Version: 0.3.0.2
Release: 0
Summary: Osmopython: Osmocom testing scripts
License: AGPL-3.0-or-later AND GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://git.osmocom.org/python/osmo-python-tests/
Source: %{name}-%{version}.tar.xz
BuildRequires: python3-Twisted
BuildRequires: python3-setuptools
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%description
Python code (not only) for testing of Osmocom programs.
%prep
%setup -q
# drop shebang
find osmopy/ -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
%build
%python3_build
%install
%python3_install
%python_expand %fdupes %{buildroot}%{python3_sitelib}
%check
python3 setup.py test
%files
%doc README
%{_bindir}/osmo_ctrl.py
%{_bindir}/osmo_interact_ctrl.py
%{_bindir}/osmo_interact_vty.py
%{_bindir}/osmo_rate_ctr2csv.py
%{_bindir}/osmo_verify_transcript_ctrl.py
%{_bindir}/osmo_verify_transcript_vty.py
%{_bindir}/osmodumpdoc.py
%{_bindir}/osmotestconfig.py
%{_bindir}/osmotestvty.py
#%{_bindir}/soap.py
#%{_bindir}/ctrl2cgi.py
%{_bindir}/osmo_trap2cgi.py
%{python3_sitelib}/*
%changelog