File whatip.spec of Package whatip
#
# spec file for package whatip
#
# Copyright (c) 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 https://bugs.opensuse.org/
#
Name: whatip
Version: 1.0
Release: 0
Summary: Network information tool
License: GPL-3.0-or-later
Group: Productivity/Networking/Diagnostic
#Git-Clone: https://gitlab.gnome.org/GabMus/whatip.git
URL: https://whatip.gabmus.org/
Source: https://gitlab.gnome.org/GabMus/whatip/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
Requires: iperf
Requires: python3-netaddr
Recommends: %{name}-lang
Recommends: avahi
BuildArch: noarch
%description
Get your IP easily: Be it local, public or a virtual interface's,
it's easy to understand and one click away.
Make sure your VPN is working: What IP shows your location based
on your IP address, so that you can make sure your VPN is working.
Test your ports: List the ports listening on your system, and
check if they're publicly reachable.
Discover devices on your LAN: List all devices on your LAN and
easily copy their addresses.
%prep
%setup -q
# starting with Tumbleweed the services file moved to /usr/etc/
%if 0%{?suse_version} > 1500
sed -i 's|/etc/services|/usr/etc/services|g' whatip/port_listbox_row.py
%endif
%build
%meson
%meson_build
%install
%meson_install
%find_lang %{name} %{name}.lang
%files -f %{name}.lang
%license LICENSE
%doc README.md
%{_bindir}/whatip
%{python_sitelib}/whatip*
%{_datadir}/applications/org.gabmus.whatip.desktop
%{_datadir}/dbus-1/services/org.gabmus.whatip.service
%{_datadir}/glib-2.0/schemas/org.gabmus.whatip.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/org.gabmus.whatip.svg
%{_datadir}/icons/hicolor/symbolic/apps/org.gabmus.whatip-symbolic.svg
%{_datadir}/metainfo/org.gabmus.whatip.appdata.xml
%dir %{_datadir}/whatip
%{_datadir}/whatip/org.gabmus.whatip.gresource
%changelog