3 %bcond_without static_libs # static library
5 Summary: thrulay - measuring capacity of a network
6 Summary(pl.UTF-8): thrulay - określanie przepustowości sieci
10 License: BSD-like (see included LICENSE)
12 Source0: http://downloads.sourceforge.net/thrulay/%{name}-%{version}.tar.bz2
13 # Source0-md5: 3c01c221aae8ad8ab850b2408de841a0
14 Patch0: %{name}-link.patch
15 Patch1: %{name}-am.patch
16 URL: https://sourceforge.net/projects/thrulay/
17 BuildRequires: autoconf >= 2.59
18 BuildRequires: automake
19 BuildRequires: libtool
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The program thrulay is used to measure the capacity of a network by
24 sending a bulk TCP stream over it.
26 %description -l pl.UTF-8
27 Narzędzie służące do mierzenia pojemności sieci przez wysyłanie przez
31 Summary: Header files for thrulay library
32 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki thrulay
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 Header files for thrulay library.
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki thrulay.
43 Summary: Static thrulay library
44 Summary(pl.UTF-8): Statyczna biblioteka thrulay
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 Static thrulay library.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka thrulay.
66 %{!?with_static_libs:--disable-static}
70 rm -rf $RPM_BUILD_ROOT
73 DESTDIR=$RPM_BUILD_ROOT
76 rm -rf $RPM_BUILD_ROOT
78 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %defattr(644,root,root,755)
83 %doc ChangeLog LICENSE README TODO
84 %attr(755,root,root) %{_bindir}/thrulay
85 %attr(755,root,root) %{_sbindir}/thrulayd
86 %attr(755,root,root) %{_libdir}/libthrulay.so.*.*.*
87 %attr(755,root,root) %ghost %{_libdir}/libthrulay.so.0
88 %{_mandir}/man1/thrulay.1*
89 %{_mandir}/man8/thrulayd.8*
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libthrulay.so
94 %{_libdir}/libthrulay.la
95 %{_includedir}/thrulay
97 %if %{with static_libs}
99 %defattr(644,root,root,755)
100 %{_libdir}/libthrulay.a