]> git.pld-linux.org Git - packages/iperf3.git/blob - iperf3.spec
- updated to 3.8
[packages/iperf3.git] / iperf3.spec
1 # TODO:
2 # - *.a and *.la? delete?
3 %define orgname iperf
4 Summary:        Network performance measurement tool
5 Summary(pl.UTF-8):      Narzędzie do szacowania wydajności sieci
6 Name:           iperf3
7 Version:        3.8
8 Release:        1
9 License:        BSD-like
10 Group:          Networking/Utilities
11 Source0:        https://downloads.es.net/pub/iperf/%{orgname}-%{version}.tar.gz
12 # Source0-md5:  7164f877241dce479f6e8f083e5c447d
13 Patch0:         %{name}-nopg.patch
14 URL:            https://software.es.net/iperf/
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
29 %package libs
30 Summary:        Shared iperf3 libraries
31 Summary(pl.UTF-8):      Biblioteki współdzielone iperf3
32 Group:          Libraries
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
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}
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
52 %prep
53 %setup -q -n %{orgname}-%{version}
54 %patch0 -p1
55
56 %build
57 %{__libtoolize}
58 %{__aclocal}
59 %{__autoconf}
60 %{__automake}
61 %configure \
62         --enable-profiling \
63         --enable-shared
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   libs -p /sbin/ldconfig
76 %postun libs -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc INSTALL LICENSE README.md RELNOTES.md docs/
81 %attr(755,root,root) %{_bindir}/iperf3
82 %{_mandir}/man1/iperf3.1*
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
93 %{_mandir}/man3/libiperf.3*
This page took 0.049296 seconds and 3 git commands to generate.