]>
Commit | Line | Data |
---|---|---|
c5c47ef0 | 1 | # TODO: |
56ccfbc1 | 2 | # - *.a and *.la? delete? |
c5c47ef0 | 3 | %define orgname iperf |
c5c47ef0 AM |
4 | Summary: Network performance measurement tool |
5 | Summary(pl.UTF-8): Narzędzie do szacowania wydajności sieci | |
6 | Name: iperf3 | |
37bd95de | 7 | Version: 3.8 |
56ccfbc1 | 8 | Release: 1 |
c5c47ef0 AM |
9 | License: BSD-like |
10 | Group: Networking/Utilities | |
ed3bda22 | 11 | Source0: https://downloads.es.net/pub/iperf/%{orgname}-%{version}.tar.gz |
37bd95de | 12 | # Source0-md5: 7164f877241dce479f6e8f083e5c447d |
7321b866 | 13 | Patch0: %{name}-nopg.patch |
ed3bda22 | 14 | URL: https://software.es.net/iperf/ |
c5c47ef0 AM |
15 | BuildRequires: libstdc++-devel |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Iperf was orginally developed by NLANR/DAST as a modern alternative | |
20 | for measuring maximum TCP and UDP bandwidth performance. Iperf allows | |
21 | the tuning of various parameters and UDP characteristics. Iperf | |
22 | reports bandwidth, delay jitter, datagram loss. | |
23 | ||
24 | iperf3 is a new implementation from scratch, with the goal of a | |
25 | smaller, simpler code base, and a library version of the functionality | |
26 | that can be used in other programs. iperf3 is not backwards compatible | |
27 | with iperf2. | |
28 | ||
56ccfbc1 PG |
29 | %package libs |
30 | Summary: Shared iperf3 libraries | |
7ccc3fab AG |
31 | Summary(pl.UTF-8): Biblioteki współdzielone iperf3 |
32 | Group: Libraries | |
56ccfbc1 PG |
33 | |
34 | %description libs | |
35 | Shared iperf3 libraries. | |
36 | ||
37 | %description libs -l pl.UTF-8 | |
38 | Biblioteki współdzielone iperf3. | |
39 | ||
40 | %package devel | |
7ccc3fab AG |
41 | Summary: Header files for iperf3 libraries |
42 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek iperf3 | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
56ccfbc1 PG |
45 | |
46 | %description devel | |
47 | Header files for iperf3 libraries. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe bibliotek iperf3. | |
51 | ||
c5c47ef0 | 52 | %prep |
7321b866 | 53 | %setup -q -n %{orgname}-%{version} |
8553f232 | 54 | %patch0 -p1 |
c5c47ef0 AM |
55 | |
56 | %build | |
7321b866 PG |
57 | %{__libtoolize} |
58 | %{__aclocal} | |
59 | %{__autoconf} | |
60 | %{__automake} | |
37bd95de MK |
61 | %configure \ |
62 | --enable-profiling \ | |
63 | --enable-shared | |
c5c47ef0 AM |
64 | %{__make} |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
c5c47ef0 AM |
72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
56ccfbc1 PG |
75 | %post libs -p /sbin/ldconfig |
76 | %postun libs -p /sbin/ldconfig | |
77 | ||
c5c47ef0 AM |
78 | %files |
79 | %defattr(644,root,root,755) | |
37bd95de | 80 | %doc INSTALL LICENSE README.md RELNOTES.md docs/ |
c5c47ef0 | 81 | %attr(755,root,root) %{_bindir}/iperf3 |
ed3bda22 | 82 | %{_mandir}/man1/iperf3.1* |
56ccfbc1 PG |
83 | |
84 | %files libs | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_libdir}/libiperf.so.*.*.* | |
87 | %attr(755,root,root) %ghost %{_libdir}/libiperf.so.0 | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_libdir}/libiperf.so | |
92 | %{_includedir}/iperf_api.h | |
ed3bda22 | 93 | %{_mandir}/man3/libiperf.3* |