X-Git-Url: https://git.pld-linux.org/?p=packages%2Fvzctl.git;a=blobdiff_plain;f=vzctl.spec;h=db5c7d0e88b5221304554e4efa101e866151e4a4;hp=a4fe8c6a70100a42da5e3f81055a22e9eff69f22;hb=HEAD;hpb=c246683068d6927ed2ec257a44ff5ae80bb0d842 diff --git a/vzctl.spec b/vzctl.spec index a4fe8c6..db5c7d0 100644 --- a/vzctl.spec +++ b/vzctl.spec @@ -1,12 +1,16 @@ +# +# Conditional build: +%bcond_without ploop # build with ploop + Summary: OpenVZ containers control utility Summary(pl.UTF-8): Narzędzie do zarządzania środowiskiem wirtualnym OpenVZ Name: vzctl -Version: 4.0 -Release: 1 +Version: 4.8 +Release: 2 License: GPL v2+ Group: Applications/System Source0: http://download.openvz.org/utils/vzctl/%{version}/src/%{name}-%{version}.tar.bz2 -# Source0-md5: 8ac3959de47af8984b586f522203fd77 +# Source0-md5: ad3e9f06ddd553885517952e820325bc Source1: pld.conf Source2: pld-add_ip.sh Source3: pld-del_ip.sh @@ -21,10 +25,10 @@ BuildRequires: libcgroup-devel >= 0.37 BuildRequires: libtool BuildRequires: libxml2-devel >= 1:2.6.16 BuildRequires: pkgconfig -BuildRequires: ploop-devel > 1.4 -Requires: ploop-libs > 1.4 -Requires: %{name}-lib = %{version}-%{release} +%{?with_ploop:BuildRequires: ploop-devel >= 1.8} Requires(post,preun): /sbin/chkconfig +Requires: %{name}-lib = %{version}-%{release} +%{?with_ploop:Requires: ploop-libs >= 1.8} Requires: rc-scripts # these reqs are for vz helper scripts Requires: bash @@ -94,7 +98,8 @@ install -p %{SOURCE5} %{SOURCE6} etc/init.d %configure \ --disable-silent-rules \ --enable-bashcomp \ - --enable-logrotate + --enable-logrotate \ + %{!?with_ploop:--without-ploop} \ %{__make} @@ -115,7 +120,7 @@ ln -s ../vz/vz.conf $RPM_BUILD_ROOT/etc/sysconfig/vz :> $RPM_BUILD_ROOT/etc/cron.d/vz # this could go to vzctl-lib-devel, but since we don't have it... -%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvzctl.{la,so} +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvz{chown,ctl}.{la,so} %clean rm -rf $RPM_BUILD_ROOT @@ -184,6 +189,7 @@ fi %files lib %defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libvzchown-*.so %attr(755,root,root) %{_libdir}/libvzctl-*.so %attr(755,root,root) %{_libdir}/vzctl