------------------------------------------------------------
revno: 85
committer: Dmitrijs Ledkovs <[email protected]>
branch nick: sword
timestamp: Tue 2010-11-30 23:19:12 +0000
message:
  Create python-sword package
added:
  debian/python-sword.install
modified:
  debian/changelog
  debian/control
  debian/rules


--
lp:~pkgcrosswire/sword/main
https://code.launchpad.net/~pkgcrosswire/sword/main

Your team Crosswire Packaging Team is subscribed to branch 
lp:~pkgcrosswire/sword/main.
To unsubscribe from this branch go to 
https://code.launchpad.net/~pkgcrosswire/sword/main/+edit-subscription
=== modified file 'debian/changelog'
--- debian/changelog	2010-11-30 19:21:51 +0000
+++ debian/changelog	2010-11-30 23:19:12 +0000
@@ -10,8 +10,9 @@
   * Add .bzr-builddeb/default.conf to facilitate building from bzr
   * Using dpkg-buildflags (if available)
   * Make CMake honour environmental variables
+  * Create python-sword package
 
- -- Dmitrijs Ledkovs <[email protected]>  Tue, 30 Nov 2010 19:20:20 +0000
+ -- Dmitrijs Ledkovs <[email protected]>  Tue, 30 Nov 2010 23:06:43 +0000
 
 sword (1.6.1+dfsg-2) unstable; urgency=low
 

=== modified file 'debian/control'
--- debian/control	2010-11-30 13:57:46 +0000
+++ debian/control	2010-11-30 23:19:12 +0000
@@ -1,6 +1,10 @@
 Source: sword
 Build-Depends: quilt (>= 0.46-7~),
                debhelper (>= 7.0.50~),
+               cmake,
+               swig,
+               python-all-dev,
+               python-support,
                libz-dev,
                pkg-config,
                libcurl4-gnutls-dev,
@@ -77,3 +81,16 @@
  bible browsing and searching. This tool is used mostly only for
  library testing. Nicer front-ends are Xiphos (Gtk), Bibletime (Qt)
  and others.
+
+Package: python-sword
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Description: SWIG Python bindings to libsword
+ The SWORD Project is an open source, cross-platform (Linux, Windows, Solaris,
+ MacOSX etc.) API/library for Bible software with a constantly growing list 
+ of front-ends (GUI, textmode, web-based, etc.) and a library of over 200 
+ text modules.
+ .
+ This package contains the SWIG bindings to develop applications in Python that
+ use the SWORD library.

=== added file 'debian/python-sword.install'
--- debian/python-sword.install	1970-01-01 00:00:00 +0000
+++ debian/python-sword.install	2010-11-30 23:19:12 +0000
@@ -0,0 +1,1 @@
+usr/lib/python*

=== modified file 'debian/rules'
--- debian/rules	2010-11-30 19:21:51 +0000
+++ debian/rules	2010-11-30 23:19:12 +0000
@@ -2,6 +2,8 @@
 DH_VERBOSE := 1
 ppa:=$(shell sed -n "1s/.*~.*/yes/p" debian/changelog)
 ver:=$(shell dpkg-parsechangelog | sed -nr "2s/Version: (.*)-.*/\1/p")
+bd :=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+py :=obj-$(bd)/bindings/swig/python
 
 WFLAGS   := -Wall -Werror
 ifneq (,$(shell dpkg-buildflags --version))
@@ -32,9 +34,14 @@
 debian/man/%.1: debian/man/%.1.pod
 	pod2man --release="SWORD $(ver)" --center "Sword Module Utilities" $< > $@
 override_dh_auto_build: $(basename $(wildcard debian/man/*.pod))
-	dh_auto_build --parallel
+	dh_auto_build -Scmake --parallel
+	CFLAGS="$(CFLAGS) -Wno-error" dh_auto_configure -Spython_distutils -D$(py)
+	CFLAGS="$(CFLAGS) -Wno-error" dh_auto_build -Spython_distutils -D$(py)
 override_dh_auto_test:
 	$(shell cd tests/testsuite && ./runall.sh 1>&2)
+override_dh_auto_install:
+	dh_auto_install -Scmake
+	CFLAGS="$(CFLAGS) -Wno-error" dh_auto_install -Spython_distutils -D$(py)
 override_dh_install:
 	chrpath -d debian/tmp/usr/bin/* debian/tmp/usr/lib/*so*
 	dh_install --list-missing

_______________________________________________
Pkg-crosswire-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-crosswire-devel

Reply via email to