new packages in cg14-dev

This commit is contained in:
Thomas NOËL 2014-10-18 12:55:38 +02:00
parent 1a69beb98f
commit 82fc374029
12 changed files with 333 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<services>
<service name="download_url">
<param name="host">pypi.python.org</param>
<param name="protocol">https</param>
<param name="path">/packages/source/S/South/South-1.0.tar.gz</param>
</service>
</services>

View File

@ -0,0 +1,59 @@
#
# spec file for package python-South
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-South
Version: 1.0
Release: 0
Url: http://south.aeracode.org/
Summary: South: Migrations for Django
License: Apache-2.0
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/S/South/South-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-distribute
Requires: python-django
Provides: python-django-south = %{version}
Obsoletes: python-django-south < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
South is an intelligent database migrations library for the Django web framework. It is database-independent and DVCS-friendly, as well as a whole host of other features.
%prep
%setup -q -n South-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc README
%{python_sitelib}/*
%changelog

View File

@ -0,0 +1,7 @@
<services>
<service name="download_url">
<param name="host">pypi.python.org</param>
<param name="protocol">http</param>
<param name="path">/packages/source/d/django-jsonresponse/django-jsonresponse-0.9.0.tar.gz</param>
</service>
</services>

View File

@ -0,0 +1,36 @@
Name: python-django-jsonresponse
Version: 0.9.0
Release: 1%{?dist}
Summary: Simple wrap django views to render json
Group: Development/Languages
License: BSD
URL: http://pypi.python.org/pypi/django-jsonresponse
Source: http://pypi.python.org/packages/source/d/django-jsonresponse/django-jsonresponse-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools-devel
Requires: python-django
%description
Wrap view functions, allowng them render python native and custom objects to json
%prep
%setup -q -n django-jsonresponse-%{version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%{python_sitelib}/jsonresponse
%{python_sitelib}/tests
%doc README.txt PKG-INFO
%{python_sitelib}/django_jsonresponse-%{version}-py?.?.egg-info
%changelog
* Wed Apr 17 2013 Entr'ouvert <info@entrouvert.org> - 0.5-2
- Initial release

View File

@ -0,0 +1,7 @@
<services>
<service name="download_url">
<param name="host">pypi.python.org</param>
<param name="protocol">http</param>
<param name="path">/packages/source/d/django-model-utils/django-model-utils-1.3.1.tar.gz</param>
</service>
</services>

View File

@ -0,0 +1,35 @@
Name: python-django-model-utils
Version: 1.3.1
Release: 1%{?dist}
Summary: Django model mixins and utilities
Group: Development/Languages
License: BSD
URL: http://pypi.python.org/pypi/django-model-utils
Source: http://pypi.python.org/packages/source/d/django-model-utils/django-model-utils-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools-devel
Requires: python-django
%description
Django model mixins and utilities
%prep
%setup -q -n django-model-utils-%{version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%{python_sitelib}/model_utils
%doc AUTHORS.rst CHANGES.rst LICENSE.txt README.rst TODO.rst
%{python_sitelib}/django_model_utils-%{version}-py?.?.egg-info
%changelog
* Wed Apr 17 2013 Entr'ouvert <info@entrouvert.org> - 1.3.1-1
- Initial release

View File

@ -0,0 +1,7 @@
<services>
<service name="download_url">
<param name="host">www.djangoproject.com</param>
<param name="protocol">https</param>
<param name="path">/m/releases/1.5/Django-1.5.10.tar.gz</param>
</service>
</services>

View File

@ -0,0 +1,61 @@
#
# spec file for package python-django
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-django
Version: 1.5.10
Release: 0
Summary: A high-level Python Web framework
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://www.djangoproject.com
Source: Django-%{version}.tar.gz
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Requires: gettext-tools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
%prep
%setup -q -n Django-%{version}
# %patch1
# %patch2
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -D -m 0755 extras/django_bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/django_bash_completion.sh
ln -s %{_bindir}/django-admin.py %{buildroot}%{_bindir}/django-admin
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README.rst
%{_bindir}/django-admin*
%{python_sitelib}/*
%{_sysconfdir}/bash_completion.d/django_bash_completion.sh
%changelog

View File

@ -0,0 +1,7 @@
<services>
<service name="download_url">
<param name="host">pypi.python.org</param>
<param name="protocol">http</param>
<param name="path">/packages/source/g/gunicorn/gunicorn-0.14.6.tar.gz</param>
</service>
</services>

View File

@ -0,0 +1,37 @@
From 4b478e1a6651f33b36e30294c5a320388ed527f4 Mon Sep 17 00:00:00 2001
From: benoitc <bchesneau@gmail.com>
Date: Fri, 3 Aug 2012 06:27:26 +0200
Subject: [PATCH] fix request line check. close #390
We never had the possibility to check the limit since we were quitting
the loop before it.
---
gunicorn/http/message.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gunicorn/http/message.py b/gunicorn/http/message.py
index e2c7500..d2361ca 100644
--- a/gunicorn/http/message.py
+++ b/gunicorn/http/message.py
@@ -165,13 +165,14 @@ def parse(self, unreader):
idx = data.find("\r\n")
if idx >= 0:
break
-
- if len(data) - 2 > self.limit_request_line > 0:
- raise LimitRequestLine(len(data), self.limit_request_line)
-
self.get_data(unreader, buf)
data = buf.getvalue()
+ # check if the request line is too large
+ if len(data) - 2 > self.limit_request_line and \
+ self.limit_request_line> 0 :
+ raise LimitRequestLine(len(data), self.limit_request_line)
+
self.parse_request_line(data[:idx])
buf = StringIO()
buf.write(data[idx+2:]) # Skip \r\n
--
1.7.10

View File

@ -0,0 +1,70 @@
%global upstream_name gunicorn
Name: python-gunicorn
Version: 0.14.6
Release: 1%{?dist}
Summary: Python WSGI application server
Group: System Environment/Daemons
License: MIT
URL: http://gunicorn.org/
Source0: http://pypi.python.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz
# https://github.com/benoitc/gunicorn/issues/390
# https://github.com/benoitc/gunicorn/commit/4b478e1a6651f33b36e30294c5a320388ed527f4
Patch1: %{name}-0.14.6-LimitRequestLine.patch
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
%description
Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It uses the
pre-fork worker model, ported from Ruby's Unicorn project. It supports WSGI,
Django, and Paster applications.
%prep
%setup -q -n %{upstream_name}-%{version}
%patch1 -p1
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%check
%{__python} setup.py test
%files
%doc LICENSE NOTICE README.rst THANKS
%{python_sitelib}/%{upstream_name}*
%{_bindir}/%{upstream_name}
%{_bindir}/%{upstream_name}_django
%{_bindir}/%{upstream_name}_paster
%changelog
* Mon Aug 20 2012 Dan Callaghan <dcallagh@redhat.com> - 0.14-6-2
- fix for LimitRequestLine test failure (upstream issue #390)
* Wed Aug 01 2012 Dan Callaghan <dcallagh@redhat.com> - 0.14.6-1
- upstream bugfix release 0.14.6
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jun 25 2012 Dan Callaghan <dcallagh@redhat.com> - 0.14.5-1
- upstream bugfix release 0.14.5
* Thu Jun 07 2012 Dan Callaghan <dcallagh@redhat.com> - 0.14.3-1
- updated to upstream release 0.14.3
* Wed Feb 08 2012 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-3
- renamed package to python-gunicorn, and other minor fixes
* Tue Jan 31 2012 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-2
- patch for failing test (gunicorn issue #294)
* Mon Jan 30 2012 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-1
- initial version