]>
Commit | Line | Data |
---|---|---|
d71d2af2 JB |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: Liboping library to generate ICMP echo requests | |
3 | Summary(pl.UTF-8): Biblioteka liboping do generowania żądań ICMP echo | |
522f832f | 4 | Name: liboping |
3595a362 MK |
5 | Version: 1.10.0 |
6 | Release: 1 | |
d71d2af2 | 7 | License: LGPL v2.1+ (library), GPL v2+ (tool, perl binding) |
522f832f | 8 | Group: Libraries |
79855a75 | 9 | Source0: http://noping.cc/files/%{name}-%{version}.tar.bz2 |
3595a362 MK |
10 | # Source0-md5: 54e0f5a1aaf9eabf3f412d2fdc9c6831 |
11 | Patch0: gcc8.patch | |
79855a75 | 12 | URL: http://noping.cc/ |
d71d2af2 | 13 | BuildRequires: autoconf >= 2.65 |
b88aa232 | 14 | BuildRequires: automake |
d71d2af2 | 15 | BuildRequires: libtool >= 2:2 |
79855a75 | 16 | BuildRequires: ncurses-devel |
b88aa232 | 17 | BuildRequires: perl-ExtUtils-MakeMaker |
d71d2af2 JB |
18 | BuildRequires: perl-devel >= 1:5.6 |
19 | BuildRequires: rpm-perlprov | |
522f832f PG |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
f238dd3f CM |
23 | liboping is a C library to generate ICMP echo requests, better known |
24 | as "ping packets". It is intended for use in network monitoring | |
25 | applications or applications that would otherwise need to fork ping(1) | |
26 | frequently. | |
522f832f PG |
27 | |
28 | liboping was inspired by ping, libping (homepage vanished) and fping: | |
f238dd3f CM |
29 | It differs from these existing solutions in that it can `ping' |
30 | multiple hosts in parallel using IPv4 or IPv6 transparently. Other | |
31 | design principles were an object oriented interface, simplicity and | |
32 | extensibility: Is simple because there are only a few interface | |
33 | functions and no external dependencies. It's extensible since all | |
34 | (internal) data is kept in "opaque data types", so the storage may | |
35 | change or be extended without applications noticing it. | |
522f832f | 36 | |
d71d2af2 JB |
37 | %description -l pl.UTF-8 |
38 | liboping to biblioteka C służąca do generowania żądań ICMP echo, | |
39 | lepiej znanych jako "pakiety ping". Jej celem jest wykorzystanie w | |
40 | aplikacjach do monitorowania sieci lub programach wymagających | |
41 | regularnego wywoływania programu ping(1). | |
42 | ||
43 | liboping została zainspirowana pakietami ping, libping (strona | |
44 | domowa zniknęła) oraz fping - różni się od istniejących rozwiązań tym, | |
45 | że potrafi "pingować" wiele hostów równolegle przy użyciu IPv4 lub | |
46 | IPv6 w sposób przezroczysty. Inne reguły zastosowane przy | |
47 | projektowaniu to interfejs zorientowany obiektowo, prostota i | |
48 | rozszerzalność: biblioteka jest prosta, bo interfejs składa się tylko | |
49 | z kilku funkcji i nie ma zewnętrznych zależności; jest rozszerzalna, | |
50 | ponieważ wszystkie (wewnętrzne) dane są trzymane w niejawnych typach | |
51 | danych, więc sposób przechowywania może być zmieniony lub rozszerzony | |
52 | bez potrzeby uwzględniania tego w aplikacjach. | |
522f832f PG |
53 | |
54 | %package devel | |
55 | Summary: Header files for liboping library | |
56 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liboping | |
d71d2af2 | 57 | License: LGPL v2.1+ |
522f832f PG |
58 | Group: Development/Libraries |
59 | Requires: %{name} = %{version}-%{release} | |
60 | ||
61 | %description devel | |
62 | Header files for liboping library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki liboping. | |
66 | ||
67 | %package static | |
68 | Summary: Static liboping library | |
69 | Summary(pl.UTF-8): Statyczna biblioteka liboping | |
d71d2af2 | 70 | License: LGPL v2.1+ |
522f832f PG |
71 | Group: Development/Libraries |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | ||
74 | %description static | |
75 | Static liboping library. | |
76 | ||
77 | %description static -l pl.UTF-8 | |
78 | Statyczna biblioteka liboping. | |
79 | ||
d71d2af2 JB |
80 | %package -n perl-Net-Oping |
81 | Summary: Net::Oping - ICMP latency measurement module using the oping library | |
82 | Summary(pl.UTF-8): Net::Oping - moduł mierzący opóźnienia ICMP przy użyciu biblioteki oping | |
83 | License: GPL v2+ | |
84 | Group: Development/Languages/Perl | |
85 | Requires: %{name} = %{version}-%{release} | |
86 | ||
87 | %description -n perl-Net-Oping | |
88 | This Perl module is a high-level interface to the oping library. Its | |
89 | purpose it to send "ICMP ECHO_REQUEST" packets (also known as "ping") | |
90 | to a host and measure the time that elapses until the reception of an | |
91 | "ICMP ECHO_REPLY" packet (also known as "pong"). If no such packet is | |
92 | received after a certain timeout the host is considered to be | |
93 | unreachable. | |
94 | ||
95 | %description -n perl-Net-Oping -l pl.UTF-8 | |
96 | Ten moduł Perla to wysokopoziomowy interfejs do biblioteki oping. Jego | |
97 | celem jest wysyłanie pakietów ICMP ECHO_REQUEST (znanych także jako | |
98 | "ping") do hosta i mierzenie czasu mijającego do odebrania pakietu | |
99 | ICMP ECHO_REPLY (znanego także jako "pong"). Jeśli taki pakiet nie | |
100 | zostanie odebrany przez pewien określony limit czasu, host uważa się | |
101 | za niedostępny. | |
102 | ||
103 | %package -n oping | |
104 | Summary: oping ICMP query tool | |
105 | Summary(pl.UTF-8): Narzędzie oping do zapytań ICMP | |
106 | License: GPL v2+ | |
107 | Group: Applications/Networking | |
108 | Requires: %{name} = %{version}-%{release} | |
109 | ||
110 | %description -n oping | |
111 | Sample application, which demonstrates the liboping's abilities. It is | |
112 | like ping, ping6, and fping rolled into one. | |
113 | ||
114 | %description -n oping -l pl.UTF-8 | |
115 | Przykładowa aplikacja, demonstrująca możliwości biblioteki liboping. | |
116 | Jest to coś w rodzaju programów ping, ping6 i fping połączonych w | |
117 | jeden. | |
118 | ||
522f832f PG |
119 | %prep |
120 | %setup -q | |
3595a362 | 121 | %patch0 -p1 |
522f832f PG |
122 | |
123 | %build | |
a067b66d TP |
124 | %{__libtoolize} |
125 | %{__aclocal} | |
126 | %{__autoconf} | |
127 | %{__autoheader} | |
128 | %{__automake} | |
d71d2af2 JB |
129 | %configure \ |
130 | --with-perl-bindings="INSTALLDIRS=vendor" | |
522f832f PG |
131 | %{__make} |
132 | ||
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %{__make} install \ | |
137 | DESTDIR=$RPM_BUILD_ROOT | |
138 | ||
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %post -p /sbin/ldconfig | |
143 | %postun -p /sbin/ldconfig | |
144 | ||
145 | %files | |
146 | %defattr(644,root,root,755) | |
147 | %doc AUTHORS ChangeLog README | |
79855a75 | 148 | %attr(755,root,root) %{_bindir}/noping |
d71d2af2 JB |
149 | %attr(755,root,root) %{_libdir}/liboping.so.*.*.* |
150 | %attr(755,root,root) %ghost %{_libdir}/liboping.so.0 | |
522f832f PG |
151 | |
152 | %files devel | |
153 | %defattr(644,root,root,755) | |
d71d2af2 JB |
154 | %attr(755,root,root) %{_libdir}/liboping.so |
155 | %{_libdir}/liboping.la | |
522f832f | 156 | %{_includedir}/oping.h |
79855a75 | 157 | %{_pkgconfigdir}/liboping.pc |
d71d2af2 JB |
158 | %{_mandir}/man3/liboping.3* |
159 | %{_mandir}/man3/ping_*.3* | |
522f832f PG |
160 | |
161 | %files static | |
162 | %defattr(644,root,root,755) | |
d71d2af2 JB |
163 | %{_libdir}/liboping.a |
164 | ||
165 | %files -n perl-Net-Oping | |
166 | %defattr(644,root,root,755) | |
167 | %doc bindings/perl/Changes | |
168 | %{perl_vendorarch}/Net/Oping.pm | |
169 | %dir %{perl_vendorarch}/auto/Net/Oping | |
d71d2af2 JB |
170 | %attr(755,root,root) %{perl_vendorarch}/auto/Net/Oping/Oping.so |
171 | %{_mandir}/man3/Net::Oping.3pm* | |
172 | ||
173 | %files -n oping | |
174 | %defattr(644,root,root,755) | |
175 | %attr(4754,root,adm) %{_bindir}/oping | |
176 | %{_mandir}/man8/oping.8* |