Summary: Builds packages inside chroots
Name: mock
Version: 0.6.7
Release: 1%{?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
%description
Mock takes a srpm and builds it in a chroot
%prep
%setup -q
%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 Oct 30 2006 Clark Williams <williams@redhat.com> - 0.6.7-1
- updated for FC6 release
* Sat Oct 21 2006 Clark Williams <williams@redhat.com> - 0.6.6-1
- bumped version to 0.6.6 (fixed tarball problem)
* Wed Oct 04 2006 Jesse Keating <jkeating@redhat.com> - 0.6.5-1
- new upstream version to fix #151255
* Tue Aug 29 2006 Jesse Keating <jkeating@redhat.com> - 0.6.4-1
- new upstream version to fix #204051
* Wed Aug 23 2006 Jesse Keating <jkeating@redhat.com> - 0.6.2-1
- new upstream version
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 0.6.1-1
- new upstream version
- Fixes in spec from upstream
- Added buildsys-build specfile to docs
* Fri Jun 23 2006 Jesse Keating <jkeating@redhat.com> - 0.6-4
- And fix the link syntax.
* Wed Jun 21 2006 Jesse Keating <jkeating@redhat.com> - 0.6-3
- Add patch symlink fedora-6 to development, not 5.
* Tue Jun 20 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1
- New upstream version 0.6
* Tue Mar 21 2006 Dan Williams <dcbw@redhat.com> - 0.4-8
- bump release for fc5/fc6 split
* Tue Mar 21 2006 Dan Williams <dcbw@redhat.com> - 0.4-7
- Update to mock CVS; add symlinks for /dev/std[in|out|err] to buildroots
* Thu Mar 2 2006 Seth Vidal <skvidal at linux.duke.edu> - 0.4-6
- iterate for gcc rebuild and fc5 final
* Tue Jan 24 2006 Dan Williams <dcbw@redhat.com> - 0.4-5
- Back out setpgrp patch, found a better way to do it in plague
* Tue Jan 24 2006 Dan Williams <dcbw@redhat.com> - 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 <dcbw@redhat.com> - 0.4-3
- Add unpackaged files fix from RH#163576 (Adrian Reber)
* Tue Dec 27 2005 Seth Vidal <skvidal@phy.duke.edu>
- add patch from Andreas Thienemann - adds man page
* Tue Aug 16 2005 Matthias Saou <http://freshrpms.net/> 0.4-2
- Fix ?fedora check when not defined (would fail to parse).
* Thu Aug 4 2005 Seth Vidal <skvidal@phy.duke.edu>
- 0.4
- update urls
- add in selinux buildreq and mock-yum file
* Sun Jun 12 2005 Jeremy Katz <katzj@redhat.com>
- set default.cfg based on both arch and distro built for
* Sat Jun 11 2005 Seth Vidal <skvidal@phy.duke.edu>
- security fix in mock-helper
* Sat Jun 11 2005 Seth Vidal <skvidal@phy.duke.edu>
- mock 0.3 - security release
- mock-helper allowed execution of arbitrary commands by member of mock
group
* Sun Jun 5 2005 Seth Vidal <skvidal@phy.duke.edu>
- clean up packaging for fedora extras
* Thu May 19 2005 Seth Vidal <skvidal@phy.duke.edu>
- second packaging and backing down the yum ver req
* Sun May 15 2005 Seth Vidal <skvidal@phy.duke.edu>
- first version/packaging