Name: udpcast Summary: UDP broadcast file distribution and installation Version: 20110710 Release: 1 License: GPLv2+ and BSD Group: Applications/System URL: http://udpcast.linux.lu/ Source0: http://udpcast.linux.lu/download/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: m4, coreutils %description Command-line client for UDP sender and receiver. Udpcast is an application for multicasting data to multiple targets. %prep %setup -q chmod -R u+w * %patch0 %build export CC="cc -qcpluscmt" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} /opt/freeware/bin/sed -i -e 's|\/\* #undef HAVE_NET_IF_H \*\/|#define HAVE_NET_IF_H 1|' config.h make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} export PATH=/opt/freeware/bin:$PATH make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_sbindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/sbin cd usr/sbin ln -sf ../..%{_sbindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc Changelog.txt cmd.html COPYING %{_sbindir}/* %{_mandir}/man1/* /usr/sbin/* %changelog * Mon Nov 21 2011 Michael Perzl - 20110710-1 - updated to version 20110710 * Wed Feb 16 2011 Michael Perzl - 20100130-1 - first version for AIX V5.1 and higher