1686ed9
%if 0%{?rhel} && 0%{?rhel} <= 7 && ! 0%{?epel}
4edf55a
%bcond_with python3
1686ed9
%else
1686ed9
%bcond_without python3
4edf55a
%endif
4edf55a
2381a07
%define debug_package %{nil}
2381a07
ffe9e6f
%define with_admin 1
ffe9e6f
%define with_client 1
3568cbf
%define with_django 1
3568cbf
%define with_hub 1
ffe9e6f
%define with_worker 1
2381a07
ffe9e6f
# Turn off Django support for EPEL 6 - Django 1.5 is not included
1686ed9
%if 0%{?el6}
b38060d
%define with_admin 0
b38060d
%define with_django 0
b38060d
%define with_hub 0
b38060d
%endif
b38060d
b07dcbd
# Use the python2-* packages for dependencies if possible,
b07dcbd
# as suggested by Fedora packaging guidelines; but these aren't
b07dcbd
# available for EPEL builds.
36980f8
%if 0%{?rhel} && 0%{?rhel} <= 7
b07dcbd
%define python2_django python-django
b07dcbd
%define python2_rpm    rpm-python
b07dcbd
%else
36980f8
%if 0%{?fedora} >= 28
2da271a
%define python2_django python2-django1.11
36980f8
%else
36980f8
%define python2_django python2-django
36980f8
%endif
b07dcbd
%define python2_rpm    python2-rpm
b07dcbd
%endif
b07dcbd
3568cbf
2381a07
Name:           kobo
a507025
Version:        0.8.0
a507025
Release:        1%{?dist}
2381a07
License:        LGPLv2
2381a07
Summary:        Python modules for tools development
2381a07
Group:          Development/Libraries
96dffce
URL:            https://github.com/release-engineering/kobo
96dffce
Source0:        https://github.com/release-engineering/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
2381a07
2381a07
BuildArch:      noarch
4edf55a
BuildRequires:  python2-devel >= 2.4
4edf55a
%if 0%{?with_python3}
4edf55a
BuildRequires:  python%{python3_pkgversion}-devel
2381a07
%endif
2381a07
2381a07
%description
2381a07
Kobo is a set of python modules designed for rapid tools development.
2381a07
4edf55a
%package -n python2-%{name}
4edf55a
Summary:        Python modules for tools development
fb0f7e6
%{?python_provide:%python_provide python2-%{name}}
9cad2f0
Provides:       kobo = %{version}-%{release}
9cad2f0
Obsoletes:      kobo < 0.6.0-2
6a6a744
Requires:       python2dist(six)
4edf55a
4edf55a
%description -n python2-%{name}
4edf55a
Kobo is a set of python modules designed for rapid tools development.
4edf55a
2381a07
3568cbf
%if 0%{?with_django}
4edf55a
%package -n python2-%{name}-django
2381a07
Summary:        Django components
2381a07
Group:          Development/Libraries
4edf55a
Requires:       python2-kobo = %{version}-%{release}
b07dcbd
Requires:       %{python2_django} >= 1.6
fb0f7e6
%{?python_provide:%python_provide python2-%{name}-django}
9cad2f0
Provides:       kobo-django = %{version}-%{release}
9cad2f0
Obsoletes:      kobo-django < 0.6.0-2
2381a07
4edf55a
%description -n python2-%{name}-django
2381a07
Django components.
3568cbf
%endif
2381a07
2381a07
ffe9e6f
%if 0%{?with_client}
4edf55a
%package -n python2-%{name}-client
2381a07
Summary:        CLI client
2381a07
Group:          Development/Libraries
4edf55a
Requires:       python2-kobo = %{version}-%{release}
fb0f7e6
%{?python_provide:%python_provide python2-%{name}-client}
9cad2f0
Provides:       kobo-client = %{version}-%{release}
9cad2f0
Obsoletes:      kobo-client < 0.6.0-2
2381a07
4edf55a
%description -n python2-%{name}-client
2381a07
CLI client.
ffe9e6f
%endif
2381a07
2381a07
ffe9e6f
%if 0%{?with_worker}
4edf55a
%package -n python2-%{name}-worker
2381a07
Summary:        Worker daemon processing tasks submitted to the hub
2381a07
Group:          Development/Libraries
4edf55a
Requires:       python2-kobo = %{version}-%{release}
fb0f7e6
%{?python_provide:%python_provide python2-%{name}-worker}
9cad2f0
Provides:       kobo-worker = %{version}-%{release}
9cad2f0
Obsoletes:      kobo-worker < 0.6.0-2
2381a07
4edf55a
%description -n python2-%{name}-worker
2381a07
Worker daemon processing tasks submitted to the hub.
ffe9e6f
%endif
2381a07
2381a07
3568cbf
%if 0%{?with_hub}
4edf55a
%package -n python2-%{name}-hub
2381a07
Summary:        Xml-rpc and web interface to a task database
2381a07
Group:          Development/Libraries
4edf55a
Requires:       python2-kobo = %{version}-%{release}
36980f8
Requires:       %{python2_django} >= 1.6
653437c
Requires:       gzip
fb0f7e6
%{?python_provide:%python_provide python2-%{name}-hub}
9cad2f0
Provides:       kobo-hub = %{version}-%{release}
9cad2f0
Obsoletes:      kobo-hub < 0.6.0-2
2381a07
4edf55a
%description -n python2-%{name}-hub
2381a07
Hub is a xml-rpc and web interface to a task database.
3568cbf
%endif
2381a07
2381a07
4edf55a
%package -n python2-%{name}-rpmlib
0d2f53f
Summary:        Functions to manipulate with RPM files
0d2f53f
Group:          Development/Libraries
4edf55a
Requires:       python2-kobo = %{version}-%{release}
b07dcbd
Requires:       %{python2_rpm}
4edf55a
Requires:       python2-koji
fb0f7e6
%{?python_provide:%python_provide python2-%{name}-rpmlib}
9cad2f0
Provides:       kobo-rpmlib = %{version}-%{release}
9cad2f0
Obsoletes:      kobo-rpmlib < 0.6.0-2
0d2f53f
4edf55a
%description -n python2-%{name}-rpmlib
0d2f53f
Rpmlib contains functions to manipulate with RPM files.
0d2f53f
0d2f53f
ffe9e6f
%if 0%{?with_admin}
1c0f670
%package admin
1c0f670
Summary:        Kobo admin script for instant project deployment
1c0f670
Group:          Development/Tools
1c0f670
%if 0%{?with_python3}
1c0f670
Requires:       python3-%{name}-admin
1c0f670
%else
1c0f670
Requires:       python2-%{name}-admin
1c0f670
%endif
1c0f670
1c0f670
%description admin
1c0f670
Kobo admin provides templates for various kobo-based projects,
1c0f670
incl. CLI, hub client, worker and hub.
1c0f670
4edf55a
%package -n python2-%{name}-admin
653437c
Summary:        Kobo admin script for instant project deployment
653437c
Group:          Development/Tools
4edf55a
Requires:       python2-kobo >= %{version}
36980f8
Requires:       %{python2_django} >= 1.6
fb0f7e6
%{?python_provide:%python_provide python2-%{name}-admin}
4edf55a
4edf55a
%description -n python2-%{name}-admin
1c0f670
Python library for kobo-admin command.
4edf55a
%endif
4edf55a
4edf55a
%if 0%{?with_python3}
4edf55a
%package -n python%{python3_pkgversion}-%{name}
4edf55a
Summary:        Python modules for tools development
fb0f7e6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
6a6a744
Requires:       %{py3_dist six}
4edf55a
4edf55a
%description -n python%{python3_pkgversion}-%{name}
4edf55a
Kobo is a set of python modules designed for rapid tools development.
4edf55a
4edf55a
4edf55a
%if 0%{?with_django}
4edf55a
%package -n python%{python3_pkgversion}-%{name}-django
4edf55a
Summary:        Django components
4edf55a
Group:          Development/Libraries
4edf55a
Requires:       python%{python3_pkgversion}-kobo = %{version}-%{release}
4edf55a
Requires:       python%{python3_pkgversion}-django >= 1.6
fb0f7e6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}-django}
4edf55a
4edf55a
%description -n python%{python3_pkgversion}-%{name}-django
4edf55a
Django components.
4edf55a
%endif
4edf55a
4edf55a
4edf55a
%if 0%{?with_client}
4edf55a
%package -n python%{python3_pkgversion}-%{name}-client
4edf55a
Summary:        CLI client
4edf55a
Group:          Development/Libraries
4edf55a
Requires:       python%{python3_pkgversion}-kobo = %{version}-%{release}
fb0f7e6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}-client}
4edf55a
4edf55a
%description -n python%{python3_pkgversion}-%{name}-client
4edf55a
CLI client.
4edf55a
%endif
4edf55a
4edf55a
4edf55a
%if 0%{?with_worker}
4edf55a
%package -n python%{python3_pkgversion}-%{name}-worker
4edf55a
Summary:        Worker daemon processing tasks submitted to the hub
4edf55a
Group:          Development/Libraries
4edf55a
Requires:       python%{python3_pkgversion}-kobo = %{version}-%{release}
fb0f7e6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}-worker}
4edf55a
4edf55a
%description -n python%{python3_pkgversion}-%{name}-worker
4edf55a
Worker daemon processing tasks submitted to the hub.
4edf55a
%endif
4edf55a
4edf55a
4edf55a
%if 0%{?with_hub}
4edf55a
%package -n python%{python3_pkgversion}-%{name}-hub
4edf55a
Summary:        Xml-rpc and web interface to a task database
4edf55a
Group:          Development/Libraries
4edf55a
Requires:       python%{python3_pkgversion}-kobo = %{version}-%{release}
4edf55a
Requires:       python%{python3_pkgversion}-django >= 1.6
4edf55a
Requires:       gzip
fb0f7e6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}-hub}
653437c
4edf55a
%description -n python%{python3_pkgversion}-%{name}-hub
4edf55a
Hub is a xml-rpc and web interface to a task database.
4edf55a
%endif
4edf55a
4edf55a
4edf55a
%package -n python%{python3_pkgversion}-%{name}-rpmlib
4edf55a
Summary:        Functions to manipulate with RPM files
4edf55a
Group:          Development/Libraries
4edf55a
Requires:       python%{python3_pkgversion}-kobo = %{version}-%{release}
b07dcbd
Requires:       python%{python3_pkgversion}-rpm
4edf55a
Requires:       python%{python3_pkgversion}-koji
fb0f7e6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}-rpmlib}
4edf55a
4edf55a
%description -n python%{python3_pkgversion}-%{name}-rpmlib
4edf55a
Rpmlib contains functions to manipulate with RPM files.
4edf55a
4edf55a
4edf55a
%if 0%{?with_admin}
4edf55a
%package -n python%{python3_pkgversion}-%{name}-admin
4edf55a
Summary:        Kobo admin script for instant project deployment
4edf55a
Group:          Development/Tools
4edf55a
Requires:       python%{python3_pkgversion}-kobo >= %{version}
4edf55a
Requires:       python%{python3_pkgversion}-django >= 1.6
fb0f7e6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}-admin}
4edf55a
4edf55a
%description -n python%{python3_pkgversion}-%{name}-admin
1c0f670
Python library for kobo-admin command.
ffe9e6f
%endif
4edf55a
%endif # with_python3
653437c
653437c
2381a07
%prep
5892aeb
%autosetup
2381a07
3568cbf
2381a07
%build
dec68d4
%{py2_build}
4edf55a
%if 0%{?with_python3}
4edf55a
%{py3_build}
4edf55a
%endif
2381a07
2381a07
2381a07
%install
dec68d4
%{py2_install}
b07dcbd
4edf55a
%if 0%{?with_python3}
b07dcbd
# only package python3 version of kobo-admin
b07dcbd
rm -rf $RPM_BUILD_ROOT/%{_bindir}/kobo-admin
4edf55a
%{py3_install}
4edf55a
%endif
3568cbf
4300f35
%if ! 0%{?with_admin}
dec68d4
rm -rf $RPM_BUILD_ROOT/%{python2_sitelib}/kobo/admin
4edf55a
%if 0%{?with_python3}
4edf55a
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/kobo/admin
4edf55a
%endif
4300f35
rm -rf $RPM_BUILD_ROOT/%{_bindir}/kobo-admin
4300f35
%endif
4300f35
4300f35
%if ! 0%{?with_client}
dec68d4
rm -rf $RPM_BUILD_ROOT/%{python2_sitelib}/kobo/client
4edf55a
%if 0%{?with_python3}
4edf55a
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/kobo/client
4edf55a
%endif
4300f35
%endif
4300f35
3568cbf
%if ! 0%{?with_django}
dec68d4
rm -rf $RPM_BUILD_ROOT/%{python2_sitelib}/kobo/django
4edf55a
%if 0%{?with_python3}
4edf55a
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/kobo/django
4edf55a
%endif
3568cbf
%endif
2381a07
3568cbf
%if ! 0%{?with_hub}
dec68d4
rm -rf $RPM_BUILD_ROOT/%{python2_sitelib}/kobo/hub
4edf55a
%if 0%{?with_python3}
4edf55a
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/kobo/hub
4edf55a
%endif
3568cbf
%endif
2381a07
4300f35
%if ! 0%{?with_worker}
dec68d4
rm -rf $RPM_BUILD_ROOT/%{python2_sitelib}/kobo/worker
4edf55a
%if 0%{?with_python3}
4edf55a
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/kobo/worker
4edf55a
%endif
4300f35
%endif
4300f35
2381a07
4edf55a
%files -n python2-%{name}
dec68d4
%dir %{python2_sitelib}/kobo
dec68d4
%{python2_sitelib}/kobo/*.py*
dec68d4
%exclude %{python2_sitelib}/kobo/rpmlib.py*
db2fd82
%doc AUTHORS
dec68d4
%license COPYING LICENSE
dec68d4
%if "%{python2_version}" != "2.4"
dec68d4
%{python2_sitelib}/%{name}-%{version}-py?.?.egg-info
3568cbf
%endif
2381a07
2381a07
3568cbf
%if 0%{?with_django}
4edf55a
%files -n python2-%{name}-django
dec68d4
%{python2_sitelib}/kobo/django
3568cbf
%endif
2381a07
2381a07
ffe9e6f
%if 0%{?with_client}
4edf55a
%files -n python2-%{name}-client
dec68d4
%{python2_sitelib}/kobo/client
ffe9e6f
%endif
2381a07
2381a07
ffe9e6f
%if 0%{?with_worker}
4edf55a
%files -n python2-%{name}-worker
dec68d4
%{python2_sitelib}/kobo/worker
ffe9e6f
%endif
2381a07
2381a07
3568cbf
%if 0%{?with_hub}
4edf55a
%files -n python2-%{name}-hub
dec68d4
%{python2_sitelib}/kobo/hub
3568cbf
%endif
2381a07
2381a07
4edf55a
%files -n python2-%{name}-rpmlib
dec68d4
%{python2_sitelib}/kobo/rpmlib.py*
3568cbf
0d2f53f
ffe9e6f
%if 0%{?with_admin}
1c0f670
%files admin
1c0f670
%{_bindir}/kobo-admin
1c0f670
4edf55a
%files -n python2-%{name}-admin
dec68d4
%{python2_sitelib}/kobo/admin
b07dcbd
%endif
653437c
4edf55a
%if 0%{?with_python3}
4edf55a
%files -n python%{python3_pkgversion}-%{name}
4edf55a
%dir %{python3_sitelib}/kobo
4edf55a
%{python3_sitelib}/kobo/*.py*
3aab1eb
%{python3_sitelib}/kobo/__pycache__
4edf55a
%exclude %{python3_sitelib}/kobo/rpmlib.py*
4edf55a
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
4edf55a
%doc AUTHORS
4edf55a
%license COPYING LICENSE
4edf55a
4edf55a
4edf55a
%if 0%{?with_django}
4edf55a
%files -n python%{python3_pkgversion}-%{name}-django
4edf55a
%{python3_sitelib}/kobo/django
4edf55a
%endif
4edf55a
4edf55a
4edf55a
%if 0%{?with_client}
4edf55a
%files -n python%{python3_pkgversion}-%{name}-client
4edf55a
%{python3_sitelib}/kobo/client
4edf55a
%endif
4edf55a
4edf55a
4edf55a
%if 0%{?with_worker}
4edf55a
%files -n python%{python3_pkgversion}-%{name}-worker
4edf55a
%{python3_sitelib}/kobo/worker
4edf55a
%endif
4edf55a
4edf55a
4edf55a
%if 0%{?with_hub}
4edf55a
%files -n python%{python3_pkgversion}-%{name}-hub
4edf55a
%{python3_sitelib}/kobo/hub
4edf55a
%endif
4edf55a
4edf55a
4edf55a
%files -n python%{python3_pkgversion}-%{name}-rpmlib
4edf55a
%{python3_sitelib}/kobo/rpmlib.py*
4edf55a
4edf55a
4edf55a
%if 0%{?with_admin}
4edf55a
%files -n python%{python3_pkgversion}-%{name}-admin
4edf55a
%{python3_sitelib}/kobo/admin
4edf55a
%endif
4edf55a
%endif
4edf55a
0d2f53f
2381a07
%changelog
a507025
* Fri Nov 30 2018 Rohan McGovern <rmcgover@redhat.com> - 0.8.0-1
a507025
- New upstream release 0.8.0
a507025
635caa1
* Fri Nov 30 2018 Rohan McGovern <rmcgover@redhat.com> - 0.7.0-10
6a6a744
- Add missing dependencies on python-six (RHBZ#1654946)
6a6a744
d3aae58
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-9
d3aae58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d3aae58
b75828e
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-8
b75828e
- Rebuilt for Python 3.7
b75828e
a4f1c43
* Wed Feb 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.0-7
a4f1c43
- Fixes in packaging
a4f1c43
2da271a
* Tue Jan 30 2018 Rohan McGovern <rmcgover@redhat.com> - 0.7.0-6
2da271a
- Migrate to python2-django1.11
2da271a
  https://fedoraproject.org/wiki/Changes/Django20
2da271a
3aab1eb
* Wed Jan 03 2018 Lumír Balhar <lbalhar@redhat.com> - 0.7.0-5
3aab1eb
- Fix directory ownership in python3 subpackage
3aab1eb
ff4b304
* Mon Oct 30 2017 Lumír Balhar <lbalhar@redhat.com> - 0.7.0-4
ff4b304
- Remove redefinition of epel macro (RHBZ#1164700)
ff4b304
5738cbe
* Wed Oct 18 2017 Rohan McGovern <rmcgover@redhat.com> - 0.7.0-3
5738cbe
- Fix duplicate packaging of kobo-admin for python2, python3
5738cbe
- Fix some python3 packages depending on python2 packages
5738cbe
- Prefer python2-* packages over unprefixed packages for Requires
5738cbe
- Move kobo-admin to own package (Lubomír Sedlář)
5738cbe
4944788
* Wed Oct 18 2017 Rohan McGovern <rmcgover@redhat.com> - 0.7.0-2
4944788
- Fix Provides/Obsoletes to follow packaging guidelines (Lubomír Sedlář)
4944788
44bc5b6
* Tue Oct 17 2017 Rohan McGovern <rmcgover@redhat.com> - 0.7.0-1
44bc5b6
- New upstream release 0.7.0
4edf55a
- Build Python 3 packages (Lubomír Sedlář)
44bc5b6
96dffce
* Tue Sep 05 2017 Rohan McGovern <rmcgover@redhat.com> - 0.6.0-1
96dffce
- New upstream release 0.6.0
96dffce
5622286
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-4
5622286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5622286
6779210
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
6779210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6779210
dec68d4
* Fri Nov  4 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.2-2
dec68d4
- Convert to modern python macros
dec68d4
- Own /usr/lib/python2.7/site-packages/kobo/ directory
dec68d4
bbb3e01
* Tue Jul 26 2016 Daniel Mach <dmach@redhat.com> - 0.5.2-1
bbb3e01
- conf.py: use print() function (Ken Dreyer)
bbb3e01
- conf.py: py2/py3 compatible exception handling (Ken Dreyer)
bbb3e01
- Fix shortcuts to run on py2.4. (Daniel Mach)
bbb3e01
- Closed tasks can be interrupted without throwing an exception (Marek Šabo)
bbb3e01
- Add __setitem__ to FileCache (Lubomír Sedlář)
bbb3e01
- Show minimal priority in admin (Tomas Kopecek)
bbb3e01
- Add tests/README (Alexander Todorov)
bbb3e01
- Add tests for RPMs with 'something-X.Y' names (Alexander Todorov)
bbb3e01
- xmlrpc: remember to call super class constructor (Kamil Dudka)
bbb3e01
- Condition for setting hostport generalized (Marek Šabo)
bbb3e01
- Http proxy working on Fedora 22 (Marek Šabo)
bbb3e01
- Pass arbitrary args to logging module (Lubomír Sedlář)
bbb3e01
- migration for min_priority (Tomas Kopecek)
bbb3e01
- fix default values (Tomas Kopecek)
bbb3e01
- minimal priority for worker (Tomas Kopecek)
bbb3e01
- backward compatibility with django 1.6 (Tomas Kopecek)
bbb3e01
- make get_tasks call backwards compatible (Tomas Kopecek)
bbb3e01
- Add permission for displaying task tracebacks (Tomas Kopecek)
bbb3e01
- report correct allowed username length (Tomas Kopecek)
bbb3e01
- Add a RPC call and a command to list running tasks. (Tomas Kopecek)
bbb3e01
- Add --all option for enable|disable worker command. (Tomas Kopecek)
bbb3e01
- Fix multiple same checksum types. (Tomas Kopecek)
bbb3e01
- Django 1.8 rebase (Tomas Kopecek)
bbb3e01
- Add ssl context for https. (Tomas Kopecek)
bbb3e01
- Don't add additional space when printing log. (Tomas Kopecek)
bbb3e01
- Fix displayed task time (Tomas Kopecek)
bbb3e01
5218128
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
5218128
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5218128
cbb6f8c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-3
cbb6f8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cbb6f8c
1041d3a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
1041d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1041d3a
4be60f7
* Tue Feb 17 2015 Daniel Mach <dmach@redhat.com> - 0.5.1-1
4be60f7
- Enable/disable worker. (Tomas Kopecek)
4be60f7
- upload_task_log: correctly handle unicode vs str strings. (Tomas Kopecek)
4be60f7
- resubmit_task: add missing 'force' parameter. (Tomas Kopecek)
4be60f7
c698ec6
* Sat Nov 15 2014 Daniel Mach <dmach@redhat.com> - 0.5.0-1
c698ec6
- Modify shortcuts.run() to pass all **kwargs to Popen(). (Daniel Mach)
c698ec6
- Admin page for kobo.auth.User (Tomas Kopecek)
c698ec6
- Unset active menu if no other menu is active (Lubomír Sedlář)
c698ec6
- Allow rendering menu for bootstrap's navbar (Lubomír Sedlář)
c698ec6
- Handle menu items without text as dividers (Lubomír Sedlář)
c698ec6
- allow --force in resubmit-tasks CLI command (Tomas Kopecek)
c698ec6
- Django 1.6 db transaction model (Tomas Kopecek)
c698ec6
- CLI command for viewing log files (Tomas Kopecek)
c698ec6
- Display overall time in task page (Tomas Kopecek)
c698ec6
- Fix shortcuts.run() to handle errno.EINTR correctly. (Tomas Tomecek)
c698ec6
- Don't count assigned tasks into worker load. (Tomas Tomecek)
c698ec6
- Human readable state exceptions. (Tomas Kopecek)
c698ec6
- Human readable JSONField. (Tomas Kopecek)
c698ec6
e64ce29
* Fri Jan 17 2014 Daniel Mach <dmach@redhat.com> - 0.4.3-1
e64ce29
- Rename User model to properly adjust to older db schema. (Tomas Kopecek)
e64ce29
- Fix typo in login template. (Tomas Kopecek)
e64ce29
- Switch from simplejson to json. (Daniel Mach)
e64ce29
b38060d
* Tue Dec 17 2013 Daniel Mach <dmach@redhat.com> - 0.4.2-1
b38060d
- Revamp make_nvr() and make_nvra(), make them public (add to __all__), add tests. (Daniel Mach)
b38060d
- Fix: display subtasks in task's detail view (Tomas Tomecek)
b38060d
- Fix JSONField (load and dump) (Tomas Tomecek)
b38060d
- Fix CSRF exemption in XML-RPC handler factory (Tomas Tomecek)
b38060d
- View simplifications (Tomas Kopecek)
b38060d
- Translate everything in templates (Tomas Kopecek)
b38060d
- Additional fields visible in admin, searching/filtering (Tomas Kopecek)
b38060d
- Use more proper class-based style for generic forms (Tomas Kopecek)
b38060d
- Refactored generic views. (Tomas Kopecek)
b38060d
- Fix rtf content type test for py2.4. (Daniel Mach)
b38060d
- Add FileCache.items() to export items() and also fix py3. (Daniel Mach)
b38060d
- Remove slots from most places. (Daniel Mach)
b38060d
- Improve shortcuts.parse_checksum_line() to support escaped checksum lines. (Daniel Mach)
b38060d
- Add 'executable' argument to shortcuts.run(). (Daniel Mach)
b38060d
9953143
* Mon Oct 14 2013 Daniel Mach <dmach@redhat.com> - 0.4.1-1
9953143
- Return 'nosrc' arch when RPMTAG_NOPATCH RPM header is set. (Daniel Mach)
9953143
- Fix 'ImproperlyConfigured: The SECRET_KEY setting must not be empty.' exception in test_types.py. (Daniel Mach)
9953143
- Fix setup script to install additional package data. (Daniel Mach)
9953143
- Fix reading RPMTAG_NOSOURCE and RPMTAG_NOPATCH headers from 'nosrc' RPMs. (Daniel Mach)
9953143
ffe9e6f
* Mon Jul 29 2013 Daniel Mach <dmach@redhat.com> - 0.4.0-2
ffe9e6f
- Drop admin subpackage on rhel <= 5
ffe9e6f
- Drop admin, django and hub subpackages on epel 6
ffe9e6f
3568cbf
* Thu Jul 25 2013 Daniel Mach <dmach@redhat.com> - 0.4.0-1
3568cbf
- Drop django and hub subpackages on rhel <= 5
3568cbf
- Set filename to be real name of a downloaded file. (Tomas Tomecek)
3568cbf
- Fix logwatcher to scroll to latest logs. (Tomas Tomecek)
3568cbf
- Remove obsolete function kobo.django.views.generic._object_list(). (Tomas Kopecek)
3568cbf
- Updated README for 0.4.0 release (Tomas Kopecek)
3568cbf
- Revamp setup.py and related files. (Daniel Mach)
3568cbf
- LongnameUser table has auth_user db table name for easier upgrade. (Tomas Kopecek)
3568cbf
- Add checksum_type to SimpleRpmWrapper. (Tomas Kopecek)
3568cbf
- Add kobo.threads.run_in_threads() helper. (Tomas Kopecek)
3568cbf
- Django 1.5 rebase. (Tomas Kopecek)
3568cbf
- Remove unnecessary slots from pkgset.FileCache. (Daniel Mach)
3568cbf
cf5932d
* Mon Feb 11 2013 Daniel Mach <dmach@redhat.com> - 0.3.8-1
cf5932d
- Don't catch and mask any exceptions in cli.CommandOptionParser.run(). (Daniel Mach)
cf5932d
- Set an empty keyring in rpmlib.get_rpm_header(). (Daniel Mach)
cf5932d
- Format Fault's output to be nicer. (Tomas Tomecek)
cf5932d
- Display error when cancelling task fails. (Tomas Tomecek)
cf5932d
- Fix task cancelation method name. (Tomas Tomecek)
cf5932d
- Add pkgset.SimpleRpmWrapper; support pickle by providing __getstate__() and __setstate__() methods. (Daniel Mach)
cf5932d
- Enable searching in task list by label. (Tomas Tomecek)
cf5932d
- Enable making custom queries in view task_list. (Tomas Tomecek)
cf5932d
- Limit value length to 200 characters in tback.Traceback. (Daniel Mach)
cf5932d
- Fix email.utils import to work with py2.4. (Daniel Mach)
cf5932d
- Backwards compatibility bugfix in hub.models. (Tomas Tomecek)
cf5932d
8626b69
* Wed Jan 16 2013 Daniel Mach <dmach@redhat.com> - 0.3.7-1
8626b69
- Proxy support enhancement (Tomas Mlcoch)
8626b69
- Improve task ordering. (Daniel Mach)
8626b69
- Better formatting in Traceback output. (Tomas Tomecek)
8626b69
- Add JSONField.value_to_string() method. (Tomas Tomecek)
8626b69
- Improve task dir deletion and task files view. (Tomas Tomecek)
8626b69
- allow line buffering for shortcuts.run() (Tomas Kopecek)
8626b69
- Allow to specify buffer_size in shortcuts.run(). (Daniel Mach)
8626b69
- Add rpmlib.get_changelogs_from_header() and pkgset.RpmWrapper.changelogs. (Daniel Mach)
8626b69
- Support https_proxy environ variable (Tomas Mlcoch)
8626b69
- Create pid file in a more secure way. (Daniel Mach)
8626b69
- Create empty kobo.django.auth.models module to fix crashes in Django 1.4. (Daniel Mach)
8626b69
- Add shortcuts.makedirs() function which is identical to os.makedirs but doesn't fail on existing dirs. (Daniel Mach)
8626b69
- Fix typo in the 404.html template. (Daniel Mach)
8626b69
- Fix traceback on undefined workdir in kobo.shortcuts.run(). (Daniel Mach)
8626b69
- Add help-rst command which generates rst documentation for all CommandOptionParser's commands. (Daniel Mach)
3dba077
a79a744
* Wed Dec 21 2011 Daniel Mach <dmach@redhat.com> - 0.3.6-1
a79a744
- Clarify auth middleware ordering in the hub settings template. (Daniel Mach)
a79a744
- Add kobo.threads -- a simple threading worker pool. (Daniel Mach)
a79a744
- Fix force_list and force_tuple to work with sets. (Daniel Mach)
a79a744
- Implement removing files from a file cache. (Daniel Mach)
a79a744
- Make shortcuts.run() thread-safe. (Daniel Mach)
a79a744
6dd2a7c
* Mon Oct 10 2011 Daniel Mach <dmach@redhat.com> - 0.3.5-1
6dd2a7c
- Bump version to 0.3.5. (Daniel Mach)
6dd2a7c
- Return tracebacks in the XML-RPC dispatcher as unicode. (Daniel Mach)
6dd2a7c
- Refactor MainMenu to be Django 1.3 compliant. (Martin Magr)
6dd2a7c
- Make StateEnumField Django 1.2 compliant. (Martin Magr)
6dd2a7c
- Add proxy support to XML-RPC transports. (Daniel Mach)
6dd2a7c
- Cache stat values in FileWrapper objects, add size and mtime properties. (Tomas Mlcoch)
6dd2a7c
- Fix unittest kobo.http for Python 2.4. (Tomas Mlcoch)
6dd2a7c
- Add unit test for kobo.pkgset. (Tomas Mlcoch)
6dd2a7c
- Rename pkgset.FileCache.__get__ to __getitem__. (Tomas Mlcoch)
6dd2a7c
- Add unit test for kobo.http. (Tomas Mlcoch)
6dd2a7c
- Add unit test for kobo.decorators. (Tomas Mlcoch)
6dd2a7c
- Add docstrings to kobo.http. (Tomas Mlcoch)
6dd2a7c
- Add UndoHardlink class to __all__. (Tomas Mlcoch)
6dd2a7c
- Add unit test for kobo.hardlink. (Tomas Mlcoch)
6dd2a7c
- Fix params for os.utime() call in UndoHardlink class. (Tomas Mlcoch)
6dd2a7c
- Fix tback.Traceback to work properly in interpreter. (Tomas Mlcoch)
6dd2a7c
- Use getattr to read Krb5Error.err_code to prevent possible AttributeError in HubProxy. (Daniel Mach)
6dd2a7c
- Add a new task state - CREATED. (Daniel Mach)
6dd2a7c
- Fix templates to work properly in debug mode. (Daniel Mach)
6dd2a7c
- Revamp log downloads - download as a stream, better support for other than .log files, enforce using UPLOAD_DIR in settings. (Daniel Mach)
6dd2a7c
- Delete empty directories on FileUpload.delete(). (Daniel Mach)
6dd2a7c
- Catch an exception when deleting an FileUpload object and target file is missing. (Daniel Mach)
6dd2a7c
- Make sure that xmlrpc.decode_xmlrpc_chunk() won't fail on existing directory. (Daniel Mach)
6dd2a7c
- Run task cleanup and notification for foreground tasks. (Daniel Mach)
6dd2a7c
- Enhance shortcuts.iter_chunks() to work with files. (Daniel Mach)
6dd2a7c
- Upload files in chunks in order to prevent client-side memory issues. (Daniel Mach)
6dd2a7c
- Exclude file uploads from CSRF protection. (Daniel Mach)
6dd2a7c
- Add assertRegexpMatches and assertIsInstance to tback tests to make them work on python < 2.7. (Daniel Mach)
6dd2a7c
- Fix processing unitialized variables in tback. (Martin Bukatovic)
6dd2a7c
- Fix a traceback in kobo-admin start-hub when a project name contained dashes. (Daniel Mach)
6dd2a7c
- Add -tt python interpreter argument to project templates. (Daniel Mach)
6dd2a7c
- Add kobo.rpmlib.parse_evr() to parse E:VR. (Daniel Mach)
6dd2a7c
- Fix parse_nvra() - arch must not contain '-'. (Daniel Mach)
6dd2a7c
- Add missing {{ project_name }} prefix to kobo admin templates. (Daniel Mach)
6dd2a7c
- Start daemons in "/" rather than in working dir. (Daniel Mach)
6dd2a7c
- Add TransactionMiddleware to the hub template's settings. (Daniel Mach)
6dd2a7c
- Add skip_broken argument to PluginContainer.register_module() class method. (Daniel Mach)
6dd2a7c
b833b0b
* Fri Feb 18 2011 Daniel Mach <dmach@redhat.com> - 0.3.4-1
b833b0b
- Add kobo.decorators.log_traceback() devel decorator to log function tracebacks to a file. (Daniel Mach)
b833b0b
- Fix tback.Traceback for py2.4. (Daniel Mach)
b833b0b
653437c
* Tue Feb  1 2011 Daniel Mach <dmach@redhat.com> - 0.3.3-1
653437c
- Replace double underscores with dots in xmlrpc method names. (Daniel Mach)
653437c
- Fix regex in test_tback.py so unit tests pass. (Daniel Mach)
653437c
- Fix session handling in worker. (Daniel Mach)
653437c
- Fix kobo.Traceback to return empty string on no exception. Add traceback tests. (Tomas Kopecek)
653437c
- Simplify hub deployment (add menu and template to default). Tweak kobo-admin templates. (Daniel Mach)
653437c
- Add a warning about a possibly read-only database to the worker middleware assert. (Daniel Mach)
653437c
- Add task notification() and cleanup() class methods. (Daniel Mach)
653437c
- Revamp hub urls and admin templates. (Daniel Mach)
653437c
- Prevent a race condition when using CookieTransport in threads in py2.7. (Daniel Mach)
653437c
- Add unit test for EnumItem.change_state() return value. (Daniel Mach)
653437c
- StateEnum.change_state() now returns bool as documented. (Martin Magr)
653437c
- Command argument in kobo.shortcuts.run() can be also a list now. (Daniel Mach)
653437c
- Strip path from nvr in kobo.rpmlib.parse_nvr() and parse_nvra(). (Daniel Mach)
653437c
- Exclude XML-RPC from CSRF processing. (Daniel Mach)
653437c
- Add stdin data support to kobo.shortcuts.run(). (Daniel Mach)
653437c
- Add kobo.shortcuts.iter_chunks() to iterate through a list, string or generator and yield chunks of defined size. (Daniel Mach)
653437c
- Raise an exception when spawn_subtask() or wait() method is called in a foreground task. (Daniel Mach)
653437c
- Add constructor to kobo.django.hacks.UserChangeForm to fix maximum recursion depth error. (Daniel Mach)
653437c
- Fix username max_length hack to work with Django 1.2.1. (Martin Bukatovic)
653437c
- Add kobo.notification module to send email notifications. (Daniel Mach)
653437c
- Process kobo.shortcuts.run() logging in chunks and print data immediately. (Daniel Mach)
653437c
- Subtasks have to follow parent's channel and arch. (Martin Magr)
653437c
- Compute elapsed time for running tasks. (Tomas Kopecek)
653437c
653437c
* Wed Oct 27 2010 Daniel Mach <dmach@redhat.com> - 0.3.2-1
653437c
- Fix XML-RPC transports to make them work in py2.5 and py2.6. (Daniel Mach)
653437c
- Automatically scroll the task log window when we're at the bottom of the page. (Daniel Mach)
653437c
- Show self.* attributes in extended tracebacks. (Daniel Mach)
653437c
- Compress logs with gzip when a task finishes. (Daniel Mach)
653437c
- Convert task logs to utf8 (with "replace" option) to prevent raising UnicodeDecodeError during template processing. (Daniel Mach)
653437c
653437c
* Tue Oct 19 2010 Daniel Mach <dmach@redhat.com> - 0.3.1-1
653437c
- Add help-admin command to display help for admin commands. (Daniel Mach)
653437c
- Add config parser support for glob matching on dict keys. (Tomas Kopecek)
653437c
- Implement timeout support in xmlrpc transports. (Daniel Mach)
653437c
- Improve kobo.xmlrpc.CookieTransport to work with python 2.7 as well. (Daniel Mach)
653437c
- Add kobo-admin utility. (Martin Bukatovic)
653437c
- Add missing HttpResponseForbidden import to kobo.hub.views. (Daniel Mach)
653437c
- Fix bug in "Show only my tasks" search option on Tasks page. (Daniel Mach)
653437c
653437c
* Fri Aug 13 2010 Daniel Mach <dmach@redhat.com> - 0.3.0-2
653437c
- Bump to new upstream version.
653437c
- Fix kobo.rpmlib.get_digest_algo_from_header() when RPMTAG_FILEDIGESTALGO contains None value. (Daniel Mach)
653437c
- Pass 'conf' argument do daemonized worker's main_loop. (Daniel Mach)
b6809bb
0d2f53f
* Mon Feb 15 2010 Daniel Mach <dmach@redhat.com> - 0.2.1-1
0d2f53f
- Split rpmlib to a subpackage.
0d2f53f
- Add missing "compare_nvr" to __all__. (Daniel Mach)
0d2f53f
- Remove duplicate subtask removal in Task.wait(). (Tomas Kopecek)
0d2f53f
- Parent task didn't wake up even if all child tasks were finished. (Tomas Kopecek)
0d2f53f
- Change 'make log' to use C locales and automatically fill name and email from GIT. (Daniel Mach)
0d2f53f
- Fix spawn_subtask argument. (cherry picked from commit 374a4165c16d6b34fa486a38525753969e549415) (Tomas Kopecek)
0d2f53f
- Fix XML-RPC method registration. (original patch by Xuqing Kuang) (Daniel Mach)
0d2f53f
- Convert rpm.labelCompare's arguments to string to prevent segfaulting. Add compare_nvr tests. (Tomas Kopecek)
0d2f53f
- Add Task.get_time_display() to get time spent in task in human readable form. (Daniel Mach)
0d2f53f
- Use koji.get_sigpacket_key_id() to read sigkey id from a rpm header. (Daniel Mach)
0d2f53f
db2fd82
* Thu Nov  5 2009 Daniel Mach <dmach@redhat.com> - 0.2.0-1
db2fd82
- Rewrite menu to get rid of tuples in menu definition. Always use MenuItem classes. (Daniel Mach)
db2fd82
- Send task logs to hub to enable realtime log watching. (Daniel Mach)
db2fd82
- Add menu_item helper. (Tomas Kopecek)
db2fd82
- New version of menu component. (Tomas Kopecek)
db2fd82
- Order tasks to assign by priority first. (Daniel Mach)
db2fd82
- Fix spacing errors to be more PEP 8 compliant. (Daniel Mach)
db2fd82
- Handle SystemExit in TaskManager.run_task(). (Daniel Mach)
db2fd82
- Add a shortcut and pkgset support for computing hashlib based hashes. (Daniel Mach)
db2fd82
- Add hack enabling 'VERBOSE' log level in the python logging module and Logger class. (Daniel Mach)
db2fd82
- Run tests in alphabetical order. (Daniel Mach)
db2fd82
- Fix TaskAdmin to search for user in correct db field. (Tomas Kopecek)
db2fd82
- More convenient admin listing for Worker model. (Tomas Kopecek)
db2fd82
- Add files to cache faster (skip stat call when possible). (Tomas Kopecek)
db2fd82
- Remove deps on postgresql, httpd, mod_auth_kerb and python-krbV.
db2fd82
- Add AUTHORS, COPYING and LICENSE to kobo.rpm.
db2fd82
6f9e15d
* Tue Aug 18 2009 Daniel Mach <dmach@redhat.com> - 0.1.2-1
6f9e15d
- Read default paginate_by value from settings in kobo.django.views.generic.object_list. (Tomas Kopecek)
6f9e15d
- Add read_from_file() and rename save() to save_to_file() in kobo.shortcuts. (Daniel Mach)
6f9e15d
- Reverse FileUpload default ordering. (Daniel Mach)
6f9e15d
- Add kobo.conf.get_dict_value() to support dicts with default values. (Daniel Mach)
6f9e15d
- Add direct access to files via pkgset.RpmWrapper. (Tomas Kopecek)
6f9e15d
- Add documentation to django.auth.krb5. (Daniel Mach)
6f9e15d
- Fix worker key generation in kobo.hub.models.Worker.save(). (Daniel Mach)
6f9e15d
- Fix a security hole in krb5 middleware: a user was able to log in as different user to admin interface. (Daniel Mach)
6f9e15d
- Change Makefile to run tests before creating source tarball. (Daniel Mach)
6f9e15d
- Change HubProxy._hub verification to fix exceptions in Python2.6. (Martin Magr)
6f9e15d
- Another SQL performance improvement in Task admin. (Tomas Kopecek)
6f9e15d
- Set Task.parent as raw_id field to improve admin performance. (Daniel Mach)
6f9e15d
- Add (spent) time method to Task and display it in the admin listing. (Tomas Kopecek)
6f9e15d
a9c3263
* Wed Jul 22 2009 Daniel Mach <dmach@redhat.com> - 0.1.1-1
a9c3263
- Enhance types.Enum to support help_text and additonal options. Update tests for types module. (Daniel Mach)
a9c3263
- Remove temp directory after file upload. (Tomas Kopecek)
a9c3263
- Remove MANIFEST in make clean. (Daniel Mach)
a9c3263
- Fix shortcuts.run to read complete stdout. (Jan Blazek)
a9c3263
- Add rpmlib.get_file_list_from_header() which extracts file list, colors and checksums from a rpm header. (Daniel Mach)
a9c3263
- Add get_digest_algo_from_header() function to read rpm digest algorithm. (Daniel Mach)
a9c3263
- Update epydoc docstrings in kobo.rpmlib. (Daniel Mach)
a9c3263
- Fix deadlock in run(). Use proc.poll() instead of proc.wait(). (Daniel Mach)
a9c3263
- Update epydoc docstrings in kobo.shortcuts. (Daniel Mach)
a9c3263
- Fix AtributeError when active_submenu is None. (Daniel Mach)
a9c3263
- Return menu dict even if no menu is active. (Daniel Mach)
a9c3263
- Do not allow to register plugins to PluginContainer base class. Add several tests. (Daniel Mach)
a9c3263
- Add test runner. (Daniel Mach)
a9c3263
- Add support for empty submenus. (Martin Magr)
db2fd82
2381a07
* Wed Jun 17 2009 Daniel Mach <dmach@redhat.com> - 0.1.0-1
2381a07
- first release