%define prefix /usr Summary: Utility to administer the Linux Virtual Server Name: ipvsadm Version: @@VERSION@@ Release: @@RELEASE@@ Copyright: GNU General Public Licence URL: http://www.LinuxVirtualServer.org/ Packager: Horms P.Copeland Group: Applications/System Source0: http://www.LinuxVirtualServer.org/software/ipvsadm-%{version}.tar.gz BuildRoot: /var/tmp/%name-%{PACKAGE_VERSION}-root Docdir: %{prefix}/doc Provides: %{name}-%{version} Conflicts: piranha <= 0.4.14 %description ipvsadm is a utility to administer the IP virtual server services offered by the Linux kernel augmented with the virtual server patch. %prep %setup -n ipvsadm %build CFLAGS="${RPM_OPT_FLAGS}" make %install rm -rf $RPM_BUILD_ROOT mkdir -p ${RPM_BUILD_ROOT}/{sbin,%{_mandir}/man8,etc/rc.d/init.d} BUILD_ROOT=${RPM_BUILD_ROOT} MANDIR=${RPM_BUILD_ROOT}/%{_mandir}/man8 make install #File finding code thanks to Samuel Flory of VA Linux Systems cd ${RPM_BUILD_ROOT} # Directories find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' \ > ${RPM_BUILD_DIR}/%{name}-%{version}-%{release}.files # Files find . -type f | sed "s,^\.\(.*\),%attr (-\,root\,root) \1," \ >> ${RPM_BUILD_DIR}/%{name}-%{version}-%{release}.files # Symbolic links find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' \ >> ${RPM_BUILD_DIR}/%{name}-%{version}-%{release}.files # compress the man pages if [ -x /usr/lib/rpm/brp-compress ] ; then perl -pi -e 's/(.*man.*\.[0-9])/$1.gz/g' ${RPM_BUILD_DIR}/%{name}-%{version}-%{release}.files fi %clean rm -rf $RPM_BUILD_DIR/%{name} rm -rf $RPM_BUILD_ROOT rm ${RPM_BUILD_DIR}/%{name}-%{version}-%{release}.files %files -f ../%{name}-%{version}-%{release}.files %doc README %changelog * Thu Dec 17 2000 Wensong Zhang - Added a if-condition to keep both new or old rpm utility building the package happily. * Tue Dec 12 2000 P.opeland - Small modifications to make the compiler happy in RH7 and the Alpha - Fixed the documentation file that got missed off in building the rpm - Made a number of -pedantic mods though popt will not compile with -pedantic - Made a slight change in the description that ipvsadm on it's own displays so that people can differentiate between ipvsadm's version and the kernel version of ipvs which was confusing previously * Wed Aug 9 2000 Horms - Removed Obseletes tag as ipvsadm is back in /sbin where it belongs as it is more or less analogous to both route and ipchains both of which reside in /sbin. - Create directory to install init script into. Init scripts won't install into build directory unless this is done * Thu Jul 6 2000 Wensong Zhang - Changed to build rpms on the ipvsadm tar ball directly * Wed Jun 21 2000 P.Copeland - fixed silly install permission settings * Mon Jun 19 2000 P.Copeland - Added 'dist' and 'rpms' to the Makefile - Added Obsoletes tag since there were early versions of ipvsadm-*.rpm that installed in /sbin - Obsolete tag was a bit vicious re: piranha * Mon Apr 10 2000 Horms - created for version 1.9