Name: mach Version: 0.4.6.1 Release: 1.yum.0.20050321.031334 Summary: make a chroot Group: Applications/System License: GPL URL: http://thomas.apestaart.org/projects/mach/ Source: http://thomas.apestaart.org/download/mach/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: python Requires: rpm Requires: rpm-build Requires: rpm-python Requires: sed Requires: cpio Requires: yum BuildRequires: python, libselinux-devel %{!?builduser: %define builduser machbuild} %{!?buildgroup: %define buildgroup machbuild} %description mach makes a chroot. Uses yum and a suid binary, it manages to install clean chroot environments based on the original packages for that distribution. The clean root can be used to run jail roots, to create image files, or to build clean packages. Authors: -------- Thomas Vander Stichele (thomas (at) apestaart (dot) org) %prep %setup -q %build %configure \ --enable-builduser=%{builduser} \ --enable-buildgroup=%{buildgroup} \ --with-flavor=fedora-stable make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT install -d -m 2775 $RPM_BUILD_ROOT%{_localstatedir}/lib/mach install -d -m 2775 $RPM_BUILD_ROOT%{_localstatedir}/lib/mach/states install -d -m 2775 $RPM_BUILD_ROOT%{_localstatedir}/lib/mach/roots install -d -m 2775 $RPM_BUILD_ROOT%{_localstatedir}/tmp/mach install -d -m 775 $RPM_BUILD_ROOT%{_localstatedir}/cache/mach/packages install -d -m 775 $RPM_BUILD_ROOT%{_localstatedir}/cache/mach/archives find $RPM_BUILD_ROOT -name "*.la" -exec rm {} \; %clean rm -rf $RPM_BUILD_ROOT %pre groupadd -r mach >/dev/null 2>&1 || : %preun if [ "$1" == 0 ]; then # last removal # be a good boy and clean out the dirs we filled with junk rm -rf %{_localstatedir}/lib/mach/states/* umount %{_localstatedir}/lib/mach/roots/*/proc > /dev/null 2>&1 || : rm -rf %{_localstatedir}/lib/mach/roots/* rm -rf %{_localstatedir}/cache/mach/* > /dev/null 2>&1 || : rmdir %{_localstatedir}/lib/mach/states > /dev/null 2>&1 || : rmdir %{_localstatedir}/lib/mach/roots > /dev/null 2>&1 || : rmdir %{_localstatedir}/cache/mach > /dev/null 2>&1 || : rm -rf %{_localstatedir}/tmp/mach > /dev/null 2>&1 || : fi %files %defattr(-,root,root,-) %doc ChangeLog COPYING README AUTHORS BUGS TODO FORGETMENOT RELEASE %dir %{_sysconfdir}/mach %config %{_sysconfdir}/mach/conf %config %{_sysconfdir}/mach/location %config(noreplace) %{_sysconfdir}/mach/dist.d %attr(2775,root,mach) %dir %{_localstatedir}/lib/mach %attr(2775,root,mach) %dir %{_localstatedir}/lib/mach/states %attr(2775,root,mach) %dir %{_localstatedir}/lib/mach/roots %ghost %attr(2775,root,mach) %dir %{_localstatedir}/tmp/mach %attr(2775,root,mach) %{_localstatedir}/cache/mach %{_bindir}/mach %{_libdir}/libselinux-mach.* %attr(04750,root,mach) %{_sbindir}/mach-helper %changelog * Mon Mar 21 2005 Seth Vidal - keep mach from dying if the spec file is mode 600 - add in lots of dev entries * Wed Mar 16 2005 Seth Vidal - more yummification and add libselinux-devel buildreq * Mon Feb 28 2005 Seth Vidal - make yum a req for this version * Mon Aug 9 2004 Ville Skyttä - Create only the "mach" group, and do not remove it on erase. The "mach" user is not really needed for anything. * Sun Jun 6 2004 Ville Skyttä - Properly redirect STDERR from umount to /dev/null at erase time. * Wed Apr 14 2004 Ville Skyttä - Own %%{_localstatedir}/mach, thanks to John Dalbec for the catch. * Thu Apr 8 2004 Ville Skyttä - Require apt >= 0.5.5cnc2 due to internal use of the "rpm-dir" index type. * Tue Mar 16 2004 Thomas Vander Stichele - package dist.d and location * Thu Mar 11 2004 Thomas Vander Stichele - use --with-flavor * Fri Jan 9 2004 Ville Skyttä - Use the bzip2'd tarball. * Thu Jan 8 2004 Ville Skyttä - Make mach chroot build user/group configurable using "rpmbuild --define 'build(user|group) foo'" - Build in the %%build section. * Wed Sep 17 2003 Thomas Vander Stichele - add Requires: cpio - change home dir to %%{_localstatedir}/lib/mach * Mon Sep 08 2003 Thomas Vander Stichele - 0.4.0-0.fdr.1: first public release. * Sat Aug 16 2003 Ville Skyttä - Add COPYING to docs. * Wed May 21 2003 Thomas Vander Stichele - added mach-helper * Wed Apr 30 2003 Thomas Vander Stichele - initial creation