2015-07-02 16:04:09 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package speedtest-cli
|
|
|
|
|
#
|
2024-08-12 07:03:10 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-07-02 16:04:09 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-10-22 14:08:37 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-07-02 16:04:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define oname speedtest_cli
|
|
|
|
|
Name: speedtest-cli
|
2021-04-13 06:10:35 +00:00
|
|
|
Version: 2.1.3
|
2015-07-02 16:04:09 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Command line interface for testing internet bandwidth
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: System/Benchmark
|
2019-10-22 14:08:37 +00:00
|
|
|
URL: https://github.com/sivel/speedtest-cli
|
2015-07-02 16:04:09 +00:00
|
|
|
Source0: https://github.com/sivel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2024-08-12 07:03:10 +00:00
|
|
|
# PATCH-FIX-UPSTREAM set-secure-default.patch -- Set secure connection as default
|
|
|
|
|
Patch0: set-secure-default.patch
|
2017-11-26 21:21:22 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildRequires: python3-base
|
2016-02-16 08:33:56 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2015-07-02 16:04:09 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Command line interface for testing internet bandwidth using
|
|
|
|
|
speedtest.net
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-08-12 07:03:10 +00:00
|
|
|
%autosetup -p1
|
2021-04-13 06:10:35 +00:00
|
|
|
sed -i -e '/^#!\//, 1d' *.py
|
2015-07-02 16:04:09 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-11-26 21:21:22 +00:00
|
|
|
%python3_build
|
2015-07-02 16:04:09 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-11-26 21:21:22 +00:00
|
|
|
%python3_install
|
|
|
|
|
install -Dpm 0644 %{name}.1 \
|
|
|
|
|
%{buildroot}%{_mandir}/man1/%{name}.1
|
|
|
|
|
ln -s %{_mandir}/man1/%{name}.1 \
|
|
|
|
|
%{buildroot}%{_mandir}/man1/speedtest.1
|
2015-07-02 16:04:09 +00:00
|
|
|
|
|
|
|
|
%files
|
2019-10-22 14:08:37 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2015-08-10 11:59:29 +00:00
|
|
|
%{_bindir}/speedtest
|
2015-07-02 16:04:09 +00:00
|
|
|
%{_bindir}/%{name}
|
2015-08-10 11:59:29 +00:00
|
|
|
%{_mandir}/man1/speedtest.1%{ext_man}
|
|
|
|
|
%{_mandir}/man1/%{name}.1%{ext_man}
|
2017-11-26 21:26:00 +00:00
|
|
|
%{python3_sitelib}/*
|
2015-07-02 16:04:09 +00:00
|
|
|
|
|
|
|
|
%changelog
|