# HG changeset patch # User Michael Schloh von Bennewitz # Date 1297876631 -3600 # Node ID b6aedb07bed73d5b930d221f5a223cbe3f52c640 # Parent fbf6cb91be092a94fb21300246815e70ff3d7a97 Import new package spec for introduction into repository. diff -r fbf6cb91be09 -r b6aedb07bed7 python-django/python-django.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-django/python-django.spec Wed Feb 16 18:17:11 2011 +0100 @@ -0,0 +1,86 @@ +## +## python-django.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2011 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package versions +%define V_python 2.5 +%define V_major 1.2 +%define V_minor 5 + +# package information +Name: python-django +Summary: Python Web Framework +URL: http://www.djangoproject.com/ +Vendor: Django Software Foundation +Packager: Michael Schloh von Bennewitz +Distribution: Michael Schloh von Bennewitz +Class: BASE +Group: Language +License: BSD +Version: %{V_major}.%{V_minor} +Release: 20110200 + +# list of sources +Source0: http://media.djangoproject.com/releases/%{V_major}/Django-%{version}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, python >= %{V_python} +PreReq: OpenPKG, openpkg >= 20060823, python >= %{V_python} +AutoReq: no +AutoReqProv: no + +%description + Developed by a fast moving online news operation, Django was + designed to handle two challenges: the intensive deadlines of + a newsroom and the stringent requirements of the experienced + Web developers who wrote it. It lets you build high performance, + elegant Web applications quickly. + +%track + prog python-django = { + version = %{V_major}.%{V_minor} + url = http://media.djangoproject.com/releases/%{V_major} + regex = Django-(__VER__)\.tar\.gz + } + +%prep + %setup -q -n Django-%{version} + +%build + +%install + rm -rf $RPM_BUILD_ROOT + ( cd django-%{version} + %{l_prefix}/bin/python \ + setup.py install \ + --root=$RPM_BUILD_ROOT \ + --prefix=%{l_prefix} + ) || exit $? + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT +