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