Репозиторий Sisyphus
Последнее обновление: 7 апреля 2020 | Пакетов: 17566 | Посещений: 17843301
en ru br
Репозитории ALT
S:1.10.0-alt1
5.1: 1.1.2-alt2
4.0: 1.1.2-alt1.M40.1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: liboping

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable static

Name: liboping
Version: 1.1.2
Release: alt1.M40.1

Summary: Liboping library
License: GPL v2
Group: System/Libraries

Source0: http://verplant.org/liboping/files/%name-%version.tar.bz2
Source1: oping.control
Url: http://verplant.org/liboping/
Packager: Michael Shigorin <mike at altlinux.org>

# Automatically added by buildreq on Wed May 13 2009

BuildRequires: perl-devel

%description
liboping is a C library to generate ICMP echo requests, better known as
"ping packets". It is intended for use in network monitoring applications
or applications that would otherwise need to fork ping(1) frequently.

liboping was inspired by ping, libping (homepage vanished) and fping:
It differs from these existing solutions in that it can `ping' multiple
hosts in parallel using IPv4 or IPv6 transparently. Other design principles
were an object oriented interface, simplicity and extensibility: Is simple
because there are only a few interface functions and no external
dependencies. It's extensible since all (internal) data is kept in "opaque
data types", so the storage may change or be extended without applications
noticing it.

%package -n oping
Summary: oping ICMP query tool
Group: Networking/Other

%description -n oping
Sample application, which demonstrates the liboping's abilities.
It is like ping, ping6, and fping rolled into one.

%package devel
Summary: Header files for liboping library
Summary(pl.UTF-8): Pliki nagе┌цЁwkowe biblioteki liboping
Group: Development/C
Requires: %name = %version-%release

%description devel
Header files for liboping library.

%description devel -l pl.UTF-8
Pliki nagе┌цЁwkowe biblioteki liboping.

%if_enabled static
%package devel-static
Summary: Static liboping library
Summary(pl.UTF-8): Statyczna biblioteka liboping
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
Static liboping library.

%description devel-static -l pl.UTF-8
Statyczna biblioteka liboping.
%endif

%prep
%setup

%build
%configure
%make_build

%install
%makeinstall_std
install -pDm755 %SOURCE1 %buildroot%_controldir/oping
# quick RPATH "fix"
rm -rf %buildroot%_libexecdir/perl5

%pre -n oping
%_sbindir/groupadd -r -f netadmin >/dev/null 2>&1
%pre_control oping

%post -n oping
%post_control -s netadmin oping

%files
%doc AUTHORS ChangeLog README
%_libdir/*.so.*

%files -n oping
%_bindir/oping
%config %_controldir/oping
%_man8dir/*

%files devel
%_libdir/*.so
%_includedir/*
%_man3dir/*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

# TODO:

# - package perl modules

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin