diff --git a/.cvsignore b/.cvsignore index e69de29..78ed772 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +mock-0.2.tar.gz diff --git a/mock.spec b/mock.spec new file mode 100644 index 0000000..fa7eb74 --- /dev/null +++ b/mock.spec @@ -0,0 +1,60 @@ +Summary: Builds packages inside chroots +Name: mock +Version: 0.2 +Release: 2 +License: GPL +Group: Development/Tools +Source: http://linux.duke.edu/~skvidal/mock/%{name}-%{version}.tar.gz +URL: http://linux.duke.edu/~skvidal/mock/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: python, yum >= 2.2.1 +Requires(pre): shadow-utils + + +%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} +ln -s fedora-development-i386-core.cfg default.cfg + + +%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 +%dir %{_sysconfdir}/%{name} +%config(noreplace) %{_sysconfdir}/%{name}/*.cfg +%{_bindir}/%{name} +%attr(04750, root, mock) %{_sbindir}/mock-helper +%attr(02775, root, mock) %dir /var/lib/mock + + +%changelog +* 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 diff --git a/sources b/sources index e69de29..c224f36 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8451dd235ef0c1927a2acee68e72d621 mock-0.2.tar.gz