blob: b93f31e77d3f792d94b4f6361a5fd7e673ce1856 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
Summary: Ping-like tool for HTTP requests
Summary(pl.UTF-8): Narzędzie do "pingowania" poprzez protokół HTTP
Name: httping
Version: 2.2
Release: 1
License: GPLv2
Group: Networking/Utilities
Source0: http://www.vanheusden.com/httping/%{name}-%{version}.tgz
# Source0-md5: 622792cfd5116c99d0eff34b730e8737
Patch0: ncurses-headers.patch
URL: http://www.vanheusden.com/httping/
BuildRequires: fftw3-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
httping is a "ping"-like tool for HTTP requests. Give it a URL and it
will show how long it takes to connect, send a request, and retrieve
the reply (only the headers). It can be used for monitoring or
statistical purposes (measuring latency).
%description -l pl.UTF-8
httping jest narzędziem podobnym do pinga, służącym do wysyłania
zapytań HTTP. Po podaniu URL-a httping pokazuje jak wiele czasu
zajmuje połączenie, wysłanie zapytania i otrzymanie odpowiedzi (tylko
nagłówki). Httping może być używany do monitorowania lub do celów
statystycznych.
%prep
%setup -q
%patch0 -p1
%build
cat << EOF > makefile.inc
SSL=yes
NC=yes
FW=yes
EOF
%{__make} \
CC="%{__cc}" \
DEBUG="" \
OFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc readme.txt
%attr(755,root,root) %{_bindir}/httping
%{_mandir}/man1/httping*
|