[Python-modules-commits] r3685 - in /packages/python-pycg/trunk/debian: ./ changelog compat control copyright patches/ patches/00list patches/01_fix_makefile.dpatch patches/02_fix_setup.py.dpatch rules watch
morph-guest at users.alioth.debian.org
morph-guest at users.alioth.debian.org
Sun Nov 18 21:18:09 UTC 2007
Author: morph-guest
Date: Sun Nov 18 21:18:09 2007
New Revision: 3685
URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=3685
Log:
[svn-inject] Applying Debian modifications to trunk
Added:
packages/python-pycg/trunk/debian/ (with props)
packages/python-pycg/trunk/debian/changelog
packages/python-pycg/trunk/debian/compat
packages/python-pycg/trunk/debian/control
packages/python-pycg/trunk/debian/copyright
packages/python-pycg/trunk/debian/patches/
packages/python-pycg/trunk/debian/patches/00list
packages/python-pycg/trunk/debian/patches/01_fix_makefile.dpatch (with props)
packages/python-pycg/trunk/debian/patches/02_fix_setup.py.dpatch (with props)
packages/python-pycg/trunk/debian/rules (with props)
packages/python-pycg/trunk/debian/watch
Propchange: packages/python-pycg/trunk/debian/
------------------------------------------------------------------------------
mergeWithUpstream = 1
Added: packages/python-pycg/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/changelog?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/changelog (added)
+++ packages/python-pycg/trunk/debian/changelog Sun Nov 18 21:18:09 2007
@@ -1,0 +1,6 @@
+python-pycg (0.14.1-1) UNRELEASED; urgency=low
+
+ * Initial release (Closes: #446791)
+ * TODO: copyright: how to identify copyright years??
+
+ -- Sandro Tosi <matrixhasu at gmail.com> Sun, 18 Nov 2007 19:13:04 +0100
Added: packages/python-pycg/trunk/debian/compat
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/compat?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/compat (added)
+++ packages/python-pycg/trunk/debian/compat Sun Nov 18 21:18:09 2007
@@ -1,0 +1,1 @@
+5
Added: packages/python-pycg/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/control?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/control (added)
+++ packages/python-pycg/trunk/debian/control Sun Nov 18 21:18:09 2007
@@ -1,0 +1,19 @@
+Source: python-pycg
+Section: python
+Priority: extra
+Maintainer: Sandro Tosi <matrixhasu at gmail.com>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 5), python-central (>= 0.5.6), python, dpatch, python-all-dev, swig, nvidia-cg-toolkit
+Standards-Version: 3.7.2
+Homepage: http://www.cs.lth.se/home/Calle_Lejdfors/pygpu/
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-pycg/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/?op=log
+XS-Python-Version: all
+
+Package: python-pycg
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, nvidia-cg-toolkit
+XB-Python-Version: ${python:Versions}
+Provides: ${python:Provides}
+Description: nVidia Cg driver binding for Python
+ The package contains a Python wrapper for nVidia Cg Library.
Added: packages/python-pycg/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/copyright?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/copyright (added)
+++ packages/python-pycg/trunk/debian/copyright Sun Nov 18 21:18:09 2007
@@ -1,0 +1,57 @@
+This package was debianized by Sandro Tosi <matrixhasu at gmail.com> on
+Mon, 29 Oct 2007 23:30:27 +0100.
+
+It was downloaded from http://www.cs.lth.se/home/Calle_Lejdfors/pygpu/
+
+Upstream Author:
+
+ Calle Lejdfors <calle.lejdfors at cs.lth.se>
+
+Copyright:
+
+ <Copyright (C) YYYY Chuck Mason <cmason at cs.fsu.edu>
+ <Copyright (C) YYYY Calle Lejdfors <calle.lejdfors at cs.lth.se>
+
+License:
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+On a Debian system the complete text of the GNU General Public License
+can be found in the file `/usr/share/common-licenses/GPL-2'
+
+The Debian packaging is (C) 2007, Sandro Tosi <matrixhasu at gmail.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+From an upstream note:
+Although a little confused with licensing for the software, I did
+re-write most of it, yet a good portion of the media comes from
+NVIDIA. So as per nvidia's request, this statement must be included:
+
+ * THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
+ * WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR ITS USE AND OPERATION
+ * EITHER ALONE OR IN COMBINATION WITH OTHER PRODUCTS.
+ *
+ *
+ *
+ * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
+ * EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, LOST
+ * PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY OUT OF THE USE,
+ * REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE NVIDIA SOFTWARE,
+ * HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING
+ * NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
Added: packages/python-pycg/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/patches/00list?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/patches/00list (added)
+++ packages/python-pycg/trunk/debian/patches/00list Sun Nov 18 21:18:09 2007
@@ -1,0 +1,2 @@
+01_fix_makefile
+02_fix_setup.py
Added: packages/python-pycg/trunk/debian/patches/01_fix_makefile.dpatch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/patches/01_fix_makefile.dpatch?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/patches/01_fix_makefile.dpatch (added)
+++ packages/python-pycg/trunk/debian/patches/01_fix_makefile.dpatch Sun Nov 18 21:18:09 2007
@@ -1,0 +1,67 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_fix_makefile.dpatch by Sandro Tosi <matrixhasu at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad python-pycg-0.14.1~/Makefile python-pycg-0.14.1/Makefile
+--- python-pycg-0.14.1~/Makefile 2007-11-17 17:06:50.891850595 +0100
++++ python-pycg-0.14.1/Makefile 2007-11-17 17:07:14.329186212 +0100
+@@ -1,24 +1,32 @@
+-
+-include $(shell uname -s).conf
+-
+-all: _Cg.$(SOEXT)
+-
+-cg_wrap.c: cg.i *.i
+- $(SWIG) -python $(INCLUDES) $<
+-
+-_Cg.$(SOEXT): cg_wrap.c
+- $(LINK) -o $@ $^ $(INCLUDES) $(LIBS)
+-
+-
+-install: all
+- mkdir Cg
+- cp Cg.py Cg/__init__.py
+- python setup.py $@
+- rm -rf Cg
+-
+-clean:
+- rm -f _Cg.$(SOEXT) Cg.pyc Cg.py cg_wrap.c
+- rm -rf build dist
+-
+-.PHONY: clean dist
+-
++#include $(shell uname -s).conf
++
++INCLUDES=-I/usr/include/$(PYTHON) -Iinclude -I.
++SWIG=swig
++LIBS=-lCgGL -lCg -lGL -l$(PYTHON)
++SOEXT=so
++COMPILE=gcc -fpic -g -Wall
++LINK=gcc -fpic -g -Wall -shared
++
++builddir=build
++
++all: _Cg.$(SOEXT)
++
++cg_wrap.c: cg.i *.i
++ $(SWIG) -python $(INCLUDES) $<
++
++_Cg.$(SOEXT): cg_wrap.c
++ $(LINK) -o $@ $^ $(INCLUDES) $(LIBS)
++
++
++install: all
++ mkdir Cg
++ cp Cg.py Cg/__init__.py
++ python setup.py $@
++ rm -rf Cg
++
++clean:
++ rm -f _Cg.$(SOEXT) Cg.pyc Cg.py cg_wrap.c
++ rm -rf build dist
++
++.PHONY: clean dist
++
Propchange: packages/python-pycg/trunk/debian/patches/01_fix_makefile.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/python-pycg/trunk/debian/patches/02_fix_setup.py.dpatch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/patches/02_fix_setup.py.dpatch?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/patches/02_fix_setup.py.dpatch (added)
+++ packages/python-pycg/trunk/debian/patches/02_fix_setup.py.dpatch Sun Nov 18 21:18:09 2007
@@ -1,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_fix_setup.py.dpatch by Sandro Tosi <matrixhasu at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad python-pycg-0.14.1~/setup.py python-pycg-0.14.1/setup.py
+--- python-pycg-0.14.1~/setup.py 2006-08-14 12:55:19.000000000 +0200
++++ python-pycg-0.14.1/setup.py 2007-11-17 17:15:29.901427263 +0100
+@@ -2,10 +2,10 @@
+ from distutils.core import setup,Extension
+ import os
+
+-if os.name == 'nt':
+- data_files=[('Lib/site-packages/Cg', ['_Cg.dll', 'cg.dll', 'cggl.dll'])]
+-else:
+- data_files=[('lib/python2.4/site-packages/Cg', ['_Cg.so', 'libCg.so', 'libCgGL.so'])]
++#if os.name == 'nt':
++# data_files=[('Lib/site-packages/Cg', ['_Cg.dll', 'cg.dll', 'cggl.dll'])]
++#else:
++# data_files=[('lib/python2.4/site-packages/Cg', ['_Cg.so', 'libCg.so', 'libCgGL.so'])]
+
+ setup(name='PyCg',
+ version='0.14.1',
+@@ -14,6 +14,6 @@
+ author_email='calle.lejdfors at cs.lth.se',
+ url='http://graphics.cs.lth.se/pyxf',
+ packages=['Cg'],
+- ext_modules=[],
+- data_files=data_files)
++ ext_modules=[])
++ #data_files=data_files)
+
Propchange: packages/python-pycg/trunk/debian/patches/02_fix_setup.py.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/python-pycg/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/rules?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/rules (added)
+++ packages/python-pycg/trunk/debian/rules Sun Nov 18 21:18:09 2007
@@ -1,0 +1,85 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+PYVERS=$(shell pyversions -vr)
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CXXFLAGS += -O0
+else
+ CXXFLAGS += -O2
+endif
+export CXXFLAGS
+
+
+build-ext-%:
+ dh_testdir
+ [ ! -d build ] || rm -rf build
+ mkdir -p debian/python-pycg/usr/lib/python$*/site-packages/
+
+ $(MAKE) PYTHON=python$* clean
+ $(MAKE) PYTHON=python$*
+ dh_install _Cg.so /usr/lib/python$*/site-packages/
+
+ # workaround to let think libpython<VER> is local, so that dh_shlibdebs does not generate
+ # dependencies on them, but only ${python:Depends} will
+ echo libpython$* 1.0 >> debian/shlibs.local
+ touch $@
+
+build: build-stamp
+build-stamp: patch-stamp $(PYVERS:%=build-ext-%)
+ dh_testdir
+ touch $@
+
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ [ ! -d build ] || rm -rf build
+ [ ! -d dist ] || rm -rf dist
+ [ ! -d Cg ] || rm -rf Cg
+ rm -f *.o *.so Cg.py cg_wrap.c
+ rm -f build-ext-* build-stamp
+ -rm debian/shlibs.local
+ dh_clean
+
+
+install:
+ dh_testdir
+ dh_testroot
+ dh_installdirs
+
+ mkdir Cg
+ cp Cg.py Cg/__init__.py
+
+ python setup.py install --root=$(CURDIR)/debian/python-pycg
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs README
+ dh_installexamples
+ dh_pycentral
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
Propchange: packages/python-pycg/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: packages/python-pycg/trunk/debian/watch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-pycg/trunk/debian/watch?rev=3685&op=file
==============================================================================
--- packages/python-pycg/trunk/debian/watch (added)
+++ packages/python-pycg/trunk/debian/watch Sun Nov 18 21:18:09 2007
@@ -1,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://www.cs.lth.se/home/Calle_Lejdfors/pygpu/ PyCg-([\d.]*)\.tar\.gz
More information about the Python-modules-commits
mailing list