Group :: Development/Python
RPM: python-module-django
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define version 0.95.1
%define release alt1
%setup_python_module django
Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Name: %packagename
Version: %version
Release: %release
Source0: %modulename-%version.tar
License: BSD
Group: Development/Python
BuildArch: noarch
URL: http://www.djangoproject.com/
Provides: Django = %version-%release
BuildPreReq: %py_dependencies setuptools
%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: PostgreSQL support for Django. (via psycopg)
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: PostgreSQL support for Django. (via psycopg2)
Group: Development/Python
Requires: %name = %version-%release
%py_requires pysqlite2
%description dbbackend-sqlite3
%summary
%prep
%setup -q -n %modulename-%version
%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
%files -f INSTALLED_FILES
%defattr(-,root,root)
%dir %python_sitelibdir/%modulename
%exclude %python_sitelibdir/%modulename/core/handler.py*
%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/handler.py*
%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
…
Full changelog you can see here
%define release alt1
%setup_python_module django
Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Name: %packagename
Version: %version
Release: %release
Source0: %modulename-%version.tar
License: BSD
Group: Development/Python
BuildArch: noarch
URL: http://www.djangoproject.com/
Provides: Django = %version-%release
BuildPreReq: %py_dependencies setuptools
%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: PostgreSQL support for Django. (via psycopg)
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: PostgreSQL support for Django. (via psycopg2)
Group: Development/Python
Requires: %name = %version-%release
%py_requires pysqlite2
%description dbbackend-sqlite3
%summary
%prep
%setup -q -n %modulename-%version
%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
%files -f INSTALLED_FILES
%defattr(-,root,root)
%dir %python_sitelibdir/%modulename
%exclude %python_sitelibdir/%modulename/core/handler.py*
%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/handler.py*
%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
…
Full changelog you can see here