From fb84afef74497536d75f6cc751b2525e7accd148a765d968da5b5d62376b17a5 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 4 Dec 2013 12:48:43 +0000 Subject: [PATCH] Accepting request 207554 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/207554 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Django?expand=0&rev=1 --- .gitattributes | 23 ++++ .gitignore | 1 + Django-1.6.tar.gz | 3 + python-Django.changes | 305 ++++++++++++++++++++++++++++++++++++++++++ python-Django.spec | 88 ++++++++++++ rpmlintrc | 5 + 6 files changed, 425 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Django-1.6.tar.gz create mode 100644 python-Django.changes create mode 100644 python-Django.spec create mode 100644 rpmlintrc diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Django-1.6.tar.gz b/Django-1.6.tar.gz new file mode 100644 index 0000000..dbccf4a --- /dev/null +++ b/Django-1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b784ddbba1f4a798348dd042ca48fc7a7810dce69a98979175f0a5eaa485dbda +size 6664851 diff --git a/python-Django.changes b/python-Django.changes new file mode 100644 index 0000000..abc0c43 --- /dev/null +++ b/python-Django.changes @@ -0,0 +1,305 @@ +------------------------------------------------------------------- +Tue Nov 19 10:06:23 UTC 2013 - speilicke@suse.com + +- Update-alternatives also for bash-completion + +------------------------------------------------------------------- +Fri Nov 15 13:33:20 UTC 2013 - speilicke@suse.com + +- Only ghost /etc/alternatives on 12.3 or newer + +------------------------------------------------------------------- +Thu Nov 7 16:36:41 UTC 2013 - speilicke@suse.com + +- Require python-Pillow for image-related functionality +- Package was renamed from python-django +- Drop Django-1.2-completion-only-for-bash.patch: Useless + +------------------------------------------------------------------- +Tue Nov 5 03:27:13 UTC 2013 - alexandre@exatati.com.br + +- Update to version 1.6: + - Please read the release notes + https://docs.djangoproject.com/en/1.6/releases/1.6 +- Removed Patch2 as it is no needed anymore: + Django-1.4-CSRF_COOKIE_HTTPONLY-support.patch + +------------------------------------------------------------------- +Tue Sep 17 12:37:53 UTC 2013 - speilicke@suse.com + +- Update to version 1.5.4: + + Fixed denial-of-service via large passwords +- Changes from version 1.5.3: + + Fixed directory traversal with ssi template tag + +------------------------------------------------------------------- +Wed Aug 14 05:49:54 UTC 2013 - alexandre@exatati.com.br + +- Update to 1.5.2: + - Security release, please check release notes for details: + https://www.djangoproject.com/weblog/2013/aug/13/security-releases-issued + +------------------------------------------------------------------- +Thu Mar 28 23:27:01 UTC 2013 - alexandre@exatati.com.br + +- Update to 1.5.1: + - Memory leak fix, please read release announcement at + https://www.djangoproject.com/weblog/2013/mar/28/django-151. + +------------------------------------------------------------------- +Tue Feb 26 19:49:02 UTC 2013 - alexandre@exatati.com.br + +- Update to 1.5: + - Please read the release notes + https://docs.djangoproject.com/en/1.5/releases/1.5 + +------------------------------------------------------------------- +Tue Dec 11 12:27:50 UTC 2012 - alexandre@exatati.com.br + +- Update to 1.4.3: + - Security release: + - Host header poisoning + - Redirect poisoning + - Please check release notes for details: + https://www.djangoproject.com/weblog/2012/dec/10/security + +------------------------------------------------------------------- +Sat Oct 20 13:41:10 UTC 2012 - saschpe@suse.de + +- Add a symlink from /usr/bin/django-admin.py to /usr/bin/django-admin + +------------------------------------------------------------------- +Wed Oct 17 22:51:36 UTC 2012 - alexandre@exatati.com.br + +- Update to 1.4.2: + - Security release: + - Host header poisoning + - Please check release notes for details: + https://www.djangoproject.com/weblog/2012/oct/17/security + +------------------------------------------------------------------- +Mon Jul 30 21:38:31 UTC 2012 - alexandre@exatati.com.br + +- Update to 1.4.1: + - Security release: + - Cross-site scripting in authentication views + - Denial-of-service in image validation + - Denial-of-service via get_image_dimensions() + - Please check release notes for details: + https://www.djangoproject.com/weblog/2012/jul/30/security-releases-issued + +------------------------------------------------------------------- +Tue Jun 19 11:27:33 UTC 2012 - saschpe@suse.de + +- Add patch to support CSRF_COOKIE_HTTPONLY config + +------------------------------------------------------------------- +Fri Mar 23 18:39:40 UTC 2012 - alexandre@exatati.com.br + +- Update to 1.4: + - Please read the release notes + https://docs.djangoproject.com/en/dev/releases/1.4 +- Removed Patch2, it was merged on upstream, + +------------------------------------------------------------------- +Thu Nov 24 12:30:40 UTC 2011 - saschpe@suse.de + +- Set license to SDPX style (BSD-3-Clause) +- Package AUTHORS, LICENE and README files +- No CFLAGS for noarch package +- Drop runtime dependency on gettext-tools + +------------------------------------------------------------------- +Sat Sep 10 12:05:07 UTC 2011 - alexandre@exatati.com.br + +- Update to 1.3.1 to fix security issues, please read + https://www.djangoproject.com/weblog/2011/sep/09/security-releases-issued. + +------------------------------------------------------------------- +Thu Mar 31 15:09:16 UTC 2011 - alexandre@exatati.com.br + +- Fix build on SLES_9. + +------------------------------------------------------------------- +Wed Mar 23 11:39:53 UTC 2011 - alexandre@exatati.com.br + +- Update to 1.3 final; +- Refresh patch empty-ip-2.diff. + +------------------------------------------------------------------- +Fri Mar 18 03:45:45 UTC 2011 - alexandre@exatati.com.br + +- Update to 1.3-rc1; +- Regenerated spec file with py2pack; +- No more need to fix wrong line endings; +- Refresh patch empty-ip-2.diff with -p0. + +------------------------------------------------------------------- +Thu Mar 3 09:32:52 UTC 2011 - saschpe@suse.de + +- Spec file cleanup: + * Removed empty lines, package authors from description + * Cleanup duplicates + * Corrected wrong file endings + * Added zero-length rpmlint filter +- Added AUTHORS, LICENSE and doc files + +------------------------------------------------------------------- +Wed Feb 9 03:37:29 UTC 2011 - alexandre@exatati.com.br + +- Update to 1.2.5: + - This is a security update that fix: + - Flaw in CSRF handling; + - Potential XSS in file field rendering. + +------------------------------------------------------------------- +Thu Dec 23 10:20:03 UTC 2010 - alexandre@exatati.com.br + +- Update to 1.2.4: + - Information leakage in Django administrative interface; + - Denial-of-service attack in password-reset mechanism. +- This is a mandatory security update. + +------------------------------------------------------------------- +Sat Sep 11 11:46:41 UTC 2010 - alexandre@exatati.com.br + +- Update to 1.2.3: + - The patch applied for the security issue covered in Django + 1.2.2 caused issues with non-ASCII responses using CSRF + tokens. This has been remedied; + - The patch also caused issues with some forms, most notably + the user-editing forms in the Django administrative interface. + This has been remedied. + - The packaging manifest did not contain the full list of + required files. This has been remedied. + +------------------------------------------------------------------- +Thu Sep 9 01:06:43 UTC 2010 - alexandre@exatati.com.br + +- Update to 1.2.2. +- This is a ciritical security update fixing a default XSS bug! + +------------------------------------------------------------------- +Fri Jul 9 11:27:26 UTC 2010 - jfunk@funktronics.ca + +- Added patch to fix upstream bug 5622: Empty ipaddress raises an error + +------------------------------------------------------------------- +Mon May 17 21:14:11 UTC 2010 - alexandre@exatati.com.br + +- Update to 1.2.1. + +------------------------------------------------------------------- +Mon May 17 18:35:20 UTC 2010 - alexandre@exatati.com.br + +- Update to 1.2. + +------------------------------------------------------------------- +Thu May 6 13:46:03 UTC 2010 - alexandre@exatati.com.br + +- Update to 1.2-rc-1. + +------------------------------------------------------------------- +Mon Apr 5 02:21:44 UTC 2010 - alexandre@exatati.com.br + +- Spec file cleaned with spec-cleaner; +- Minor manual adjusts on spec file. + +------------------------------------------------------------------- +Thu Mar 18 17:47:12 UTC 2010 - alexandre@exatati.com.br + +- Moved autocomplete file path from /etc/profile.d to + /etc/bash_completion.d. Then it works with konsole too. + +------------------------------------------------------------------- +Mon Mar 15 01:53:50 UTC 2010 - alexandre@exatati.com.br + +- Update to 1.2-beta-1; +- Using -q option on prep section of spec file; +- Using INSTALLED_FILES instead of declaring files; +- Removed dummy changelog section of spec file; +- Update completion bash patch. + +------------------------------------------------------------------- +Sun Oct 11 07:51:32 UTC 2009 - nix@opensuse.org + +- Update to 1.1.1 due to security issue described at + http://www.djangoproject.com/weblog/2009/oct/09/security/ + +------------------------------------------------------------------- +Sat Oct 10 12:18:31 UTC 2009 - alexandre@exatati.com.br + +- Removed old tarball file (Django-1.1.tar.bz2). + +------------------------------------------------------------------- +Tue Aug 25 12:23:09 CEST 2009 - garloff@suse.de + +- Fix python version check. + +------------------------------------------------------------------- +Sat Aug 22 13:39:35 CEST 2009 - garloff@suse.de + +- Don't require python-sqlite2 for python >= 2.6. + +------------------------------------------------------------------- +Fri Aug 21 11:38:03 CEST 2009 - garloff@suse.de + +- Build as noarch on factory. + +------------------------------------------------------------------- +Wed Aug 19 17:40:46 CEST 2009 - poeml@suse.de + +- don't run bash completion on shells other than bash. Avoiding + error messages produced at login when using other shells. + +------------------------------------------------------------------- +Fri Aug 14 18:05:42 UTC 2009 - alexandre@exatati.com.br + +- Added bash auto-complete to openSUSE. + +------------------------------------------------------------------- +Wed Jul 29 00:00:00 CEST 2009 - listuser@peternixon.net + +- update to version 1.1 +- add python-django-rpmlintrc to quiet rpmlint complaints about -lang + +------------------------------------------------------------------- +Wed Jul 1 19:04:26 CEST 2009 - poeml@suse.de + +- add python-xml to the Requires (./manage.py syncdb crashes + otherwise) + +------------------------------------------------------------------- +Sat Sep 13 00:00:00 UTC 2008 - listuser@peternixon.net + +- update to version 1.0 +- Fix build on SLES9 + +------------------------------------------------------------------- +Thu Sep 4 10:40:58 CEST 2008 - crrodriguez@suse.de + +- update to version 1.0 final + +------------------------------------------------------------------- +Wed May 14 00:00:00 UTC 2008 - listuser@peternixon.net + +- update to version 0.96.2 + +------------------------------------------------------------------- +Thu Feb 21 00:00:00 UTC 2008 - jfunk@funktronics.ca + +- The way simplejson is included in this package is not useful to other + packages. Removed from provides + +------------------------------------------------------------------- +Fri Oct 26 20:20:08 UTC 2007 - crrodriguez@suse.de + +- verion 0.96.1 fixes D.o.S attack in the i18n module + +------------------------------------------------------------------- +Fri Mar 23 00:00:00 UTC 2007 - crrodriguez@suse.de + +- update to version 0.96 + see http://www.djangoproject.com/documentation/release_notes_0.96 for details +- this package provides python-simplejson too. + diff --git a/python-Django.spec b/python-Django.spec new file mode 100644 index 0000000..6f521b3 --- /dev/null +++ b/python-Django.spec @@ -0,0 +1,88 @@ +# +# 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.6 +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: fdupes +BuildRequires: python-devel +Requires: python-Pillow +Requires: python-xml +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Provides: python-django = %{version} +Obsoletes: python-django < %{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 +Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. + +%prep +%setup -q -n Django-%{version} +sed -i "s|\(django/bin/django-admin.py\)|\1-%{py_ver}|" setup.py +mv django/bin/django-admin.py{,-%{py_ver}} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +install -D -m 0644 extras/django_bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/django_bash_completion-%{py_ver}.sh +ln -s %{_sysconfdir}/bash_completion.d/django_bash_completion-%{py_ver}.sh %{buildroot}%{_sysconfdir}/bash_completion.d/django_bash_completion.sh +ln -s %{_bindir}/django-admin.py-%{py_ver} %{buildroot}%{_bindir}/django-admin.py +%fdupes %{buildroot}%{python_sitelib} + +%pre +# Since /usr/bin/django-admin.py became ghosted to be used with update-alternatives, we have to get rid +# of the old binary resulting from the non-update-alternativies-ified package: +[[ ! -L %{_bindir}/django-admin.py ]] && rm -f %{_bindir}/django-admin.py +[[ ! -L %{_sysconfdir}/bash_completion.d/django_bash_completion.sh ]] && rm -f %{_sysconfdir}/bash_completion.d/django_bash_completion.sh +exit 0 + +%post +update-alternatives --install %{_bindir}/django-admin.py django-admin.py %{_bindir}/django-admin.py-%{py_ver} 20 + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove django-admin.py %{_bindir}/django-admin.py-%{py_ver} +fi + +%files +%defattr(-,root,root,-) +%doc AUTHORS LICENSE README.rst +%ghost %{_bindir}/django-admin.py +%if 0%{?suse_version} >= 1230 +%ghost %{_sysconfdir}/alternatives/django-admin.py +%endif +%{_bindir}/django-admin.py-%{py_ver} +%{python_sitelib}/django +%{python_sitelib}/Django-%{version}-py%{py_ver}.egg-info +%ghost %{_sysconfdir}/bash_completion.d/django_bash_completion.sh +%{_sysconfdir}/bash_completion.d/django_bash_completion-%{py_ver}.sh + +%changelog diff --git a/rpmlintrc b/rpmlintrc new file mode 100644 index 0000000..e8796ac --- /dev/null +++ b/rpmlintrc @@ -0,0 +1,5 @@ +addFilter("file-not-in-%lang") +# Empty model.py files should be kept around: +addFilter("zero-length") +# Bash completion isn't config: +addFilter("non-conffile-in-etc /etc/bash_completion.d/django_bash_completion*")