85efc06
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
85efc06
85efc06
Name: koji
9645510
Version: 1.6.0
87dcb5e
Release: 1%{?dist}
b7bcf87
License: LGPLv2 and GPLv2+
b7bcf87
# koji.ssl libs (from plague) are GPLv2+
85efc06
Summary: Build system tools
85efc06
Group: Applications/System
7d9b5ae
URL: http://fedorahosted.org/koji
a358def
Patch0: fedora-config.patch
021dece
9645510
Source: https://fedorahosted.org/releases/k/o/koji/%{name}-%{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
12b25f9
License: LGPLv2 and GPLv2
12b25f9
# rpmdiff lib (from rpmlint) is GPLv2 (only)
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
12b25f9
%package hub-plugins
12b25f9
Summary: Koji hub plugins
12b25f9
Group: Applications/Internet
12b25f9
Requires: %{name} = %{version}-%{release}
12b25f9
Requires: %{name}-hub = %{version}-%{release}
12b25f9
12b25f9
%description hub-plugins
12b25f9
Plugins to the koji XMLRPC interface
12b25f9
85efc06
%package builder
85efc06
Summary: Koji RPM builder daemon
85efc06
Group: Applications/System
b7bcf87
License: LGPLv2 and GPLv2+
b7bcf87
#mergerepos (from createrepo) is GPLv2+
85efc06
Requires: %{name} = %{version}-%{release}
0573e26
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
12b25f9
Requires: pykickstart                                                                               
d6c730b
Requires: pycdio
d6c730b
Requires: python-cheetah
b7bcf87
%if 0%{?fedora} || 0%{?rhel} > 5
0573e26
Requires: createrepo >= 0.9.6
9052155
%endif
b7bcf87
%if 0%{?rhel} == 5
9052155
Requires: python-createrepo >= 0.9.6
9052155
Requires: python-hashlib
12b25f9
Requires: createrepo
9052155
%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
9645510
%package vm
9645510
Summary: Koji virtual machine management daemon
9645510
Group: Applications/System
9645510
License: LGPLv2
9645510
Requires: %{name} = %{version}-%{release}
9645510
Requires(post): /sbin/chkconfig
9645510
Requires(post): /sbin/service
9645510
Requires(preun): /sbin/chkconfig
9645510
Requires(preun): /sbin/service
9645510
Requires: libvirt-python
9645510
Requires: libxml2-python
9645510
Requires: python-virtinst
9645510
Requires: qemu-img
9645510
9645510
%description vm
9645510
koji-vm contains a supplemental build daemon that executes certain tasks in a
9645510
virtual machine. This package is not required for most installations.
9645510
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
0573e26
%{_libexecdir}/koji-hub/
0573e26
%config(noreplace) %{_sysconfdir}/httpd/conf.d/kojihub.conf
0573e26
%config(noreplace) %{_sysconfdir}/koji-hub/hub.conf
85efc06
12b25f9
%files hub-plugins
12b25f9
%defattr(-,root,root)
12b25f9
%dir %{_prefix}/lib/koji-hub-plugins
12b25f9
%{_prefix}/lib/koji-hub-plugins/*.py*
b7bcf87
%dir %{_sysconfdir}/koji-hub/plugins/
b7bcf87
%config(noreplace) %{_sysconfdir}/koji-hub/plugins/messagebus.conf
9645510
%config(noreplace) %{_sysconfdir}/koji-hub/plugins/rpm2maven.conf
12b25f9
85efc06
%files utils
85efc06
%defattr(-,root,root)
85efc06
%{_sbindir}/kojira
d2e38ff
%{_sbindir}/koji-gc
0573e26
%{_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
0573e26
%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
0573e26
%{_libexecdir}/kojid/
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
9645510
%files vm
9645510
%defattr(-,root,root)
9645510
%{_sbindir}/kojivmd
9645510
%{_datadir}/kojivmd
9645510
%{_initrddir}/kojivmd
9645510
%config(noreplace) %{_sysconfdir}/sysconfig/kojivmd
9645510
%dir %{_sysconfdir}/kojivmd
9645510
%config(noreplace) %{_sysconfdir}/kojivmd/kojivmd.conf
9645510
9645510
%post vm
9645510
/sbin/chkconfig --add kojivmd
9645510
9645510
%preun vm
9645510
if [ $1 = 0 ]; then
9645510
  /sbin/service kojivmd stop &> /dev/null
9645510
  /sbin/chkconfig --del kojivmd
9645510
fi
9645510
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
9645510
* Fri Dec 17 2010 Dennis Gilmore <dennis@ausil.us> - 1.6.0-1
9645510
- update to 1.6.0
9645510
87dcb5e
* Wed Dec 01 2010 Dennis Gilmore <dennis@ausil.us> - 1.5.0-1
87dcb5e
- update to 1.5.0
87dcb5e
021dece
* Tue Aug  3 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.0-4
021dece
- fix python 2.7 incompatibilities (rhbz 619276)
021dece
f1c343b
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.0-3
f1c343b
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
f1c343b
d6c730b
* Sat Jul 10 2010 Dennis Gilmore <dennis@ausil.us> - 1.4.0-2
d6c730b
- add missing Requires: python-cheetah from koji-builder
d6c730b
b7bcf87
* Fri Jul 09 2010 Dennis Gilmore <dennis@ausil.us> - 1.4.0-1
b7bcf87
- update to 1.4.0
b7bcf87
- Merge mead branch: support for building jars with Maven *
b7bcf87
- support for building appliance images *
b7bcf87
- soft dependencies for LiveCD/Appliance features
b7bcf87
- smarter prioritization of repo regenerations
b7bcf87
- package list policy to determine if package list changes are allowed
b7bcf87
- channel policy to determine which channel a task is placed in
b7bcf87
- edit host data via webui
b7bcf87
- description and comment fields for hosts *
b7bcf87
- cleaner log entries for kojihub
b7bcf87
- track user data in versioned tables *
b7bcf87
- allow setting retry parameters for the cli
b7bcf87
- track start time for tasks *
b7bcf87
- allow packages built from the same srpm to span multiple external repos
b7bcf87
- make the command used to fetch sources configuable per repo
b7bcf87
- kojira: remove unexpected directories
b7bcf87
- let kojid to decide if it can handle a noarch task
b7bcf87
- avoid extraneous ssl handshakes
b7bcf87
- schema changes to support starred items
b7bcf87
12b25f9
* Fri Nov 20 2009 Dennis Gilmore <dennis@ausil.us> - 1.3.2-1
12b25f9
- update to 1.3.2
12b25f9
ebeb443
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
ebeb443
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ebeb443
5fb985b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
5fb985b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5fb985b
9052155
* Fri Feb 20 2009 Dennis Gilmore <dennis@ausil.us> - 1.3.1-1
9052155
- update to 1.3.1
9052155
0573e26
* Wed Feb 18 2009 Dennis Gilmore <dennis@ausil.us> - 1.3.0-1
0573e26
- update to 1.3.0
0573e26
b9a2a27
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.6-2
b9a2a27
- Rebuild for Python 2.6
b9a2a27
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