Summary: Builds packages inside chroots Name: mock Version: 0.6.8 Release: 4%{?dist} License: GPL Group: Development/Tools Source: http://fedoraproject.org/projects/mock/releases/%{name}-%{version}.tar.gz URL: http://fedoraproject.org/wiki/Projects/Mock BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: python, yum >= 2.2.1 Requires(pre): shadow-utils BuildRequires: libselinux-devel Patch0: arch-specific-repo.patch %description Mock takes a srpm and builds it in a chroot %prep %setup -q %patch0 -p0 %build make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # make the default.cfg link cd $RPM_BUILD_ROOT/%{_sysconfdir}/%{name} %if 0%{?fedora:1} if [ -f fedora-%{fedora}-%{_target_cpu}-core.cfg ]; then ln -s fedora-%{fedora}-%{_target_cpu}-core.cfg default.cfg fi %endif # if we haven't created a default link yet, try to do so as devel if [ ! -f default.cfg ]; then if [ -f fedora-development-%{_target_cpu}-core.cfg ]; then ln -s fedora-development-%{_target_cpu}-core.cfg default.cfg elif [ -f fedora-devel-%{_target_cpu}-core.cfg ]; then ln -s fedora-devel-%{_target_cpu}-core.cfg default.cfg elif [ -f fedora-development-i386-core.cfg ]; then ln -s fedora-development-i386-core.cfg default.cfg elif [ -f fedora-devel-i386-core.cfg ]; then ln -s fedora-devel-i386-core.cfg default.cfg fi fi %clean rm -rf $RPM_BUILD_ROOT %pre if [ $1 -eq 1 ]; then groupadd -r mock >/dev/null 2>&1 || : fi %files %defattr(-, root, root) %doc README ChangeLog buildsys-build.spec %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/*.cfg %{_bindir}/%{name} %{_libexecdir}/mock-yum %{_mandir}/man1/mock.1* %attr(04750, root, mock) %{_sbindir}/mock-helper %attr(02775, root, mock) %dir /var/lib/mock %{_libdir}/libselinux-mock.so %changelog * Mon Nov 6 2006 Jesse Keating - 0.6.8-4 - Fix a couple typos pointing fc6 chroots to fe5. * Sat Nov 4 2006 Jesse Keating - 0.6.8-3 - Fix a typo in the patch that added x86_64 repos for fc4ppc * Fri Nov 3 2006 Jesse Keating - 0.6.8-2 - Add patch to fix repo files to use arch specific repos (#213516) * Mon Oct 30 2006 Clark Williams - 0.6.8-1 - respun tarballs without buildsys rpms * Mon Oct 30 2006 Clark Williams - 0.6.7-1 - updated for FC6 release * Sat Oct 21 2006 Clark Williams - 0.6.6-1 - bumped version to 0.6.6 (fixed tarball problem) * Wed Oct 04 2006 Jesse Keating - 0.6.5-1 - new upstream version to fix #151255 * Tue Aug 29 2006 Jesse Keating - 0.6.4-1 - new upstream version to fix #204051 * Wed Aug 23 2006 Jesse Keating - 0.6.2-1 - new upstream version * Fri Aug 18 2006 Jesse Keating - 0.6.1-1 - new upstream version - Fixes in spec from upstream - Added buildsys-build specfile to docs * Fri Jun 23 2006 Jesse Keating - 0.6-4 - And fix the link syntax. * Wed Jun 21 2006 Jesse Keating - 0.6-3 - Add patch symlink fedora-6 to development, not 5. * Tue Jun 20 2006 Jesse Keating - 0.6-1 - New upstream version 0.6 * Tue Mar 21 2006 Dan Williams - 0.4-8 - bump release for fc5/fc6 split * Tue Mar 21 2006 Dan Williams - 0.4-7 - Update to mock CVS; add symlinks for /dev/std[in|out|err] to buildroots * Thu Mar 2 2006 Seth Vidal - 0.4-6 - iterate for gcc rebuild and fc5 final * Tue Jan 24 2006 Dan Williams - 0.4-5 - Back out setpgrp patch, found a better way to do it in plague * Tue Jan 24 2006 Dan Williams - 0.4-4 - Add option to create new process group so mock and its children may be more easily killed * Wed Jan 18 2006 Dan Williams - 0.4-3 - Add unpackaged files fix from RH#163576 (Adrian Reber) * Tue Dec 27 2005 Seth Vidal - add patch from Andreas Thienemann - adds man page * Tue Aug 16 2005 Matthias Saou 0.4-2 - Fix ?fedora check when not defined (would fail to parse). * Thu Aug 4 2005 Seth Vidal - 0.4 - update urls - add in selinux buildreq and mock-yum file * Sun Jun 12 2005 Jeremy Katz - set default.cfg based on both arch and distro built for * Sat Jun 11 2005 Seth Vidal - security fix in mock-helper * Sat Jun 11 2005 Seth Vidal - mock 0.3 - security release - mock-helper allowed execution of arbitrary commands by member of mock group * Sun Jun 5 2005 Seth Vidal - clean up packaging for fedora extras * Thu May 19 2005 Seth Vidal - second packaging and backing down the yum ver req * Sun May 15 2005 Seth Vidal - first version/packaging