|
|
2381a07 |
%define py_version %(%{__python} -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND)
|
|
|
2381a07 |
%define py_prefix %(%{__python} -c "import sys; print sys.prefix" 2>/dev/null || echo PYTHON-NOT-FOUND)
|
|
|
2381a07 |
%define py_libdir %{py_prefix}/lib/python%{py_version}
|
|
|
2381a07 |
%define py_incdir %{py_prefix}/include/python%{py_version}
|
|
|
2381a07 |
%define py_sitedir %{py_libdir}/site-packages
|
|
|
2381a07 |
%define debug_package %{nil}
|
|
|
2381a07 |
|
|
|
5ce3843 |
%define version 0.3.3
|
|
|
324f379 |
%define release 1
|
|
|
2381a07 |
# set git to %{nil} (release) or to YYYYMMDD.123456 (git build)
|
|
|
2381a07 |
%define git %{nil}
|
|
|
2381a07 |
|
|
|
2381a07 |
%if "%{?git}" != ""
|
|
|
2381a07 |
%define release_prefix 0.
|
|
|
2381a07 |
%define release_suffix .git.%{git}
|
|
|
2381a07 |
%endif
|
|
|
2381a07 |
|
|
|
2381a07 |
Name: kobo
|
|
|
2381a07 |
Version: %{version}
|
|
|
2381a07 |
Release: %{?release_prefix}%{release}%{?release_suffix}%{?dist}
|
|
|
2381a07 |
License: LGPLv2
|
|
|
2381a07 |
Summary: Python modules for tools development
|
|
|
2381a07 |
Group: Development/Libraries
|
|
|
a9c3263 |
URL: https://fedorahosted.org/kobo/
|
|
|
a9c3263 |
Source0: https://fedorahosted.org/releases/k/o/kobo/%{name}-%{version}%{?release_suffix}.tar.bz2
|
|
|
2381a07 |
|
|
|
2381a07 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
2381a07 |
BuildArch: noarch
|
|
|
2381a07 |
BuildRequires: python-devel >= 2.4
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
# require python-hashlib in python 2.4
|
|
|
2381a07 |
%if "%{py_version}" == "2.4"
|
|
|
2381a07 |
Requires: python-hashlib
|
|
|
2381a07 |
%endif
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%description
|
|
|
2381a07 |
Kobo is a set of python modules designed for rapid tools development.
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%package django
|
|
|
2381a07 |
Summary: Django components
|
|
|
2381a07 |
Group: Development/Libraries
|
|
|
2381a07 |
Requires: kobo = %{version}-%{release}
|
|
|
2381a07 |
|
|
|
2381a07 |
%description django
|
|
|
2381a07 |
Django components.
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%package client
|
|
|
2381a07 |
Summary: CLI client
|
|
|
2381a07 |
Group: Development/Libraries
|
|
|
2381a07 |
Requires: kobo = %{version}-%{release}
|
|
|
9e2c2e2 |
Requires: python-simplejson
|
|
|
2381a07 |
|
|
|
2381a07 |
%description client
|
|
|
2381a07 |
CLI client.
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%package worker
|
|
|
2381a07 |
Summary: Worker daemon processing tasks submitted to the hub
|
|
|
2381a07 |
Group: Development/Libraries
|
|
|
2381a07 |
Requires: kobo = %{version}-%{release}
|
|
|
2381a07 |
|
|
|
2381a07 |
%description worker
|
|
|
2381a07 |
Worker daemon processing tasks submitted to the hub.
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%package hub
|
|
|
2381a07 |
Summary: Xml-rpc and web interface to a task database
|
|
|
2381a07 |
Group: Development/Libraries
|
|
|
2381a07 |
Requires: kobo = %{version}-%{release}
|
|
|
2381a07 |
Requires: Django >= 1
|
|
|
8cf5831 |
Requires: gzip
|
|
|
2381a07 |
|
|
|
2381a07 |
%description hub
|
|
|
2381a07 |
Hub is a xml-rpc and web interface to a task database.
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
3648d87 |
%package rpmlib
|
|
|
3648d87 |
Summary: Functions to manipulate with RPM files
|
|
|
3648d87 |
Group: Development/Libraries
|
|
|
3648d87 |
Requires: kobo = %{version}-%{release}
|
|
|
3648d87 |
Requires: rpm-python
|
|
|
3648d87 |
Requires: koji
|
|
|
3648d87 |
|
|
|
3648d87 |
%description rpmlib
|
|
|
3648d87 |
Rpmlib contains functions to manipulate with RPM files.
|
|
|
3648d87 |
|
|
|
3648d87 |
|
|
|
324f379 |
%package admin
|
|
|
324f379 |
Summary: Kobo admin script for instant project deployment
|
|
|
324f379 |
Group: Development/Tools
|
|
|
324f379 |
Requires: kobo >= %{version}
|
|
|
324f379 |
Requires: Django >= 1
|
|
|
324f379 |
|
|
|
324f379 |
%description admin
|
|
|
324f379 |
Kobo admin provides templates for various kobo-based projects,
|
|
|
324f379 |
incl. CLI, hub client, worker and hub.
|
|
|
324f379 |
|
|
|
324f379 |
|
|
|
2381a07 |
%prep
|
|
|
2381a07 |
%setup -q -n %{name}-%{version}%{?release_suffix}
|
|
|
2381a07 |
|
|
|
2381a07 |
%build
|
|
|
2381a07 |
echo OK
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%install
|
|
|
2381a07 |
rm -rf ${RPM_BUILD_ROOT}
|
|
|
2381a07 |
python setup.py install --root=${RPM_BUILD_ROOT}
|
|
|
2381a07 |
|
|
|
2381a07 |
# delete the egg-info file
|
|
|
2381a07 |
egg_info=$RPM_BUILD_ROOT/%{py_sitedir}/%{name}-*.egg-info
|
|
|
2381a07 |
if [ -f $egg_info ]; then
|
|
|
2381a07 |
rm $egg_info
|
|
|
2381a07 |
fi
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%clean
|
|
|
2381a07 |
rm -rf $RPM_BUILD_ROOT
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%files
|
|
|
2381a07 |
%defattr(644,root,root,755)
|
|
|
2381a07 |
%{py_sitedir}/kobo/*.py*
|
|
|
3648d87 |
%exclude %{py_sitedir}/kobo/rpmlib.py*
|
|
|
ac4e757 |
%doc AUTHORS
|
|
|
ac4e757 |
%doc COPYING
|
|
|
ac4e757 |
%doc LICENSE
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%files django
|
|
|
2381a07 |
%defattr(644,root,root,755)
|
|
|
2381a07 |
%{py_sitedir}/kobo/django
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%files client
|
|
|
2381a07 |
%defattr(644,root,root,755)
|
|
|
2381a07 |
%{py_sitedir}/kobo/client
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%files worker
|
|
|
2381a07 |
%defattr(644,root,root,755)
|
|
|
2381a07 |
%{py_sitedir}/kobo/worker
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
2381a07 |
%files hub
|
|
|
2381a07 |
%defattr(644,root,root,755)
|
|
|
2381a07 |
%{py_sitedir}/kobo/hub
|
|
|
2381a07 |
|
|
|
2381a07 |
|
|
|
3648d87 |
%files rpmlib
|
|
|
3648d87 |
%defattr(644,root,root,755)
|
|
|
3648d87 |
%{py_sitedir}/kobo/rpmlib.py*
|
|
|
3648d87 |
|
|
|
324f379 |
%files admin
|
|
|
324f379 |
%defattr(644,root,root,755)
|
|
|
324f379 |
%{py_sitedir}/kobo/admin
|
|
|
324f379 |
%attr(755,root,root) /usr/bin/kobo-admin
|
|
|
324f379 |
|
|
|
3648d87 |
|
|
|
2381a07 |
%changelog
|
|
|
5ce3843 |
* Tue Feb 1 2011 Daniel Mach <dmach@redhat.com> - 0.3.3-1
|
|
|
5ce3843 |
- Replace double underscores with dots in xmlrpc method names. (Daniel Mach)
|
|
|
5ce3843 |
- Fix regex in test_tback.py so unit tests pass. (Daniel Mach)
|
|
|
5ce3843 |
- Fix session handling in worker. (Daniel Mach)
|
|
|
5ce3843 |
- Fix kobo.Traceback to return empty string on no exception. Add traceback tests. (Tomas Kopecek)
|
|
|
5ce3843 |
- Simplify hub deployment (add menu and template to default). Tweak kobo-admin templates. (Daniel Mach)
|
|
|
5ce3843 |
- Add a warning about a possibly read-only database to the worker middleware assert. (Daniel Mach)
|
|
|
5ce3843 |
- Add task notification() and cleanup() class methods. (Daniel Mach)
|
|
|
5ce3843 |
- Revamp hub urls and admin templates. (Daniel Mach)
|
|
|
5ce3843 |
- Prevent a race condition when using CookieTransport in threads in py2.7. (Daniel Mach)
|
|
|
5ce3843 |
- Add unit test for EnumItem.change_state() return value. (Daniel Mach)
|
|
|
5ce3843 |
- StateEnum.change_state() now returns bool as documented. (Martin Magr)
|
|
|
5ce3843 |
- Command argument in kobo.shortcuts.run() can be also a list now. (Daniel Mach)
|
|
|
5ce3843 |
- Strip path from nvr in kobo.rpmlib.parse_nvr() and parse_nvra(). (Daniel Mach)
|
|
|
5ce3843 |
- Exclude XML-RPC from CSRF processing. (Daniel Mach)
|
|
|
5ce3843 |
- Add stdin data support to kobo.shortcuts.run(). (Daniel Mach)
|
|
|
5ce3843 |
- Add kobo.shortcuts.iter_chunks() to iterate through a list, string or generator and yield chunks of defined size. (Daniel Mach)
|
|
|
5ce3843 |
- Raise an exception when spawn_subtask() or wait() method is called in a foreground task. (Daniel Mach)
|
|
|
5ce3843 |
- Add constructor to kobo.django.hacks.UserChangeForm to fix maximum recursion depth error. (Daniel Mach)
|
|
|
5ce3843 |
- Fix username max_length hack to work with Django 1.2.1. (Martin Bukatovic)
|
|
|
5ce3843 |
- Add kobo.notification module to send email notifications. (Daniel Mach)
|
|
|
5ce3843 |
- Process kobo.shortcuts.run() logging in chunks and print data immediately. (Daniel Mach)
|
|
|
5ce3843 |
- Subtasks have to follow parent's channel and arch. (Martin Magr)
|
|
|
5ce3843 |
- Compute elapsed time for running tasks. (Tomas Kopecek)
|
|
|
5ce3843 |
|
|
|
8cf5831 |
* Wed Oct 27 2010 Daniel Mach <dmach@redhat.com> - 0.3.2-1
|
|
|
8cf5831 |
- Fix XML-RPC transports to make them work in py2.5 and py2.6. (Daniel Mach)
|
|
|
8cf5831 |
- Automatically scroll the task log window when we're at the bottom of the page. (Daniel Mach)
|
|
|
8cf5831 |
- Show self.* attributes in extended tracebacks. (Daniel Mach)
|
|
|
8cf5831 |
- Compress logs with gzip when a task finishes. (Daniel Mach)
|
|
|
8cf5831 |
- Convert task logs to utf8 (with "replace" option) to prevent raising UnicodeDecodeError during template processing. (Daniel Mach)
|
|
|
8cf5831 |
|
|
|
324f379 |
* Tue Oct 19 2010 Daniel Mach <dmach@redhat.com> - 0.3.1-1
|
|
|
324f379 |
- Add help-admin command to display help for admin commands. (Daniel Mach)
|
|
|
324f379 |
- Add config parser support for glob matching on dict keys. (Tomas Kopecek)
|
|
|
324f379 |
- Implement timeout support in xmlrpc transports. (Daniel Mach)
|
|
|
324f379 |
- Improve kobo.xmlrpc.CookieTransport to work with python 2.7 as well. (Daniel Mach)
|
|
|
324f379 |
- Add kobo-admin utility. (Martin Bukatovic)
|
|
|
324f379 |
- Add missing HttpResponseForbidden import to kobo.hub.views. (Daniel Mach)
|
|
|
324f379 |
- Fix bug in "Show only my tasks" search option on Tasks page. (Daniel Mach)
|
|
|
324f379 |
|
|
|
9e2c2e2 |
* Fri Aug 13 2010 Daniel Mach <dmach@redhat.com> - 0.3.0-2
|
|
|
9e2c2e2 |
- Bump to new upstream version.
|
|
|
9e2c2e2 |
- Fix kobo.rpmlib.get_digest_algo_from_header() when RPMTAG_FILEDIGESTALGO contains None value. (Daniel Mach)
|
|
|
9e2c2e2 |
- Pass 'conf' argument do daemonized worker's main_loop. (Daniel Mach)
|
|
|
9e2c2e2 |
|
|
|
3648d87 |
* Mon Feb 15 2010 Daniel Mach <dmach@redhat.com> - 0.2.1-1
|
|
|
3648d87 |
- Split rpmlib to a subpackage.
|
|
|
3648d87 |
- Add missing "compare_nvr" to __all__. (Daniel Mach)
|
|
|
3648d87 |
- Remove duplicate subtask removal in Task.wait(). (Tomas Kopecek)
|
|
|
3648d87 |
- Parent task didn't wake up even if all child tasks were finished. (Tomas Kopecek)
|
|
|
3648d87 |
- Change 'make log' to use C locales and automatically fill name and email from GIT. (Daniel Mach)
|
|
|
3648d87 |
- Fix spawn_subtask argument. (cherry picked from commit 374a4165c16d6b34fa486a38525753969e549415) (Tomas Kopecek)
|
|
|
3648d87 |
- Fix XML-RPC method registration. (original patch by Xuqing Kuang) (Daniel Mach)
|
|
|
3648d87 |
- Convert rpm.labelCompare's arguments to string to prevent segfaulting. Add compare_nvr tests. (Tomas Kopecek)
|
|
|
3648d87 |
- Add Task.get_time_display() to get time spent in task in human readable form. (Daniel Mach)
|
|
|
3648d87 |
- Use koji.get_sigpacket_key_id() to read sigkey id from a rpm header. (Daniel Mach)
|
|
|
3648d87 |
|
|
|
ac4e757 |
* Thu Nov 5 2009 Daniel Mach <dmach@redhat.com> - 0.2.0-1
|
|
|
ac4e757 |
- Rewrite menu to get rid of tuples in menu definition. Always use MenuItem classes. (Daniel Mach)
|
|
|
ac4e757 |
- Send task logs to hub to enable realtime log watching. (Daniel Mach)
|
|
|
ac4e757 |
- Add menu_item helper. (Tomas Kopecek)
|
|
|
ac4e757 |
- New version of menu component. (Tomas Kopecek)
|
|
|
ac4e757 |
- Order tasks to assign by priority first. (Daniel Mach)
|
|
|
ac4e757 |
- Fix spacing errors to be more PEP 8 compliant. (Daniel Mach)
|
|
|
ac4e757 |
- Handle SystemExit in TaskManager.run_task(). (Daniel Mach)
|
|
|
ac4e757 |
- Add a shortcut and pkgset support for computing hashlib based hashes. (Daniel Mach)
|
|
|
ac4e757 |
- Add hack enabling 'VERBOSE' log level in the python logging module and Logger class. (Daniel Mach)
|
|
|
ac4e757 |
- Run tests in alphabetical order. (Daniel Mach)
|
|
|
ac4e757 |
- Fix TaskAdmin to search for user in correct db field. (Tomas Kopecek)
|
|
|
ac4e757 |
- More convenient admin listing for Worker model. (Tomas Kopecek)
|
|
|
ac4e757 |
- Add files to cache faster (skip stat call when possible). (Tomas Kopecek)
|
|
|
ac4e757 |
- Remove deps on postgresql, httpd, mod_auth_kerb and python-krbV.
|
|
|
ac4e757 |
- Add AUTHORS, COPYING and LICENSE to kobo.rpm.
|
|
|
ac4e757 |
|
|
|
eb7d9b3 |
* Tue Aug 18 2009 Daniel Mach <dmach@redhat.com> - 0.1.2-1
|
|
|
eb7d9b3 |
- Read default paginate_by value from settings in kobo.django.views.generic.object_list. (Tomas Kopecek)
|
|
|
eb7d9b3 |
- Add read_from_file() and rename save() to save_to_file() in kobo.shortcuts. (Daniel Mach)
|
|
|
eb7d9b3 |
- Reverse FileUpload default ordering. (Daniel Mach)
|
|
|
eb7d9b3 |
- Add kobo.conf.get_dict_value() to support dicts with default values. (Daniel Mach)
|
|
|
eb7d9b3 |
- Add direct access to files via pkgset.RpmWrapper. (Tomas Kopecek)
|
|
|
eb7d9b3 |
- Add documentation to django.auth.krb5. (Daniel Mach)
|
|
|
eb7d9b3 |
- Fix worker key generation in kobo.hub.models.Worker.save(). (Daniel Mach)
|
|
|
eb7d9b3 |
- Fix a security hole in krb5 middleware: a user was able to log in as different user to admin interface. (Daniel Mach)
|
|
|
eb7d9b3 |
- Change Makefile to run tests before creating source tarball. (Daniel Mach)
|
|
|
eb7d9b3 |
- Change HubProxy._hub verification to fix exceptions in Python2.6. (Martin Magr)
|
|
|
eb7d9b3 |
- Another SQL performance improvement in Task admin. (Tomas Kopecek)
|
|
|
eb7d9b3 |
- Set Task.parent as raw_id field to improve admin performance. (Daniel Mach)
|
|
|
eb7d9b3 |
- Add (spent) time method to Task and display it in the admin listing. (Tomas Kopecek)
|
|
|
eb7d9b3 |
|
|
|
eb7d9b3 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-2
|
|
|
eb7d9b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
eb7d9b3 |
|
|
|
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)
|
|
|
ac4e757 |
|
|
|
2381a07 |
* Wed Jun 17 2009 Daniel Mach <dmach@redhat.com> - 0.1.0-1
|
|
|
2381a07 |
- first release
|