Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038315
en ru br
Репозитории ALT
5.1: 1.1-alt2.svn11581
4.1: 1.0-alt0.5.M41.1
4.0: 0.95.1-alt1
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-django

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define version 1.0
%define release alt0.5.M41.1
%define origname Django
%setup_python_module django
%add_python_req_skip cx_Oracle

Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Name: %packagename
Version: %version
Release: %release
Source0: %origname-%version.tar.gz
#Source1: ChangeLog.bz2
License: BSD
Group: Development/Python
BuildArch: noarch
URL: http://www.djangoproject.com/
Packager: Andrew Kornilov <hiddenman at altlinux.ru>
Provides: Django = %version-%release

BuildPreReq: %py_dependencies setuptools

# Automatically added by buildreq on Tue Jul 29 2008 (-ba)

BuildRequires: python-module-setuptools python-modules-email python-modules-encodings python-modules-sqlite3 python-modules-xml
BuildRequires: python-modules-ctypes

%description
%summary

%package mod_python
Summary: mod_python support for Django.
Group: Development/Python
Requires: %name = %version-%release
Requires: apache2-mod_python

%description mod_python
%summary

%package dbbackend-mysql
Summary: MySQLSQL support for Django.
Group: Development/Python
Requires: %name = %version-%release
%py_requires MySQLdb

%description dbbackend-mysql
%summary

%package dbbackend-psycopg
Summary: PostgreSQL support for Django. (via psycopg)
Group: Development/Python
Requires: %name = %version-%release
%py_requires psycopg

%description dbbackend-psycopg
%summary

%package dbbackend-psycopg2
Summary: PostgreSQL support for Django. (via psycopg2)
Group: Development/Python
Requires: %name = %version-%release
%py_requires psycopg2

%description dbbackend-psycopg2
%summary

%package dbbackend-sqlite3
Summary: SQLite3 support for Django.
Group: Development/Python
Requires: %name = %version-%release
%py_requires pysqlite2

%description dbbackend-sqlite3
%summary

%prep
%setup  -q -n %origname-%version
#cp %%SOURCE1 ./

%build
%__python setup.py build

%install
mkdir -p %buildroot/%_sysconfdir/bash_completion.d

%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES

install -m 0755 extras/django_bash_completion %buildroot/%_sysconfdir/bash_completion.d/django.sh

# Run tests

export PYTHONPATH="$PYTHONPATH:%buildroot/%python_sitelibdir/"
cat >tests/settings.py << EOF
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'demodb'
ROOT_URLCONF=None
EOF
tests/runtests.py --settings=settings --noinput -v 1
# End tests

%files -f INSTALLED_FILES
%python_sitelibdir/%modulename
%exclude %python_sitelibdir/%modulename/core/handlers/modpython.py*
%exclude %python_sitelibdir/%modulename/contrib/auth/handlers/modpython.py*

%exclude %python_sitelibdir/%modulename/db/backends/mysql/
%exclude %python_sitelibdir/%modulename/db/backends/postgresql/
%exclude %python_sitelibdir/%modulename/db/backends/postgresql_psycopg2/
%exclude %python_sitelibdir/%modulename/db/backends/sqlite3/

%config %_sysconfdir/bash_completion.d/django.sh

%doc docs examples

%files mod_python
%python_sitelibdir/%modulename/core/handlers/modpython.py*
%python_sitelibdir/%modulename/contrib/auth/handlers/modpython.py*

%files dbbackend-mysql
%python_sitelibdir/%modulename/db/backends/mysql/

%files dbbackend-psycopg
%python_sitelibdir/%modulename/db/backends/postgresql/

%files dbbackend-psycopg2
%python_sitelibdir/%modulename/db/backends/postgresql_psycopg2/

%files dbbackend-sqlite3
%python_sitelibdir/%modulename/db/backends/sqlite3/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin