]> git.pld-linux.org Git - packages/liboping.git/blame - liboping.spec
- updated to 1.10.0, added upstream GCC 8 fix
[packages/liboping.git] / liboping.spec
CommitLineData
d71d2af2
JB
1%include /usr/lib/rpm/macros.perl
2Summary: Liboping library to generate ICMP echo requests
3Summary(pl.UTF-8): Biblioteka liboping do generowania żądań ICMP echo
522f832f 4Name: liboping
3595a362
MK
5Version: 1.10.0
6Release: 1
d71d2af2 7License: LGPL v2.1+ (library), GPL v2+ (tool, perl binding)
522f832f 8Group: Libraries
79855a75 9Source0: http://noping.cc/files/%{name}-%{version}.tar.bz2
3595a362
MK
10# Source0-md5: 54e0f5a1aaf9eabf3f412d2fdc9c6831
11Patch0: gcc8.patch
79855a75 12URL: http://noping.cc/
d71d2af2 13BuildRequires: autoconf >= 2.65
b88aa232 14BuildRequires: automake
d71d2af2 15BuildRequires: libtool >= 2:2
79855a75 16BuildRequires: ncurses-devel
b88aa232 17BuildRequires: perl-ExtUtils-MakeMaker
d71d2af2
JB
18BuildRequires: perl-devel >= 1:5.6
19BuildRequires: rpm-perlprov
522f832f
PG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
f238dd3f
CM
23liboping is a C library to generate ICMP echo requests, better known
24as "ping packets". It is intended for use in network monitoring
25applications or applications that would otherwise need to fork ping(1)
26frequently.
522f832f
PG
27
28liboping was inspired by ping, libping (homepage vanished) and fping:
f238dd3f
CM
29It differs from these existing solutions in that it can `ping'
30multiple hosts in parallel using IPv4 or IPv6 transparently. Other
31design principles were an object oriented interface, simplicity and
32extensibility: Is simple because there are only a few interface
33functions and no external dependencies. It's extensible since all
34(internal) data is kept in "opaque data types", so the storage may
35change or be extended without applications noticing it.
522f832f 36
d71d2af2
JB
37%description -l pl.UTF-8
38liboping to biblioteka C służąca do generowania żądań ICMP echo,
39lepiej znanych jako "pakiety ping". Jej celem jest wykorzystanie w
40aplikacjach do monitorowania sieci lub programach wymagających
41regularnego wywoływania programu ping(1).
42
43liboping została zainspirowana pakietami ping, libping (strona
44domowa 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
46IPv6 w sposób przezroczysty. Inne reguły zastosowane przy
47projektowaniu to interfejs zorientowany obiektowo, prostota i
48rozszerzalność: biblioteka jest prosta, bo interfejs składa się tylko
49z kilku funkcji i nie ma zewnętrznych zależności; jest rozszerzalna,
50ponieważ wszystkie (wewnętrzne) dane są trzymane w niejawnych typach
51danych, więc sposób przechowywania może być zmieniony lub rozszerzony
52bez potrzeby uwzględniania tego w aplikacjach.
522f832f
PG
53
54%package devel
55Summary: Header files for liboping library
56Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liboping
d71d2af2 57License: LGPL v2.1+
522f832f
PG
58Group: Development/Libraries
59Requires: %{name} = %{version}-%{release}
60
61%description devel
62Header files for liboping library.
63
64%description devel -l pl.UTF-8
65Pliki nagłówkowe biblioteki liboping.
66
67%package static
68Summary: Static liboping library
69Summary(pl.UTF-8): Statyczna biblioteka liboping
d71d2af2 70License: LGPL v2.1+
522f832f
PG
71Group: Development/Libraries
72Requires: %{name}-devel = %{version}-%{release}
73
74%description static
75Static liboping library.
76
77%description static -l pl.UTF-8
78Statyczna biblioteka liboping.
79
d71d2af2
JB
80%package -n perl-Net-Oping
81Summary: Net::Oping - ICMP latency measurement module using the oping library
82Summary(pl.UTF-8): Net::Oping - moduł mierzący opóźnienia ICMP przy użyciu biblioteki oping
83License: GPL v2+
84Group: Development/Languages/Perl
85Requires: %{name} = %{version}-%{release}
86
87%description -n perl-Net-Oping
88This Perl module is a high-level interface to the oping library. Its
89purpose it to send "ICMP ECHO_REQUEST" packets (also known as "ping")
90to 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
92received after a certain timeout the host is considered to be
93unreachable.
94
95%description -n perl-Net-Oping -l pl.UTF-8
96Ten moduł Perla to wysokopoziomowy interfejs do biblioteki oping. Jego
97celem jest wysyłanie pakietów ICMP ECHO_REQUEST (znanych także jako
98"ping") do hosta i mierzenie czasu mijającego do odebrania pakietu
99ICMP ECHO_REPLY (znanego także jako "pong"). Jeśli taki pakiet nie
100zostanie odebrany przez pewien określony limit czasu, host uważa się
101za niedostępny.
102
103%package -n oping
104Summary: oping ICMP query tool
105Summary(pl.UTF-8): Narzędzie oping do zapytań ICMP
106License: GPL v2+
107Group: Applications/Networking
108Requires: %{name} = %{version}-%{release}
109
110%description -n oping
111Sample application, which demonstrates the liboping's abilities. It is
112like ping, ping6, and fping rolled into one.
113
114%description -n oping -l pl.UTF-8
115Przykładowa aplikacja, demonstrująca możliwości biblioteki liboping.
116Jest to coś w rodzaju programów ping, ping6 i fping połączonych w
117jeden.
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
134rm -rf $RPM_BUILD_ROOT
135
136%{__make} install \
137 DESTDIR=$RPM_BUILD_ROOT
138
139%clean
140rm -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*
This page took 0.117002 seconds and 4 git commands to generate.