File pyhss-tool.spec of Package pyhss-tool
#
# spec file for package pyhss-tool
#
# Copyright (c) 2024, 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/
#
Name: pyhss-tool
Version: 0~git20240512
Release: 0
Summary: CLI tool to work with the PyHSS REST API
License: CC0-1.0
Group: Productivity/Telephony/Servers
URL: https://gitea.osmocom.org/laforge/pyhss-tool
Source: %{name}-%{version}.tar.xz
Requires: python3-requests
Requires: python3-typing
BuildArch: noarch
%description
CLI tool to work with the PyHSS REST API.
%prep
%setup -q
sed -i 's|#!/usr/bin/env python3|#!/usr/bin/python3|g' pyhss-tool.py
%build
%install
install -Dpm 0755 pyhss-tool.py %{buildroot}%{_bindir}/pyhss-tool
%files
%{_bindir}/pyhss-tool
%changelog