File httping.spec of Package httping

#
# spec file for package httping
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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:           httping
Version:        2.5
Release:        0
Summary:        Ping-like tool for HTTP requests
License:        GPL-2.0
Group:          Productivity/Networking/Web/Utilities
Url:            http://www.vanheusden.com/httping/
Source:         http://www.vanheusden.com/httping/httping-%{version}.tgz
BuildRequires:  fftw3-devel
BuildRequires:  glibc-devel
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Httping is like 'ping' but for http-requests.
Give it an url, and it'll show you how long it takes to connect, send a
request and retrieve the reply (only the headers). Be aware that the
transmission across the network also takes time!

%prep
%setup -q

%build
make \
    OFLAGS="%{optflags} -D_GNU_SOURCE" \
    STRIP=touch \
    PREFIX="%{_prefix}" \
    CC="gcc" \
    SSL=yes \
    DEBUG=no \
    %{?_smp_mflags}

%install
%make_install DESTDIR=%{buildroot} \
    PREFIX="%{_prefix}" \
    MANDIR="%{_mandir}" \
    DOCDIR="%{_docdir}/%{name}" \
    DEBUG=no \
    SSL=yes \
    GZIP=touch \
    STRIP=touch

%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root)
%doc license.txt license.OpenSSL readme.txt
%{_bindir}/httping
%{_mandir}/man1/httping.1%{ext_man}
%{_mandir}/??/man1/httping-??.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by