Name: liboping Version: 1.5.1 Release: 2%{?dist} Summary: C library to generate ICMP echo requests Group: Applications/Internet License: GPLv2 URL: http://verplant.org/liboping/ Source0: http://verplant.org/liboping/files/%{name}-%{version}.tar.bz2 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: ncurses-devel Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %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. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains files needed to develop and build software against liboping, a %{summary}. %prep %setup -q %build %configure --disable-static make -C src %{?_smp_mflags} make -C bindings %{?_smp_mflags} perl/Makefile cd bindings/perl %{__perl} Makefile.PL INSTALLDIRS=vendor TOP_BUILDDIR=.. make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make -C src install DESTDIR=$RPM_BUILD_ROOT cd bindings/perl make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check LD_LIBRARY_PATH=../../src/.libs make -C bindings/perl test %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_bindir}/oping %{_bindir}/noping %{_libdir}/liboping.so.* %{_mandir}/man8/oping.8* %{_mandir}/man3/Net::Oping.3pm* %{perl_vendorarch}/* %exclude %{_libdir}/liboping.la %doc AUTHORS ChangeLog COPYING README %files devel %defattr(-,root,root,-) %{_includedir}/oping.h %{_libdir}/liboping.so %{_mandir}/man3/liboping.3* %{_mandir}/man3/ping_construct.3* %{_mandir}/man3/ping_get_error.3* %{_mandir}/man3/ping_host_add.3* %{_mandir}/man3/ping_iterator_get.3* %{_mandir}/man3/ping_iterator_get_context.3* %{_mandir}/man3/ping_iterator_get_info.3* %{_mandir}/man3/ping_send.3* %{_mandir}/man3/ping_setopt.3* %changelog * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Dec 04 2010 Lubomir Rintel <lkundrak@v3.sk> - 1.5.1-1 - Bump to later version * Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.3.4-2 - Mass rebuild with perl-5.12.0 * Tue Mar 09 2010 Lubomir Rintel <lkundrak@v3.sk> - 1.3.4-1 - Initial packaging