--- python-glpk-0.1.16.orig/debian/dirs +++ python-glpk-0.1.16/debian/dirs @@ -0,0 +1,2 @@ +usr/share/doc/python-glpk +usr/share/doc/python-glpk/examples --- python-glpk-0.1.16.orig/debian/docs +++ python-glpk-0.1.16/debian/docs @@ -0,0 +1 @@ +readme.txt --- python-glpk-0.1.16.orig/debian/control +++ python-glpk-0.1.16/debian/control @@ -0,0 +1,25 @@ +Source: python-glpk +Section: math +Priority: optional +Maintainer: Jan Alonzo +Uploaders: Debian Python Modules Team +Build-Depends: debhelper (>= 5.0.38), python-support (>= 0.6), python-all-dev (>= 2.4-1), swig, libglpk-dev (>= 4.16) +Standards-Version: 3.7.2 + +Package: python-glpk +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends} +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Python bindings to the GNU Linear Programming Kit + GLPK (GNU Linear Programming Kit) is intended for solving large-scale + linear programming (LP), mixed integer programming (MIP), and other + related problems. It is a set of routines written in ANSI C and + organized in the form of a callable library. + . + GLPK supports the GNU MathProg language, which is a subset of the + AMPL language. GLPK also supports the standard MPS and LP formats. + . + This is the python bindings to GLPK. + . + Homepage: http://www.ncc.up.pt/~jpp/code/python-glpk/ --- python-glpk-0.1.16.orig/debian/rules +++ python-glpk-0.1.16/debian/rules @@ -0,0 +1,63 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +PYVERS=$(shell pyversions -vr) +DEB_DESTDIR=$(CURDIR)/debian/python-glpk + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +clean: + dh_testdir + dh_testroot + #rm -rf dist build + $(MAKE) clean + find . -name '*\.pyc' -exec rm '{}' \; + rm -f *-stamp build-ext-* + dh_clean + +glpkpi_wrap.c: + swig -python glpkpi.i + +build: build-stamp +build-stamp: $(PYVERS:%=build-ext-%) + touch $@ + +build-ext-%: glpkpi_wrap.c + dh_testdir + install -d $(DEB_DESTDIR)/usr/lib/python$*/site-packages/ + $(CC) $(CFLAGS) -c -fPIC glpkpi_wrap.c glpkpi.c -DHAVE_CONFIG_H -I/usr/include/python$* -I/usr/lib/python$*/config + $(CC) $(CFLAGS) -shared glpkpi.o glpkpi_wrap.o -lm -lglpk -o $(DEB_DESTDIR)/usr/lib/python$*/site-packages/_glpkpi.so + touch $@ + +install: install-stamp +install-stamp: build-stamp + install -d $(DEB_DESTDIR)/usr/share/python-support/python-glpk + install -m 0644 *.py $(DEB_DESTDIR)/usr/share/python-support/python-glpk/ + +binary-indep: + +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_pysupport -a + dh_strip -a + dh_compress -a -X.py + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install configure --- python-glpk-0.1.16.orig/debian/watch +++ python-glpk-0.1.16/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.ncc.up.pt/~jpp/code/python-glpk python-glpk-(.*)\.tgz --- python-glpk-0.1.16.orig/debian/changelog +++ python-glpk-0.1.16/debian/changelog @@ -0,0 +1,5 @@ +python-glpk (0.1.16-1) unstable; urgency=low + + * Initial release (Closes: #400690) + + -- Jan Alonzo Sun, 05 Jun 2007 14:32:28 +0200 --- python-glpk-0.1.16.orig/debian/pyversions +++ python-glpk-0.1.16/debian/pyversions @@ -0,0 +1 @@ +2.4- --- python-glpk-0.1.16.orig/debian/compat +++ python-glpk-0.1.16/debian/compat @@ -0,0 +1 @@ +5 --- python-glpk-0.1.16.orig/debian/pycompat +++ python-glpk-0.1.16/debian/pycompat @@ -0,0 +1 @@ +2 --- python-glpk-0.1.16.orig/debian/copyright +++ python-glpk-0.1.16/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Jan Alonzo on +Fri, 16 Mar 2007 20:03:20 +1100. + +It was downloaded from http://www.ncc.up.pt/~jpp/code/python-glpk + +Upstream Author: Joao Pedro Pedroso + +Copyright (C) 2005-2007, Joao Pedro Pedroso + +Copyright: + + 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 + +The Debian packaging is (C) 2007, Jan Alonzo and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- python-glpk-0.1.16.orig/debian/examples +++ python-glpk-0.1.16/debian/examples @@ -0,0 +1,5 @@ +examples/* +examples/example.mod +examples/example.mps +examples/example.py +examples/example_refman.py