siosm / rpms / mock

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