5 ## This package understands the following switches:
6 ## --without dietlibc ... disable usage of dietlibc
7 ## --with xalan ... require/use the xalan xslt processor
9 ## Fedora Extras specific customization below...
12 ## fails because '__sigsetjmp' and '__longjmp' are undefined
15 %bcond_without dietlibc
21 %global confdir %_sysconfdir/vservers
22 %global confdefaultdir %confdir/.defaults
23 %global pkglibdir %_libdir/%name
24 %global chkconfig /sbin/chkconfig
26 %global _localstatedir %_var
28 %{!?python_sitearch:%global python_sitearch %(%__python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
30 %global release pre2864
32 Summary: Linux virtual server utilities
37 Group: System Environment/Base
38 URL: http://savannah.nongnu.org/projects/util-vserver/
39 Source0: http://people.linux-vserver.org/~dhozac/t/uv-testing/%name-%version-%release.tar.bz2
40 #Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%version.tar.bz2.asc
42 BuildRoot: %_tmppath/%name-%version-%release-root
44 Requires: %name-core = %version-%release
45 Requires: %name-lib = %version-%release
46 Requires: diffutils mktemp sed
47 Provides: vserver = %version-%release
48 Obsoletes: vserver < %version
49 BuildRequires: mount vconfig gawk iproute iptables
50 BuildRequires: gcc-c++ wget which diffutils
51 BuildRequires: e2fsprogs-devel nss-devel
52 BuildRequires: doxygen tetex-latex graphviz ghostscript
53 BuildRequires: libxslt rsync dump
54 Requires(post): %name-core
55 Requires(pre): %pkglibdir
56 Requires(postun): %pkglibdir
57 %{?with_dietlibc:BuildRequires: dietlibc}
58 %{?with_xalan:BuildRequires: xalan-j}
61 Summary: Dynamic libraries for util-vserver
62 Group: System Environment/Libraries
65 Summary: The core-utilities for util-vserver
66 Group: Applications/System
70 Summary: Tools which can be used to build vservers
71 Group: Applications/System
72 Requires: rpm wget binutils tar
73 Requires: %name = %version-%release
74 Requires(pre): %confdir
75 Requires(postun): %confdir
76 Requires(post): %name-core
79 Summary: SysV-initscripts for vserver
80 Group: System Environment/Base
81 Provides: init(%name) = sysv
82 Requires: make diffutils
84 Requires: %name = %version-%release
85 Requires(post): %chkconfig
86 Requires(preun): %chkconfig
87 Requires(pre): %_initrddir %pkglibdir
88 requires(postun): %_initrddir %pkglibdir
91 Summary: Legacy utilities for util-vserver
92 Group: Applications/System
93 Requires: %name = %version-%release
94 Requires(post): %chkconfig
95 Requires(preun): %chkconfig
96 Requires(pre): %_initrddir %pkglibdir
97 requires(postun): %_initrddir %pkglibdir
100 Summary: Header-files and libraries needed to develop vserver based applications
101 Group: Development/Libraries
103 Requires: %name-lib = %version-%release
106 Summary: Python bindings to develop vserver-based applications
107 Group: Development/Libraries
108 BuildRequires: python-devel ctags
109 Requires: %name-lib = %version-%release
113 util-vserver provides the components and a framework to setup virtual
114 servers. A virtual server runs inside a linux server. It is nevertheless
115 highly independent. As such, you can run various services with normal
116 configuration. The various vservers can't interact with each other and
117 can't interact with services in the main server.
119 This requires a special kernel supporting the new new_s_context and
120 set_ipv4root system call.
123 util-vserver provides the components and a framework to setup virtual
124 servers. A virtual server runs inside a linux server. It is nevertheless
125 highly independent. As such, you can run various services with normal
126 configuration. The various vservers can't interact with each other and
127 can't interact with services in the main server.
129 This package contains the shared libraries needed by all other
130 'util-vserver' subpackages.
133 util-vserver provides the components and a framework to setup virtual
134 servers. A virtual server runs inside a linux server. It is nevertheless
135 highly independent. As such, you can run various services with normal
136 configuration. The various vservers can't interact with each other and
137 can't interact with services in the main server.
139 This package contains utilities which are required to communicate with
140 the Linux-Vserver enabled kernel.
144 util-vserver provides the components and a framework to setup virtual
145 servers. A virtual server runs inside a linux server. It is nevertheless
146 highly independent. As such, you can run various services with normal
147 configuration. The various vservers can't interact with each other and
148 can't interact with services in the main server.
150 This package contains utilities which assist in building Vservers.
153 util-vserver provides the components and a framework to setup virtual
154 servers. A virtual server runs inside a linux server. It is nevertheless
155 highly independent. As such, you can run various services with normal
156 configuration. The various vservers can't interact with each other and
157 can't interact with services in the main server.
159 This package contains the SysV initscripts which start and stop
160 VServers and related tools.
164 util-vserver provides the components and a framework to setup virtual
165 servers. A virtual server runs inside a linux server. It is nevertheless
166 highly independent. As such, you can run various services with normal
167 configuration. The various vservers can't interact with each other and
168 can't interact with services in the main server.
170 This package contains the tools which are needed to work with VServers
171 having an old-style configuration.
175 util-vserver provides the components and a framework to setup virtual
176 servers. A virtual server runs inside a linux server. It is nevertheless
177 highly independent. As such, you can run various services with normal
178 configuration. The various vservers can't interact with each other and
179 can't interact with services in the main server.
181 This package contains header files and libraries which are needed to
182 develop VServer related applications.
185 util-vserver provides the components and a framework to setup virtual
186 servers. A virtual server runs inside a linux server. It is nevertheless
187 highly independent. As such, you can run various services with normal
188 configuration. The various vservers can't interact with each other and
189 can't interact with services in the main server.
191 This package contains the files needed to interface with the
192 Linux-VServer API from Python.
196 %setup -q -n %{name}-%{version}-%{release}
198 sed -i -e 's!^\(# chkconfig: \)[0-9]\+ !\1- !' sysv/*
202 %configure --with-initrddir=%_initrddir --enable-release \
203 --with-crypto-api=nss \
205 %{!?with_dietlibc:--disable}%{?with_dietlibc:--enable}-dietlibc
207 %__make %{?_smp_mflags} all
208 %__make %{?_smp_mflags} doc
212 rm -rf $RPM_BUILD_ROOT
213 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
215 rm -f $RPM_BUILD_ROOT%_libdir/*.la \
216 $RPM_BUILD_ROOT%python_sitearch/*.*a
218 MANIFEST_CONFIG='%config' \
219 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
220 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
225 LC_NUMERIC=de_DE.UTF-8 ./lib_internal/testsuite/crypto-speed || :
229 rm -rf $RPM_BUILD_ROOT
233 test -d /vservers || mkdir -m0000 /vservers
234 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
236 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
237 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
238 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
240 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
244 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
247 %post lib -p /sbin/ldconfig
248 %postun lib -p /sbin/ldconfig
252 %chkconfig --add vservers-default
253 %chkconfig --add vprocunhide
254 %chkconfig --add util-vserver
258 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
260 test "$1" != 0 || %chkconfig --del vprocunhide
261 test "$1" != 0 || %chkconfig --del vservers-default
262 test "$1" != 0 || %chkconfig --del util-vserver
266 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
269 %triggerin build -- fedora-release, centos-release
276 test -r "$i" || continue
278 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
282 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
283 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
284 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
288 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
290 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
291 ln -s /vservers/.hash "$f"/00
293 %_sbindir/setattr --barrier /vservers/.hash || :
297 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
300 ## Temporary workaround to remove old v_* files; it will conflict
301 ## somehow with the -legacy package but can be fixed by reinstalling
303 ## TODO: remove me in the final .spec file
304 %define v_services httpd named portmap sendmail smb sshd xinetd gated
305 %triggerun sysv -- util-vserver-sysv < 0.30.198
306 for i in %v_services; do
307 %chkconfig --del v_$i || :
312 %chkconfig --add rebootmgr
313 %chkconfig --add vservers-legacy
315 for i in %v_services; do
316 %chkconfig --add v_$i
321 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
323 test "$1" != 0 || for i in %v_services; do
324 %chkconfig --del v_$i
327 test "$1" != 0 || %chkconfig --del rebootmgr
328 test "$1" != 0 || %chkconfig --del vservers-legacy
331 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
334 %files -f %name-base.list
335 %defattr(-,root,root,-)
336 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
337 %doc doc/*.html doc/*.css
341 %dir %confdefaultdir/apps
342 %dir %confdefaultdir/files
343 %dir %pkglibdir/defaults
344 %ghost %confdefaultdir/cachebase
345 %ghost %confdefaultdir/vdirbase
346 %ghost %confdefaultdir/run.rev
348 %dir %_localstatedir/cache/vservers
349 %dir %_localstatedir/run/vservers
350 %dir %_localstatedir/run/vservers.rev
351 %dir %_localstatedir/run/vshelper
354 %files lib -f %name-lib.list
355 %files sysv -f %name-sysv.list
358 %files core -f %name-core.list
359 %defattr(-,root,root,-)
363 %files build -f %name-build.list
364 %defattr(-,root,root,-)
365 %doc contrib/yum*.patch
366 %dir %confdir/.distributions
367 %dir %confdir/.distributions/*
368 %dir %confdir/.distributions/*/apt
369 %dir %confdir/.distributions/.common
370 %dir %confdir/.distributions/.common/pubkeys
371 %dir %confdefaultdir/apps/vunify
372 %dir %confdefaultdir/apps/vunify/hash
375 %files legacy -f %name-legacy.list
376 %defattr(-,root,root,-)
377 %dir %pkglibdir/legacy
380 %files devel -f %name-devel.list
381 %defattr(-,root,root,-)
382 %doc lib/apidoc/latex/refman.pdf
387 %defattr(-,root,root,-)
388 %python_sitearch/*.so
392 * Sun Aug 23 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.215+svn2847-0
393 - updated to svn 2847 snapshot
394 - added -python subpackage
396 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30.215-8
397 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
399 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30.215-7
400 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
402 * Sat Oct 18 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.215-6
403 - rebuilt with recent dietlibc
405 * Sat Oct 18 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.215-5
406 - fixed build with recent rpm
408 * Mon Sep 8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.30.215-4
411 * Sat Apr 19 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.215-3
414 * Mon Apr 14 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.30.215-2
415 - Temporarily disable check to get it to at least build and fix broken
418 * Sat Apr 12 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.215-1
419 - updated to 0.30.215
420 - use nss-devel instead of beecrypt-devel as BR
421 - run crypto-suite benchmark in %%check
422 - fixed initscript runlevels (#441311)
424 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.30.214-3
425 - Autorebuild for GCC 4.3
427 * Wed Sep 19 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.214-2
428 - fixed upgrade path from 0.30.213 to 0.30.214; rpm fails to handle when
429 a directory becomes a symlink. Hence, remove the 'etch' directory in
432 * Mon Sep 3 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.214-1
433 - updated to 0.30.214
435 * Sat Aug 4 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.213-2
436 - added patch to make 'vyum' work with a patched yum-3.2
438 * Thu May 31 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.213-1
439 - updated to 0.30.213
440 - disabled dietlibc build for PPC64
441 - enabled support for 'util-vserver' initscript
443 * Fri Apr 20 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.212-4
444 - BR some tools tested by ./configure
446 * Fri Jan 19 2007 David Woodhouse <dwmw2@infradead.org> - 0.30.212-3
447 - Build with 64KiB page size
449 * Fri Jan 19 2007 David Woodhouse <dwmw2@infradead.org> - 0.30.212-2
450 - rebuilt with PPC support
452 * Sun Dec 10 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.212-1
453 - updated to 0.30.212
455 - requires 'rsync' for -build to support new 'rsync' build method
457 * Thu Oct 12 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.211-2
458 - added graphiz + ghostscript BR
460 * Thu Oct 12 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.211-1
461 - updated to 0.30.211
463 * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.30.210-5
464 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
466 * Mon Sep 18 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-4
469 * Sun Jul 9 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-3
470 - rebuilt with dietlibc-0.30
472 * Mon Feb 20 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-2
475 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-1
477 - removed patches which were from upstream
479 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
480 - do not require 'xalan' anymore by default
481 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
482 - removed 'chattr' leftovers
483 - create the '/etc/vservers/.defaults/cachebase' symlink
484 - added /var/cache/vservers and the needed support
485 - set barrier attribute on /vservers/.pkg and /vservers/.hash
486 - added 'centos-release' to the list of packages in the copy-the-keys
488 - create '/vservers/.hash' and add initial configuration for it
490 * Thu Nov 3 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.209-4
491 - exclude PPC from build; see
492 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=172389
493 - added patch to make 'vyum' work with yum-2.4
495 * Tue Nov 1 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.209-3
496 - added lot of debug stuff to find out the reason for the 'make check'
497 failure on PPC (cflags & personlity get killed there)
499 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.209-2
500 - made sure that ensc_fmt/* it compiled with dietlibc. Else, it will
501 fail with the stack-protector in FC5's gcc
503 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-1
507 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
510 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
512 - require the -lib subpackage by -devel
513 - copy GPG keys from /etc/pki/rpm-gpg/
515 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
516 - added patches to make yum work in chroot environments
519 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-1
520 - added some %%descriptions
521 - copy GPG keys from the system into the confdir
522 - buildrequire dietlibc-0.25
523 - BuildRequire beecrypt-devel
525 - use %%global instead of %%define
526 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
528 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
529 - updated BuildRequires:
530 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
531 - moved the v_* initscripts to legacy
532 - do not ship the /vservers directory itself; as it is immutable, the
533 extraction will fail else
535 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
536 - documented switches for 'rpmbuild'
538 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
539 - (re)added the MANIFEST_* variables which were lost some time ago;
540 this will preserve %%config files...
542 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
543 - use file-list for sysv scripts also
545 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
546 - added vprocunhide-service support
547 - added doxygen support
550 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0