--- ipvsadm.spec.orig Mon Feb 10 14:30:12 2003 +++ ipvsadm.spec Mon Feb 10 13:34:58 2003 @@ -3,7 +3,7 @@ Summary: Utility to administer the Linux Virtual Server Name: ipvsadm Version: 1.21 -Release: 3 +Release: 4 Copyright: GNU General Public Licence URL: http://www.LinuxVirtualServer.org/ Group: Applications/System @@ -13,10 +13,18 @@ Provides: %{name}-%{version} Conflicts: piranha <= 0.4.14 +%package devel +Group: Development/Libraries +Summary: Files needed for building utilities using ipvsadm. + + %description ipvsadm is a utility to administer the IP Virtual Server services offered by the Linux kernel augmented with the IP Virtual Server patch. +%description devel +The ipvsadm-devel package contains the development libraries and +header files for use with the Linux Virtual Server project. %prep %setup -n %{name}-%{version} @@ -28,9 +36,10 @@ %install rm -rf $RPM_BUILD_ROOT -mkdir -p ${RPM_BUILD_ROOT}/{sbin,%{_mandir}/man8,etc/rc.d/init.d} +mkdir -p ${RPM_BUILD_ROOT}/{sbin,%{_mandir}/man8,etc/rc.d/init.d,/usr/include,/usr/lib} make install BUILD_ROOT=${RPM_BUILD_ROOT} MANDIR=%{_mandir} - +install --mode 755 libipvs/libipvs.a ${RPM_BUILD_ROOT}/usr/lib/ +install --mode 644 libipvs/libipvs.h ${RPM_BUILD_ROOT}/usr/include/ %files %defattr(-,root,root) @@ -45,6 +54,9 @@ %preun /sbin/chkconfig --del ipvsadm +%files devel +/usr/include/libipvs.h +/usr/lib/libipvs.a %clean rm -rf $RPM_BUILD_DIR/%{name} @@ -52,6 +64,9 @@ %changelog +* Thu Feb 10 2003 Jacob Rief +- Added the devel-branch to ipvsadm. + * Thu Dec 16 2001 Wensong Zhang - Changed to install ipvsadm man pages according to the %{_mandir}