85efc06
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
85efc06
d2e38ff
%define baserelease 1
85efc06
#build with --define 'testbuild 1' to have a timestamp appended to release
09e6712
%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
0c1a40c
Version: 1.3.1
85efc06
Release: %{release}%{?dist}
09e6712
License: LGPLv2
85efc06
Summary: Build system tools
85efc06
Group: Applications/System
7d9b5ae
URL: http://fedorahosted.org/koji
a358def
Patch0: fedora-config.patch
941c3e9
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}
5306526
Requires: mock >= 0.9.14
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
86272a6
Requires: /usr/bin/cvs
86272a6
Requires: /usr/bin/svn
86272a6
Requires: /usr/bin/git
85efc06
Requires: rpm-build
85efc06
Requires: redhat-rpm-config
0c1a40c
%if 0%{?fedora}
5306526
Requires: createrepo >= 0.9.6
0c1a40c
%endif
0c1a40c
%if 0%{?rhel}
0c1a40c
Requires: python-createrepo >= 0.9.6
0c1a40c
Requires: python-hashlib
0c1a40c
%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
5306526
%{_libexecdir}/koji-hub/
5306526
%config(noreplace) %{_sysconfdir}/httpd/conf.d/kojihub.conf
5306526
%config(noreplace) %{_sysconfdir}/koji-hub/hub.conf
85efc06
85efc06
%files utils
85efc06
%defattr(-,root,root)
85efc06
%{_sbindir}/kojira
d2e38ff
%{_sbindir}/koji-gc
5306526
%{_sbindir}/koji-shadow
85efc06
%{_initrddir}/kojira
85efc06
%config(noreplace) %{_sysconfdir}/sysconfig/kojira
d2e38ff
%dir %{_sysconfdir}/kojira
85efc06
%config(noreplace) %{_sysconfdir}/kojira/kojira.conf
d2e38ff
%dir %{_sysconfdir}/koji-gc
d2e38ff
%config(noreplace) %{_sysconfdir}/koji-gc/koji-gc.conf
5306526
%config(noreplace) %{_sysconfdir}/koji-shadow/koji-shadow.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
5306526
%{_libexecdir}/kojid/
5306526
%{_datadir}/koji-builder
85efc06
%config(noreplace) %{_sysconfdir}/sysconfig/kojid
d2e38ff
%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
0c1a40c
* Fri Feb 20 2009 Dennis Gilmore <dennis@ausil.us> - 1.3.1-1
0c1a40c
- update to 1.3.1
0c1a40c
5306526
* Wed Feb 18 2009 Dennis Gilmore <dennis@ausil.us> - 1.3.0-1
5306526
- update to 1.3.0
5306526
5306526
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.6-2
5306526
- Rebuild for Python 2.6
5306526
d2e38ff
* Mon Aug 25 2008 Dennis Gilmore <dennis@ausil.us> - 1.2.6-1
d2e38ff
- update to 1.2.6
d2e38ff
- make sure we have to correct version of createrepo on Fedora 8 
d2e38ff
09e6712
* Tue Aug  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.5-2
09e6712
- fix conditional (line 5)
09e6712
- fix license tag
09e6712
941c3e9
* Fri Jan 25 2008 jkeating <jkeating@redhat.com> 1.2.5-1
941c3e9
- Put createrepo arguments in correct order
941c3e9
7d9b5ae
* Thu Jan 24 2008 jkeating <jkeating@redhat.com> 1.2.4-1
7d9b5ae
- Use the --skip-stat flag in createrepo calls.
7d9b5ae
- canonicalize tag arches before using them (dgilmore)
7d9b5ae
- fix return value of delete_build
7d9b5ae
- Revert to getfile urls if the task is not successful in emails
7d9b5ae
- Pass --target instead of --arch to mock.
7d9b5ae
- ignore trashcan tag in prune-signed-copies command
7d9b5ae
- add the "allowed_scms" kojid parameter
7d9b5ae
- allow filtering builds by the person who built them
7d9b5ae
86272a6
* Fri Dec 14 2007 jkeating <jkeating@redhat.com> 1.2.3-1
86272a6
- New upstream release with lots of updates, bugfixes, and enhancements.
f0da961
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
86272a6
86272a6
* 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
86272a6
* Tue Apr 17 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-2
86272a6
- re-enable use of the --update flag to createrepo
86272a6
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