Name: auto-mock-build Version: 0.1 Release: 1%{?dist} Summary: automatically build pkgs via mock License: GPLv2+ URL: http://skvidal.fedorapeople.org/~skvidal/auto-mock-build Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: mock %description auto-mock-build is a package you can throw on your system, chkconfig it on and then if there are any pkgs in the builds dir it will build them using mock and put the results in a subdir. %prep %setup -q %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/ install -m 0755 bin/auto-mock-build $RPM_BUILD_ROOT/%{_bindir}/auto-mock-build install sysconfig/auto-mock-build $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/auto-mock-build install -m 0755 init/auto-mock-build $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/auto-mock-build %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README %{_bindir}/%{name} %config %{_sysconfdir}/sysconfig/%{name} %{_sysconfdir}/init.d/%{name} %changelog * Mon Mar 29 2010 Seth Vidal - first pkging