85efc0
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
85efc0
85efc0
Name: koji
964551
Version: 1.6.0
87dcb5
Release: 1%{?dist}
b7bcf8
License: LGPLv2 and GPLv2+
b7bcf8
# koji.ssl libs (from plague) are GPLv2+
85efc0
Summary: Build system tools
85efc0
Group: Applications/System
7d9b5a
URL: http://fedorahosted.org/koji
a358de
Patch0: fedora-config.patch
021dec
964551
Source: https://fedorahosted.org/releases/k/o/koji/%{name}-%{version}.tar.bz2
85efc0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
85efc0
BuildArch: noarch
85efc0
Requires: python-krbV >= 1.0.13
85efc0
Requires: rpm-python
85efc0
Requires: pyOpenSSL
a358de
Requires: python-urlgrabber
85efc0
BuildRequires: python
85efc0
85efc0
%description
85efc0
Koji is a system for building and tracking RPMS.  The base package
85efc0
contains shared libraries and the command-line interface.
85efc0
85efc0
%package hub
85efc0
Summary: Koji XMLRPC interface
85efc0
Group: Applications/Internet
12b25f
License: LGPLv2 and GPLv2
12b25f
# rpmdiff lib (from rpmlint) is GPLv2 (only)
85efc0
Requires: httpd
85efc0
Requires: mod_python
85efc0
Requires: postgresql-python
85efc0
Requires: %{name} = %{version}-%{release}
85efc0
85efc0
%description hub
85efc0
koji-hub is the XMLRPC interface to the koji database
85efc0
12b25f
%package hub-plugins
12b25f
Summary: Koji hub plugins
12b25f
Group: Applications/Internet
12b25f
Requires: %{name} = %{version}-%{release}
12b25f
Requires: %{name}-hub = %{version}-%{release}
12b25f
12b25f
%description hub-plugins
12b25f
Plugins to the koji XMLRPC interface
12b25f
85efc0
%package builder
85efc0
Summary: Koji RPM builder daemon
85efc0
Group: Applications/System
b7bcf8
License: LGPLv2 and GPLv2+
b7bcf8
#mergerepos (from createrepo) is GPLv2+
85efc0
Requires: %{name} = %{version}-%{release}
0573e2
Requires: mock >= 0.9.14
85efc0
Requires(post): /sbin/chkconfig
85efc0
Requires(post): /sbin/service
85efc0
Requires(preun): /sbin/chkconfig
85efc0
Requires(preun): /sbin/service
85efc0
Requires(pre): /usr/sbin/useradd
86272a
Requires: /usr/bin/cvs
86272a
Requires: /usr/bin/svn
86272a
Requires: /usr/bin/git
85efc0
Requires: rpm-build
85efc0
Requires: redhat-rpm-config
12b25f
Requires: pykickstart                                                                               
d6c730
Requires: pycdio
d6c730
Requires: python-cheetah
b7bcf8
%if 0%{?fedora} || 0%{?rhel} > 5
0573e2
Requires: createrepo >= 0.9.6
905215
%endif
b7bcf8
%if 0%{?rhel} == 5
905215
Requires: python-createrepo >= 0.9.6
905215
Requires: python-hashlib
12b25f
Requires: createrepo
905215
%endif
85efc0
85efc0
%description builder
85efc0
koji-builder is the daemon that runs on build machines and executes
85efc0
tasks that come through the Koji system.
85efc0
964551
%package vm
964551
Summary: Koji virtual machine management daemon
964551
Group: Applications/System
964551
License: LGPLv2
964551
Requires: %{name} = %{version}-%{release}
964551
Requires(post): /sbin/chkconfig
964551
Requires(post): /sbin/service
964551
Requires(preun): /sbin/chkconfig
964551
Requires(preun): /sbin/service
964551
Requires: libvirt-python
964551
Requires: libxml2-python
964551
Requires: python-virtinst
964551
Requires: qemu-img
964551
964551
%description vm
964551
koji-vm contains a supplemental build daemon that executes certain tasks in a
964551
virtual machine. This package is not required for most installations.
964551
85efc0
%package utils
85efc0
Summary: Koji Utilities
85efc0
Group: Applications/Internet
85efc0
Requires: postgresql-python
85efc0
Requires: %{name} = %{version}-%{release}
85efc0
85efc0
%description utils
85efc0
Utilities for the Koji system
85efc0
85efc0
%package web
85efc0
Summary: Koji Web UI
85efc0
Group: Applications/Internet
85efc0
Requires: httpd
85efc0
Requires: mod_python
85efc0
Requires: mod_auth_kerb
85efc0
Requires: postgresql-python
85efc0
Requires: python-cheetah
85efc0
Requires: %{name} = %{version}-%{release}
85efc0
Requires: python-krbV >= 1.0.13
85efc0
85efc0
%description web
85efc0
koji-web is a web UI to the Koji system.
85efc0
85efc0
%prep
85efc0
%setup -q
a358de
%patch0 -p1 -b .orig
85efc0
85efc0
%build
85efc0
85efc0
%install
85efc0
rm -rf $RPM_BUILD_ROOT
85efc0
make DESTDIR=$RPM_BUILD_ROOT install
85efc0
85efc0
%clean
85efc0
rm -rf $RPM_BUILD_ROOT
85efc0
85efc0
%files
85efc0
%defattr(-,root,root)
85efc0
%{_bindir}/*
85efc0
%{python_sitelib}/%{name}
85efc0
%config(noreplace) %{_sysconfdir}/koji.conf
85efc0
%doc docs Authors COPYING LGPL
85efc0
85efc0
%files hub
85efc0
%defattr(-,root,root)
85efc0
%{_datadir}/koji-hub
0573e2
%{_libexecdir}/koji-hub/
0573e2
%config(noreplace) %{_sysconfdir}/httpd/conf.d/kojihub.conf
0573e2
%config(noreplace) %{_sysconfdir}/koji-hub/hub.conf
85efc0
12b25f
%files hub-plugins
12b25f
%defattr(-,root,root)
12b25f
%dir %{_prefix}/lib/koji-hub-plugins
12b25f
%{_prefix}/lib/koji-hub-plugins/*.py*
b7bcf8
%dir %{_sysconfdir}/koji-hub/plugins/
b7bcf8
%config(noreplace) %{_sysconfdir}/koji-hub/plugins/messagebus.conf
964551
%config(noreplace) %{_sysconfdir}/koji-hub/plugins/rpm2maven.conf
12b25f
85efc0
%files utils
85efc0
%defattr(-,root,root)
85efc0
%{_sbindir}/kojira
d2e38f
%{_sbindir}/koji-gc
0573e2
%{_sbindir}/koji-shadow
85efc0
%{_initrddir}/kojira
85efc0
%config(noreplace) %{_sysconfdir}/sysconfig/kojira
d2e38f
%dir %{_sysconfdir}/kojira
85efc0
%config(noreplace) %{_sysconfdir}/kojira/kojira.conf
d2e38f
%dir %{_sysconfdir}/koji-gc
d2e38f
%config(noreplace) %{_sysconfdir}/koji-gc/koji-gc.conf
0573e2
%config(noreplace) %{_sysconfdir}/koji-shadow/koji-shadow.conf
85efc0
85efc0
%files web
85efc0
%defattr(-,root,root)
85efc0
%{_datadir}/koji-web
85efc0
%{_sysconfdir}/kojiweb
85efc0
%config(noreplace) /etc/httpd/conf.d/kojiweb.conf
85efc0
85efc0
%files builder
85efc0
%defattr(-,root,root)
85efc0
%{_sbindir}/kojid
85efc0
%{_initrddir}/kojid
0573e2
%{_libexecdir}/kojid/
85efc0
%config(noreplace) %{_sysconfdir}/sysconfig/kojid
d2e38f
%dir %{_sysconfdir}/kojid
85efc0
%config(noreplace) %{_sysconfdir}/kojid/kojid.conf
85efc0
%attr(-,kojibuilder,kojibuilder) /etc/mock/koji
85efc0
85efc0
%pre builder
85efc0
/usr/sbin/useradd -r -s /bin/bash -G mock -d /builddir -M kojibuilder 2>/dev/null ||:
85efc0
85efc0
%post builder
85efc0
/sbin/chkconfig --add kojid
85efc0
/sbin/service kojid condrestart &> /dev/null || :
85efc0
85efc0
%preun builder
85efc0
if [ $1 = 0 ]; then
85efc0
  /sbin/service kojid stop &> /dev/null
85efc0
  /sbin/chkconfig --del kojid
85efc0
fi
85efc0
964551
%files vm
964551
%defattr(-,root,root)
964551
%{_sbindir}/kojivmd
964551
%{_datadir}/kojivmd
964551
%{_initrddir}/kojivmd
964551
%config(noreplace) %{_sysconfdir}/sysconfig/kojivmd
964551
%dir %{_sysconfdir}/kojivmd
964551
%config(noreplace) %{_sysconfdir}/kojivmd/kojivmd.conf
964551
964551
%post vm
964551
/sbin/chkconfig --add kojivmd
964551
964551
%preun vm
964551
if [ $1 = 0 ]; then
964551
  /sbin/service kojivmd stop &> /dev/null
964551
  /sbin/chkconfig --del kojivmd
964551
fi
964551
85efc0
%post utils
85efc0
/sbin/chkconfig --add kojira
85efc0
/sbin/service kojira condrestart &> /dev/null || :
85efc0
%preun utils
85efc0
if [ $1 = 0 ]; then
85efc0
  /sbin/service kojira stop &> /dev/null || :
85efc0
  /sbin/chkconfig --del kojira
85efc0
fi
85efc0
85efc0
%changelog
964551
* Fri Dec 17 2010 Dennis Gilmore <dennis@ausil.us> - 1.6.0-1
964551
- update to 1.6.0
964551
87dcb5
* Wed Dec 01 2010 Dennis Gilmore <dennis@ausil.us> - 1.5.0-1
87dcb5
- update to 1.5.0
87dcb5
021dec
* Tue Aug  3 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.0-4
021dec
- fix python 2.7 incompatibilities (rhbz 619276)
021dec
f1c343
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.0-3
f1c343
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
f1c343
d6c730
* Sat Jul 10 2010 Dennis Gilmore <dennis@ausil.us> - 1.4.0-2
d6c730
- add missing Requires: python-cheetah from koji-builder
d6c730
b7bcf8
* Fri Jul 09 2010 Dennis Gilmore <dennis@ausil.us> - 1.4.0-1
b7bcf8
- update to 1.4.0
b7bcf8
- Merge mead branch: support for building jars with Maven *
b7bcf8
- support for building appliance images *
b7bcf8
- soft dependencies for LiveCD/Appliance features
b7bcf8
- smarter prioritization of repo regenerations
b7bcf8
- package list policy to determine if package list changes are allowed
b7bcf8
- channel policy to determine which channel a task is placed in
b7bcf8
- edit host data via webui
b7bcf8
- description and comment fields for hosts *
b7bcf8
- cleaner log entries for kojihub
b7bcf8
- track user data in versioned tables *
b7bcf8
- allow setting retry parameters for the cli
b7bcf8
- track start time for tasks *
b7bcf8
- allow packages built from the same srpm to span multiple external repos
b7bcf8
- make the command used to fetch sources configuable per repo
b7bcf8
- kojira: remove unexpected directories
b7bcf8
- let kojid to decide if it can handle a noarch task
b7bcf8
- avoid extraneous ssl handshakes
b7bcf8
- schema changes to support starred items
b7bcf8
12b25f
* Fri Nov 20 2009 Dennis Gilmore <dennis@ausil.us> - 1.3.2-1
12b25f
- update to 1.3.2
12b25f
ebeb44
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
ebeb44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ebeb44
5fb985
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
5fb985
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5fb985
905215
* Fri Feb 20 2009 Dennis Gilmore <dennis@ausil.us> - 1.3.1-1
905215
- update to 1.3.1
905215
0573e2
* Wed Feb 18 2009 Dennis Gilmore <dennis@ausil.us> - 1.3.0-1
0573e2
- update to 1.3.0
0573e2
b9a2a2
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.6-2
b9a2a2
- Rebuild for Python 2.6
b9a2a2
d2e38f
* Mon Aug 25 2008 Dennis Gilmore <dennis@ausil.us> - 1.2.6-1
d2e38f
- update to 1.2.6
d2e38f
- make sure we have to correct version of createrepo on Fedora 8 
d2e38f
09e671
* Tue Aug  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.5-2
09e671
- fix conditional (line 5)
09e671
- fix license tag
09e671
941c3e
* Fri Jan 25 2008 jkeating <jkeating@redhat.com> 1.2.5-1
941c3e
- Put createrepo arguments in correct order
941c3e
7d9b5a
* Thu Jan 24 2008 jkeating <jkeating@redhat.com> 1.2.4-1
7d9b5a
- Use the --skip-stat flag in createrepo calls.
7d9b5a
- canonicalize tag arches before using them (dgilmore)
7d9b5a
- fix return value of delete_build
7d9b5a
- Revert to getfile urls if the task is not successful in emails
7d9b5a
- Pass --target instead of --arch to mock.
7d9b5a
- ignore trashcan tag in prune-signed-copies command
7d9b5a
- add the "allowed_scms" kojid parameter
7d9b5a
- allow filtering builds by the person who built them
7d9b5a
86272a
* Fri Dec 14 2007 jkeating <jkeating@redhat.com> 1.2.3-1
86272a
- New upstream release with lots of updates, bugfixes, and enhancements.
f0da96
a358de
* Tue Jun  5 2007 Mike Bonnet <mikeb@redhat.com> - 1.2.2-1
a358de
- only allow admins to perform non-scratch builds from srpm
a358de
- bug fixes to the cmd-line and web UIs
86272a
86272a
* Thu May 31 2007 Mike Bonnet <mikeb@redhat.com> - 1.2.1-1
a358de
- don't allow ExclusiveArch to expand the archlist (bz#239359)
a358de
- add a summary line stating whether the task succeeded or failed to the end of the "watch-task" output
a358de
- add a search box to the header of every page in the web UI
a358de
- new koji download-build command (patch provided by Dan Berrange)
6789f3
6789f3
* Tue May 15 2007 Mike Bonnet <mikeb@redhat.com> - 1.2.0-1
6789f3
- change version numbering to a 3-token scheme
6789f3
- install the koji favicon
6789f3
6789f3
* Mon May 14 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-5
6789f3
- cleanup koji-utils Requires
6789f3
- fix encoding and formatting in email notifications
6789f3
- expand archlist based on ExclusiveArch/BuildArchs
6789f3
- allow import of rpms without srpms
6789f3
- commit before linking in prepRepo to release db locks
6789f3
- remove exec bit from kojid logs and uploaded files (patch by Enrico Scholz)
6789f3
6789f3
* Tue May  1 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-4
6789f3
- remove spurious Requires: from the koji-utils package
6789f3
6789f3
* Tue May  1 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-3
6789f3
- fix typo in BuildNotificationTask (patch provided by Michael Schwendt)
6789f3
- add the --changelog param to the buildinfo command
6789f3
- always send email notifications to the package builder and package owner
6789f3
- improvements to the web UI
6789f3
86272a
* Tue Apr 17 2007 Mike Bonnet <mikeb@redhat.com> - 1.1-2
86272a
- re-enable use of the --update flag to createrepo
86272a
30d8ef
* Mon Apr 09 2007 Jesse Keating <jkeating@redhat.com> 1.1-1
30d8ef
- make the output listPackages() consistent regardless of with_dups
30d8ef
- prevent large batches of repo deletes from holding up regens
30d8ef
- allow sorting the host list by arches
30d8ef
85efc0
* Mon Apr 02 2007 Jesse Keating <jkeating@redhat.com> 1.0-1
85efc0
- Release 1.0!
85efc0
85efc0
* Wed Mar 28 2007 Mike Bonnet <mikeb@redhat.com> - 0.9.7-4
85efc0
- set SSL connection timeout to 12 hours
85efc0
85efc0
* Wed Mar 28 2007 Mike Bonnet <mikeb@redhat.com> - 0.9.7-3
85efc0
- avoid SSL renegotiation
85efc0
- improve log file handling in kojid
85efc0
- bug fixes in command-line and web UI
85efc0
85efc0
* Sun Mar 25 2007 Mike Bonnet <mikeb@redhat.com> - 0.9.7-2
85efc0
- enable http access to packages in kojid
85efc0
- add Requires: pyOpenSSL
85efc0
- building srpms from CVS now works with the Extras CVS structure
85efc0
- fixes to the chain-build command
85efc0
- bug fixes in the XML-RPC and web interfaces
85efc0
85efc0
* Tue Mar 20 2007 Jesse Keating <jkeating@redhat.com> - 0.9.7-1
85efc0
- Package up the needed ssl files
85efc0
85efc0
* Tue Mar 20 2007 Jesse Keating <jkeating@redhat.com> - 0.9.6-1
85efc0
- 0.9.6 release, mostly ssl auth stuff
85efc0
- use named directories for config stuff
85efc0
- remove -3 requires on creatrepo, don't need that specific anymore
85efc0
85efc0
* Tue Feb 20 2007 Jesse Keating <jkeating@redhat.com> - 0.9.5-8
85efc0
- Add Authors COPYING LGPL to the docs of the main package
85efc0
85efc0
* Tue Feb 20 2007 Jesse Keating <jkeating@redhat.com> - 0.9.5-7
85efc0
- Move web files from /var/www to /usr/share
85efc0
- Use -p in install calls
85efc0
- Add rpm-python to requires for koji
85efc0
85efc0
* Mon Feb 19 2007 Jesse Keating <jkeating@redhat.com> - 0.9.5-6
85efc0
- Clean up spec for package review
85efc0
85efc0
* Sun Feb 04 2007 Mike McLean <mikem@redhat.com> - 0.9.5-1
85efc0
- project renamed to koji