Seth Vidal 32b2475
Summary: Builds packages inside chroots
Seth Vidal 32b2475
Name: mock
4af962c
Version: 0.7.3
3a9c95c
Release: 1%{?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)
c118de4
Requires: python, yum >= 3.0
Seth Vidal 32b2475
Requires(pre): shadow-utils
Seth Vidal 5945c90
BuildRequires: libselinux-devel
Seth Vidal 32b2475
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
e087a33
Seth Vidal 32b2475
%build
c118de4
make CFLAGS="$RPM_OPT_FLAGS"
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
3a9c95c
        ln -s fedora-%{fedora}-%{_target_cpu}-core.cfg default.cfg
c118de4
elif [ -f fedora-%{fedora}-%{_target_cpu}.cfg ]; then
c118de4
        ln -s fedora-%{fedora}-%{_target_cpu}.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
c118de4
    if [ -f fedora-development-%{_target_cpu}.cfg ]; then
c118de4
        ln -s fedora-development-%{_target_cpu}.cfg default.cfg
c118de4
    elif [ -f fedora-devel-%{_target_cpu}.cfg ]; then
c118de4
        ln -s fedora-devel-%{_target_cpu}.cfg default.cfg
c118de4
    elif [ -f fedora-development-i386.cfg ]; then
c118de4
        ln -s fedora-development-i386.cfg default.cfg
c118de4
    elif [ -f fedora-devel-i386.cfg ]; then
c118de4
        ln -s fedora-devel-i386.cfg default.cfg
342578e
    fi
342578e
fi
Seth Vidal 32b2475
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
%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
%changelog
4af962c
* Fri Jul  6 2007 Michael Brown <mebrown@michaels-house.net> - 0.7.3-1
4af962c
- remove redundant defaults.cfg entries.
4af962c
4af962c
* Wed Jun 20 2007 Michael Brown <mebrown@michaels-house.net> - 0.7.2-1
4af962c
- fix exclude list
4af962c
- remove legacy configs
4af962c
- disable 'local' repos by default (koji-repos)
4af962c
6363114
* Wed Jun 13 2007 Michael Brown <mebrown@michaels-house.net> - 0.7.1-1
6363114
- Fix problem with autocache where different users couldnt share same cache
6363114
- Fix problem creating resolv.conf in rootfs
6363114
- cleanup perms on rootfs /etc/
6363114
6363114
* Tue Jun 12 2007 Michael Brown <mebrown@michaels-house.net> - 0.7.1-1
6363114
- add EPEL 5 config files
6363114
c118de4
* Mon Jun 11 2007 Clark Williams <williams@redhat.com> - 0.7-1
c118de4
- fixed bind mount problems
c118de4
- added code to allow multiple users to use --no-clean
c118de4
- merged mock-0-6-branch to head and changed version
c118de4
c118de4
* Thu Jun  7 2007 Clark Williams <williams@redhat.com> - 0.6.17-1
c118de4
- added F-7 config files (BZ#242276)
c118de4
- modified epel configs for changed mirrorlist location (BZ#239981)
c118de4
- added bind mount of /dev (BZ#236428)
c118de4
- added copy of /etc/resolv.conf to chroot (BZ#237663 and BZ#238101)
c118de4
c118de4
* Tue May 01 2007 Clark Williams <williams@redhat.com> - 0.6.16-1
c118de4
- timeout code adds new cmdline option that will kill build process after
c118de4
  specified timeout. Useful for automated builds of things that may hang during
c118de4
  build and you just want it to fail.
c118de4
c118de4
* Tue Apr 10 2007 Clark Williams <williams@redhat.com> - 0.6.15-1
c118de4
- Fixed typo in FC4 -epel configs (BZ 235490)
c118de4
c118de4
* Sat Feb 24 2007 Clark Williams <williams@redhat.com> - 0.6.14-1
c118de4
- Ville Skyttä's fix for RPM_OPT_FLAGS (BZ 226673)
c118de4
c118de4
* Tue Feb 20 2007 Clark Williams <williams@redhat.com> - 0.6.13-1
c118de4
- Handle --no-clean option when doing yum.conf symlink (BZ 230824)
c118de4
acb05c0
* Fri Feb 16 2007 Clark Williams <williams@redhat.com> - 0.6.12-1
acb05c0
- added safety symlink for yum.conf
acb05c0
c118de4
* Wed Feb  7 2007 Clark Williams <williams@redhat.com> - 0.6.11-1
bd82605
- added error() calls to print command output on failed commands
c118de4
c118de4
* Tue Feb  6 2007 Clark Williams <williams@redhat.com> - 0.6.11-1
bd82605
- added installdeps command for long-term chroot management
bd82605
3a9c95c
* Mon Jan  8 2007 Clark Williams <williams@redhat.com> - 0.6.10-1
3a9c95c
- Added Josh Boyer's EPEL config files
3a9c95c
3a9c95c
* Tue Nov 21 2006 Clark Williams <williams@redhat.com> - 0.6.9-1
3a9c95c
- applied Eric Work's patch to fix defaults vs. command line option problem
3a9c95c
  (BZ 215168)
3a9c95c
- use /etc/mock/defaults.cfg if --configdir specified and no defaults found
3a9c95c
  in the specified configdir
3a9c95c
  (BZ 209407)
3a9c95c
- applied Jesse Keatings patch for arch specifi config files
3a9c95c
  (BZ 213516)
3a9c95c
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
c118de4
* Mon Sep 11 2006 Clark Williams <williams@redhat.com> - 0.6.5-1
c118de4
- changed version number for patch from Karanbir Singh
c118de4
  (rpm workaround on CentOS 4.4)
e087a33
c118de4
* Tue Aug 29 2006 Clark Williams <williams@redhat.com> - 0.6.3-1
c118de4
- changed version number to indicate fix for bz 204051
4512331
c118de4
* Tue Aug 29 2006 Clark Williams <williams@redhat.com> - 0.6.2-2
c118de4
- bumped revision for bz 204051
4a3346f
c118de4
* Wed Aug 23 2006 Clark Williams <williams@redhat.com> - 0.6.2-1
c118de4
- Updated README
c118de4
- Fixed link problem in etc/Makefile
c118de4
- Bumped version number
10da02d
c118de4
* Wed Aug 16 2006 Clark Williams <williams@redhat.com>
c118de4
- Added buildsys-build specfile to docs
c118de4
- Added disttag
c118de4
- Bumped release number
Seth Vidal d967c7b
c118de4
* Wed Jun  7 2006 Seth Vidal <skvidal at linux.duke.edu>
c118de4
- version update
a898638
c118de4
* Tue Apr 11 2006 Seth Vidal <skvidal at linux.duke.edu>
c118de4
- specfile version iterate
c5cd703
ef5fe3f
* Tue Dec 27 2005 Seth Vidal <skvidal@phy.duke.edu>
ef5fe3f
- add patch from Andreas Thienemann - adds man page
ef5fe3f
ef5fe3f
* Sat Jun 11 2005 Seth Vidal <skvidal@phy.duke.edu>
ef5fe3f
- security fix in mock-helper
ef5fe3f
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