]> git.pld-linux.org Git - packages/thrulay.git/blob - thrulay.spec
- new URLs, updated to 0.9
[packages/thrulay.git] / thrulay.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
5 Summary:        thrulay - measuring capacity of a network
6 Summary(pl.UTF-8):      thrulay - określanie przepustowości sieci
7 Name:           thrulay
8 Version:        0.9
9 Release:        1
10 License:        BSD-like (see included LICENSE)
11 Group:          Networking
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)
21
22 %description
23 The program thrulay is used to measure the capacity of a network by
24 sending a bulk TCP stream over it.
25
26 %description -l pl.UTF-8
27 Narzędzie służące do mierzenia pojemności sieci przez wysyłanie przez
28 nią strumieni TCP.
29
30 %package devel
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}
35
36 %description devel
37 Header files for thrulay library.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki thrulay.
41
42 %package static
43 Summary:        Static thrulay library
44 Summary(pl.UTF-8):      Statyczna biblioteka thrulay
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static thrulay library.
50
51 %description static -l pl.UTF-8
52 Statyczna biblioteka thrulay.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58
59 %build
60 %{__libtoolize}
61 %{__aclocal}
62 %{__autoconf}
63 %{__autoheader}
64 %{__automake}
65 %configure \
66         %{!?with_static_libs:--disable-static}
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
81 %files
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*
90
91 %files devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libthrulay.so
94 %{_libdir}/libthrulay.la
95 %{_includedir}/thrulay
96
97 %if %{with static_libs}
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/libthrulay.a
101 %endif
This page took 0.152403 seconds and 3 git commands to generate.