File paping.spec of Package paping
#
# spec file for package paping
#
# Copyright (c) 2017, 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: paping
Version: 1.5.5.git1452081947.1ef470a
Release: 0
Summary: A cross-platform TCP port testing tool
License: MIT
Group: Productivity/Networking/Diagnostic
Url: https://github.com/rampageX/
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Paping (pronounced pah ping) is a computer network administration utility
used to test the reachability of a host on an Internet Protocol (TCP/IP)
network and to measure the time it takes to connect to a specified port.
%prep
%setup -q
%build
cd src/
g++ %{optflags} print.cpp stats.cpp timer.cpp arguments.cpp i18n.cpp host.cpp socket.cpp main.cpp -o paping
%install
install -Dpm 0755 src/paping %{buildroot}/%{_bindir}/paping
%files
%defattr(-,root,root)
%{_bindir}/paping
%doc COPYRIGHT README.md
%changelog