85efc06
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
85efc06
5bf52b3
%define baserelease 1
85efc06
#build with --define 'testbuild 1' to have a timestamp appended to release
5bf52b3
%if "x%{?testbuild}" == "x1"
85efc06
%define release %{baserelease}.%(date +%%Y%%m%%d.%%H%%M.%%S)
85efc06
%else
85efc06
%define release %{baserelease}
85efc06
%endif
85efc06
Name: koji
5bf52b3
Version: 1.2.6
85efc06
Release: %{release}%{?dist}
5bf52b3
License: LGPLv2
85efc06
Summary: Build system tools
85efc06
Group: Applications/System
5bf52b3
URL: http://fedorahosted.org/koji
a358def
Patch0: fedora-config.patch
5bf52b3
Source: https://fedorahosted.org/koji/attachment/wiki/KojiRelease/%{name}-%{PACKAGE_VERSION}.tar.bz2
85efc06
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
85efc06
BuildArch: noarch
85efc06
Requires: python-krbV >= 1.0.13
85efc06
Requires: rpm-python
85efc06
Requires: pyOpenSSL
a358def
Requires: python-urlgrabber
85efc06
BuildRequires: python
85efc06
85efc06
%description
85efc06
Koji is a system for building and tracking RPMS.  The base package
85efc06
contains shared libraries and the command-line interface.
85efc06
85efc06
%package hub
85efc06
Summary: Koji XMLRPC interface
85efc06
Group: Applications/Internet
85efc06
Requires: httpd
85efc06
Requires: mod_python
85efc06
Requires: postgresql-python
85efc06
Requires: %{name} = %{version}-%{release}
85efc06
85efc06
%description hub
85efc06
koji-hub is the XMLRPC interface to the koji database
85efc06
85efc06
%package builder
85efc06
Summary: Koji RPM builder daemon
85efc06
Group: Applications/System
85efc06
Requires: %{name} = %{version}-%{release}
5bf52b3
Requires: mock >= 0.8.7
85efc06
Requires(post): /sbin/chkconfig
85efc06
Requires(post): /sbin/service
85efc06
Requires(preun): /sbin/chkconfig
85efc06
Requires(preun): /sbin/service
85efc06
Requires(pre): /usr/sbin/useradd
5bf52b3
Requires: /usr/bin/cvs
5bf52b3
Requires: /usr/bin/svn
5bf52b3
Requires: /usr/bin/git
85efc06
Requires: rpm-build
85efc06
Requires: redhat-rpm-config
5bf52b3
%if 0%{?rhel} >= 5
5bf52b3
Requires: createrepo >= 0.4.11-2
5bf52b3
%endif
5bf52b3
%if 0%{?fedora} >= 9
5bf52b3
Requires: createrepo >= 0.9.2
5bf52b3
%else
5bf52b3
Requires: createrepo >= 0.4.11-2
5bf52b3
%endif
85efc06
85efc06
%description builder
85efc06
koji-builder is the daemon that runs on build machines and executes
85efc06
tasks that come through the Koji system.
85efc06
85efc06
%package utils
85efc06
Summary: Koji Utilities
85efc06
Group: Applications/Internet
85efc06
Requires: postgresql-python
85efc06
Requires: %{name} = %{version}-%{release}
85efc06
85efc06
%description utils
85efc06
Utilities for the Koji system
85efc06
85efc06
%package web
85efc06
Summary: Koji Web UI
85efc06
Group: Applications/Internet
85efc06
Requires: httpd
85efc06
Requires: mod_python
85efc06
Requires: mod_auth_kerb
85efc06
Requires: postgresql-python
85efc06
Requires: python-cheetah
85efc06
Requires: %{name} = %{version}-%{release}
85efc06
Requires: python-krbV >= 1.0.13
85efc06
85efc06
%description web
85efc06
koji-web is a web UI to the Koji system.
85efc06
85efc06
%prep
85efc06
%setup -q
a358def
%patch0 -p1 -b .orig
85efc06
85efc06
%build
85efc06
85efc06
%install
85efc06
rm -rf $RPM_BUILD_ROOT
85efc06
make DESTDIR=$RPM_BUILD_ROOT install
85efc06
85efc06
%clean
85efc06
rm -rf $RPM_BUILD_ROOT
85efc06
85efc06
%files
85efc06
%defattr(-,root,root)
85efc06
%{_bindir}/*
85efc06
%{python_sitelib}/%{name}
85efc06
%config(noreplace) %{_sysconfdir}/koji.conf
85efc06
%doc docs Authors COPYING LGPL
85efc06
85efc06
%files hub
85efc06
%defattr(-,root,root)
85efc06
%{_datadir}/koji-hub
85efc06
%config(noreplace) /etc/httpd/conf.d/kojihub.conf
85efc06
85efc06
%files utils
85efc06
%defattr(-,root,root)
85efc06
%{_sbindir}/kojira
5bf52b3
%{_sbindir}/koji-gc
85efc06
%{_initrddir}/kojira
85efc06
%config(noreplace) %{_sysconfdir}/sysconfig/kojira
5bf52b3
%dir %{_sysconfdir}/kojira
85efc06
%config(noreplace) %{_sysconfdir}/kojira/kojira.conf
5bf52b3
%dir %{_sysconfdir}/koji-gc
5bf52b3
%config(noreplace) %{_sysconfdir}/koji-gc/koji-gc.conf
85efc06
85efc06
%files web
85efc06
%defattr(-,root,root)
85efc06
%{_datadir}/koji-web
85efc06
%{_sysconfdir}/kojiweb
85efc06
%config(noreplace) /etc/httpd/conf.d/kojiweb.conf
85efc06
85efc06
%files builder
85efc06
%defattr(-,root,root)
85efc06
%{_sbindir}/kojid
85efc06
%{_initrddir}/kojid
85efc06
%config(noreplace) %{_sysconfdir}/sysconfig/kojid
5bf52b3
%dir %{_sysconfdir}/kojid
85efc06
%config(noreplace) %{_sysconfdir}/kojid/kojid.conf
85efc06
%attr(-,kojibuilder,kojibuilder) /etc/mock/koji
85efc06
85efc06
%pre builder
85efc06
/usr/sbin/useradd -r -s /bin/bash -G mock -d /builddir -M kojibuilder 2>/dev/null ||:
85efc06
85efc06
%post builder
85efc06
/sbin/chkconfig --add kojid
85efc06
/sbin/service kojid condrestart &> /dev/null || :
85efc06
85efc06
%preun builder
85efc06
if [ $1 = 0 ]; then
85efc06
  /sbin/service kojid stop &> /dev/null
85efc06
  /sbin/chkconfig --del kojid
85efc06
fi
85efc06
85efc06
%post utils
85efc06
/sbin/chkconfig --add kojira
85efc06
/sbin/service kojira condrestart &> /dev/null || :
85efc06
%preun utils
85efc06
if [ $1 = 0 ]; then
85efc06
  /sbin/service kojira stop &> /dev/null || :
85efc06
  /sbin/chkconfig --del kojira
85efc06
fi
85efc06
85efc06
%changelog
5bf52b3
* Mon Aug 25 2008 Dennis Gilmore <dennis@ausil.us> - 1.2.6-1
5bf52b3
- update to 1.2.6
5bf52b3
- make sure we have to correct version of createrepo on Fedora 8 
5bf52b3
5bf52b3
* Tue Aug  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.5-2
5bf52b3
- fix conditional (line 5)
5bf52b3
- fix license tag
5bf52b3
5bf52b3
* Fri Jan 25 2008 jkeating <jkeating@redhat.com> 1.2.5-1
5bf52b3
- Put createrepo arguments in correct order
5bf52b3
5bf52b3
* Thu Jan 24 2008 jkeating <jkeating@redhat.com> 1.2.4-1
5bf52b3
- Use the --skip-stat flag in createrepo calls.
5bf52b3
- canonicalize tag arches before using them (dgilmore)
5bf52b3
- fix return value of delete_build
5bf52b3
- Revert to getfile urls if the task is not successful in emails
5bf52b3
- Pass --target instead of --arch to mock.
5bf52b3
- ignore trashcan tag in prune-signed-copies command
5bf52b3
- add the "allowed_scms" kojid parameter
5bf52b3
- allow filtering builds by the person who built them
5bf52b3
5bf52b3
* Fri Dec 14 2007 jkeating <jkeating@redhat.com> 1.2.3-1
5bf52b3
- New upstream release with lots of updates, bugfixes, and enhancements.
6b424c9
a358def
* Tue Jun  5 2007 Mike Bonnet <mikeb@redhat.com> - 1.2.2-1
a358def
- only allow admins to perform non-scratch builds from srpm
a358def
- bug fixes to the cmd-line and web UIs
5bf52b3
5bf52b3
* Thu May 31 2007 Mike Bonnet <mikeb@redhat.com> - 1.2.1-1
a358def
- don't allow ExclusiveArch to expand the archlist (bz#239359)
a358def
- add a summary line stating whether the task succeeded or failed to the end of the "watch-task" output
a358def
- add a search box to the header of every page in the web UI
a358def
- new koji download-build command (patch provided by Dan Berrange)
6789f3d
6789f3d
* Tue May 15 2007 Mike Bonnet <mikeb@redhat.com> - 1.2.0-1
6789f3d
- change version numbering to a 3-token scheme
6789f3d
- install the koji favicon
6789f3d
6789f3d
* Mon May 14 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-5
6789f3d
- cleanup koji-utils Requires
6789f3d
- fix encoding and formatting in email notifications
6789f3d
- expand archlist based on ExclusiveArch/BuildArchs
6789f3d
- allow import of rpms without srpms
6789f3d
- commit before linking in prepRepo to release db locks
6789f3d
- remove exec bit from kojid logs and uploaded files (patch by Enrico Scholz)
6789f3d
6789f3d
* Tue May  1 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-4
6789f3d
- remove spurious Requires: from the koji-utils package
6789f3d
6789f3d
* Tue May  1 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-3
6789f3d
- fix typo in BuildNotificationTask (patch provided by Michael Schwendt)
6789f3d
- add the --changelog param to the buildinfo command
6789f3d
- always send email notifications to the package builder and package owner
6789f3d
- improvements to the web UI
6789f3d
5bf52b3
* Tue Apr 17 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-2
5bf52b3
- re-enable use of the --update flag to createrepo
5bf52b3
30d8ef9
* Mon Apr 09 2007 Jesse Keating <jkeating@redhat.com> 1.1-1
30d8ef9
- make the output listPackages() consistent regardless of with_dups
30d8ef9
- prevent large batches of repo deletes from holding up regens
30d8ef9
- allow sorting the host list by arches
30d8ef9
85efc06
* Mon Apr 02 2007 Jesse Keating <jkeating@redhat.com> 1.0-1
85efc06
- Release 1.0!
85efc06
85efc06
* Wed Mar 28 2007 Mike Bonnet <mikeb@redhat.com> - 0.9.7-4
85efc06
- set SSL connection timeout to 12 hours
85efc06
85efc06
* Wed Mar 28 2007 Mike Bonnet <mikeb@redhat.com> - 0.9.7-3
85efc06
- avoid SSL renegotiation
85efc06
- improve log file handling in kojid
85efc06
- bug fixes in command-line and web UI
85efc06
85efc06
* Sun Mar 25 2007 Mike Bonnet <mikeb@redhat.com> - 0.9.7-2
85efc06
- enable http access to packages in kojid
85efc06
- add Requires: pyOpenSSL
85efc06
- building srpms from CVS now works with the Extras CVS structure
85efc06
- fixes to the chain-build command
85efc06
- bug fixes in the XML-RPC and web interfaces
85efc06
85efc06
* Tue Mar 20 2007 Jesse Keating <jkeating@redhat.com> - 0.9.7-1
85efc06
- Package up the needed ssl files
85efc06
85efc06
* Tue Mar 20 2007 Jesse Keating <jkeating@redhat.com> - 0.9.6-1
85efc06
- 0.9.6 release, mostly ssl auth stuff
85efc06
- use named directories for config stuff
85efc06
- remove -3 requires on creatrepo, don't need that specific anymore
85efc06
85efc06
* Tue Feb 20 2007 Jesse Keating <jkeating@redhat.com> - 0.9.5-8
85efc06
- Add Authors COPYING LGPL to the docs of the main package
85efc06
85efc06
* Tue Feb 20 2007 Jesse Keating <jkeating@redhat.com> - 0.9.5-7
85efc06
- Move web files from /var/www to /usr/share
85efc06
- Use -p in install calls
85efc06
- Add rpm-python to requires for koji
85efc06
85efc06
* Mon Feb 19 2007 Jesse Keating <jkeating@redhat.com> - 0.9.5-6
85efc06
- Clean up spec for package review
85efc06
85efc06
* Sun Feb 04 2007 Mike McLean <mikem@redhat.com> - 0.9.5-1
85efc06
- project renamed to koji