]> git.pld-linux.org Git - SPECS.git/blob - wrk.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / wrk.spec
1 Summary:        A modern HTTP benchmarking tool
2 Name:           wrk
3 Version:        4.0.2
4 Release:        1
5 License:        Apache v2.0
6 Group:          Networking/Utilities
7 Source0:        https://github.com/wg/wrk/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5:  2c9c7cbd2468152ccdd48587762c95c1
9 URL:            https://github.com/wg/wrk
10 BuildRequires:  luajit-devel >= 2.0.2
11 BuildRequires:  openssl-devel
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 wrk is a modern HTTP benchmarking tool capable of generating
16 significant load when run on a single multi-core CPU. It combines a
17 multithreaded design with scalable event notification systems such as
18 epoll and kqueue.
19
20 An optional LuaJIT script can perform HTTP request generation,
21 response processing, and custom reporting.
22
23 %prep
24 %setup -q
25
26 %build
27 CFLAGS="%{rpmcflags}" \
28 %{__make} \
29 WITH_OPENSSL=%{_prefix} WITH_LUAJIT=%{_prefix} \
30           CC="%{__cc}"
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_bindir}
35 cp -p wrk $RPM_BUILD_ROOT%{_bindir}
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files
41 %defattr(644,root,root,755)
42 %attr(755,root,root) %{_bindir}/wrk
43 %doc README CHANGES NOTICE SCRIPTING scripts
This page took 0.186276 seconds and 3 git commands to generate.