Commit 4006c454 authored by steffeng's avatar steffeng
Browse files

cleanup; build for python 2.5 and 2.4

parent e8b9a60e
python-glue (1.18-6lscsoft3) unstable; urgency=low
* CFLAGS fix
-- Steffen Grunewald <steffen.grunewald@aei.mpg.de> Thu, 20 Nov 2008 14:30:00 +0100
python-glue (1.18-6lscsoft2) unstable; urgency=low
* enable compilation of site-packages
-- Steffen Grunewald <steffen.grunewald@aei.mpg.de> Thu, 20 Nov 2008 14:00:00 +0100
python-glue (1.18-6lscsoft1) unstable; urgency=low
* build site-packages with both python2.5 and python2.4
* edit shebangs of bin/ scripts to invoke python2.4
* depend on python2.4, recommend python2.5
-- Steffen Grunewald <steffen.grunewald@aei.mpg.de> Thu, 20 Nov 2008 12:30:00 +0100
python-glue (1.18-4lscsoft2) unstable; urgency=low
* python2.4 (build) requirement revoked
-- Steffen Grunewald <steffen.grunewald@aei.mpg.de> Wed, 12 Nov 2008 10:25:00 +0100
python-glue (1.18-4lscsoft1) unstable; urgency=low
* package renamed to python-glue, build using python2.4
-- Steffen Grunewald <steffen.grunewald@aei.mpg.de> Wed, 12 Nov 2008 10:00:00 +0100
python-glue (1.18-3lscsoft2) unstable; urgency=low
* prefix=/opt/lscsoft/glue, some fixes
......
Source: python-glue
Section: lscsoft
Priority: optional
Maintainer: Kipp Cannon <kipp@gravity.phys.uwm.edu>
Build-Depends: debhelper (>= 5.0), python-dev (>= 2.4)
Standards-Version: 3.6.0
Maintainer: Steffen Grunewald <steffen.grunewald@aei.mpg.de>
Build-Depends: debhelper (>= 5), python2.4-dev, python2.5-dev
Standards-Version: 3.7.2
Package: python-glue
Architecture: all
Depends: python (>= 2.4)
Recommends: python-numpy (>= 1.0), python-xml, python-pysqlite2 (>= 2.2), libsqlite3-0 (>= 3.3), pyrxp | python-pyrxp
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python2.4 (>= 2.4)
Recommends: python-numpy (>= 1.0), python-xml, python-pysqlite2 (>= 2.2), libsqlite3-0 (>= 3.3), pyrxp | python-pyrxp, python2.5
Replaces: glue
Conflicts: glue
Description: Grid LSC User Environment
Glue (Grid LSC User Environment) is a suite of python modules and programs
to allow users to run LSC codes on the grid.
Description: The Grid LSC User Environment
Glue (Grid LSC User Environment) is a suite of python modules and programs to
allow users to run LSC codes on the grid.
This package was debianized by Kipp Cannon <kipp@gravity.phys.uwm.edu> on
2005-10-27.
This package was re-debianized by Steffen Grunewald <steffen.grunewald@aei.mpg.de> on
Wed, 10 Oct 2007 21:38:00 +0200, and later merged with Kipp's work repeatedly.
Released versions can be downloaded from
http://www.lsc-group.phys.uwm.edu/daswg/download/software/
CVS versions are synchronized with the corresponding CVS.
Upstream Author(s): The LIGO Scientific Collaboration
Copyright: GPL
License:
The Debian packaging is (C) 2007, Steffen Grunewald <steffen.grunewald@aei.mpg.de> and
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
......@@ -34,9 +34,10 @@ build: build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
# $(MAKE)
python setup.py build
# moved to install
#python setup.py build
touch $@
......@@ -45,9 +46,9 @@ clean:
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
# -$(MAKE) clean
rm -rf build
-python2.4 setup.py clean --all
-rm -rf build
dh_clean
......@@ -59,17 +60,38 @@ install: build
# Add here commands to install the package into debian/$(PACKAGE).
# $(MAKE) DESTDIR=$(CURDIR)/debian/$(PACKAGE) install
python setup.py install \
--root=$(CURDIR)/debian/$(PACKAGE) \
--prefix=$(PREFIX) \
--record=debian/$(PACKAGE)/$(PREFIX)/share/doc/glue/INSTALLED_FILES
# 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
mkdir -p $(CURDIR)/debian/$(PACKAGE)/$(PREFIX)/share/doc/glue
set -e; \
for v in 2.5 2.4; do \
CFLAGS="$(CFLAGS)" \
python$$v setup.py build; \
CFLAGS="$(CFLAGS)" \
python$$v setup.py install \
--root=$(CURDIR)/debian/$(PACKAGE) \
--prefix=$(PREFIX) \
--record=$(CURDIR)/debian/$(PACKAGE)/$(PREFIX)/share/doc/glue/INSTALLED_FILES; \
ls -lR $(CURDIR)/debian/$(PACKAGE)/$(PREFIX); \
python$$v setup.py clean --all; \
done
# python setup.py install \
# --root=$(CURDIR)/debian/$(PACKAGE) \
# --prefix=$(PREFIX) \
# --record=$(CURDIR)/debian/$(PACKAGE)/$(PREFIX)/share/doc/glue/INSTALLED_FILES
set -e; \
for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
if head -n1 $$i | grep -q '^#!' ; then \
chmod +x $$i; \
fi ; \
done
set -e; \
for i in `find debian/$(PACKAGE)/$(PREFIX)/bin -type f`; do \
echo $$i; \
if head -n1 $$i | grep -q '^#!.*python$$' ; then \
sed -i '1s/python$$/python2.4/' $$i; \
fi ; \
done
binary: build install
dh_testdir
dh_testroot
dh_installchangelogs
......@@ -92,12 +114,11 @@ binary-arch: build install
dh_compress
dh_fixperms
# dh_perl
# dh_makeshlibs
dh_makeshlibs
dh_installdeb
dh_shlibdeps
LD_LIBRARY_PATH=$(PREFIX)/lib dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
.PHONY: build clean binary install configure
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment