SPECS: vzctl.spec - partial pldize

glen glen at pld-linux.org
Wed May 28 14:52:04 CEST 2008


Author: glen                         Date: Wed May 28 12:52:04 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- partial pldize

---- Files affected:
SPECS:
   vzctl.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/vzctl.spec
diff -u SPECS/vzctl.spec:1.2 SPECS/vzctl.spec:1.3
--- SPECS/vzctl.spec:1.2	Wed May 28 13:53:52 2008
+++ SPECS/vzctl.spec	Wed May 28 14:51:59 2008
@@ -1,6 +1,5 @@
 # $Revision$, $Date$
-#
-%define _initddir %_sysconfdir/init.d
+%define _initddir /etc/rc.d/init.d
 %define _vzdir /vz
 %define _lockdir %{_vzdir}/lock
 %define _dumpdir %{_vzdir}/dump
@@ -8,19 +7,18 @@
 %define _rootdir %{_vzdir}/root
 %define _cachedir %{_vzdir}/template/cache
 %define _veipdir /var/lib/vzctl/veip
-%define _pkglibdir %_libdir/vzctl
-%define _configdir %_sysconfdir/vz
+%define _pkglibdir %{_libdir}/vzctl
+%define _configdir %{_sysconfdir}/vz
 %define _scriptdir /usr/share/vzctl/scripts
-%define _vpsconfdir %_sysconfdir/sysconfig/vz-scripts
-%define _netdir	%_sysconfdir/sysconfig/network-scripts
-%define _logrdir %_sysconfdir/logrotate.d
-%define _crondir %{_configdir}/cron
+%define _vpsconfdir /etc/sysconfig/vz-scripts
+%define _netdir	/etc/sysconfig/network-scripts
+%define _logrdir /etc/logrotate.d
+%define _crondir /etc/cron.d
 %define _distconfdir %{_configdir}/dists
 %define _namesdir %{_configdir}/names
 %define _distscriptdir %{_distconfdir}/scripts
-%define _udevrulesdir %_sysconfdir/udev/rules.d
-%define _bashcdir %_sysconfdir/bash_completion.d
-
+%define _udevrulesdir /etc/udev/rules.d
+%define _bashcdir /etc/bash_completion.d
 
 Summary:	Virtual Environments control utility
 Name:		vzctl
@@ -30,10 +28,8 @@
 Group:		Base/Kernel
 Source0:	http://download.openvz.org/utils/vzctl/%{version}/src/%{name}-%{version}.tar.bz2
 # Source0-md5:	d02fdecaeaa1327c08ba5d980383cafa
-ExclusiveOS:	Linux
 URL:		http://openvz.org/
-Requires:	vzkernel
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires:	%{name}-lib = %{version}-%{release}
 # these reqs are for vz helper scripts
 Requires:	/sbin/chkconfig
 Requires:	bash
@@ -43,32 +39,44 @@
 Requires:	grep
 Requires:	sed
 Requires:	tar
-Requires:	vzctl-lib = %{version}-%{release}
+Requires:	vzkernel
 Requires:	vzquota >= 2.7.0-4
-
 # requires for vzmigrate purposes
 Requires:	gawk
 Requires:	openssh
 Requires:	rsync
+ExclusiveOS:	Linux
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This utility allows system administator to control Virtual
 Environments, i.e. create, start, shutdown, set various options and
 limits etc.
 
+%package lib
+Summary:	Virtual Environments control API library
+Group:		Base/Kernel
+
+%description lib
+Virtual Environments control API library.
+
 %prep
 %setup -q
 
 %build
-CFLAGS="%{rpmcflags}" %configure \
+%configure \
 	--enable-bashcomp \
 	--enable-logrotate \
 	--disable-static
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} DESTDIR=$RPM_BUILD_ROOT vpsconfdir=%{_vpsconfdir} install install-redhat
+%{__make}  install install-redhat \
+	vpsconfdir=%{_vpsconfdir} \
+	DESTDIR=$RPM_BUILD_ROOT
+
 ln -s ../sysconfig/vz-scripts $RPM_BUILD_ROOT%{_configdir}/conf
 ln -s ../vz/vz.conf $RPM_BUILD_ROOT/etc/sysconfig/vz
 # This could go to vzctl-lib-devel, but since we don't have it...
@@ -88,20 +96,13 @@
 		echo 'IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"' >> %{_configdir}/vz.conf
 	fi
 fi
-/sbin/chkconfig --add vz > /dev/null 2>&1
+/sbin/chkconfig --add vz
 
 %preun
 if [ $1 = 0 ]; then
-	/sbin/chkconfig --del vz >/dev/null 2>&1
+	/sbin/chkconfig --del vz
 fi
 
-%package lib
-Summary:	Virtual Environments control API library
-Group:		Base/Kernel
-
-%description lib
-Virtual Environments control API library
-
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_initddir}/vz
@@ -184,9 +185,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2008-05-28 12:51:59  glen
+- partial pldize
+
 Revision 1.2  2008-05-28 11:53:52  paszczus
 - little cleanup
 
 Revision 1.1  2008-05-28 11:40:19  paszczus
 - initial, raw from redhat spec
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/vzctl.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list