Merge lp:~pkgcrosswire/sword/dh-style into lp:sword/debian

Proposed by Dimitri John Ledkov
Status: Merged
Merge reported by: Dimitri John Ledkov
Merged at revision: not available
Proposed branch: lp:~pkgcrosswire/sword/dh-style
Merge into: lp:sword/debian
Diff against target: 260 lines (+97/-89)
10 files modified
debian/changelog (+8/-0)
debian/clean (+1/-0)
debian/compat (+1/-1)
debian/dfsg.sh (+20/-0)
debian/diatheke.manpages (+1/-1)
debian/files.non-dfsg (+7/-0)
debian/libsword-dev.install (+0/-1)
debian/libsword8.manpages (+12/-12)
debian/rules (+45/-72)
debian/watch (+2/-2)
To merge this branch: bzr merge lp:~pkgcrosswire/sword/dh-style
Reviewer Review Type Date Requested Status
Sword Developers Pending
Review via email: mp+26079@code.launchpad.net

Description of the change

Complete ravamp of libsword packaging

* debhelper 7 with dh tiny rules style

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-03-22 19:35:43 +0000
3+++ debian/changelog 2010-05-26 17:17:27 +0000
4@@ -1,3 +1,11 @@
5+sword (1.6.1+dfsg-3) UNRELEASED; urgency=low
6+
7+ [ Dmitrijs Ledkovs ]
8+ * Revamped debian/rules to use dh tiny rules style
9+ * Raised compat to debhelper 7 and change associated packaging files
10+
11+ -- Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com> Wed, 26 May 2010 17:11:22 +0000
12+
13 sword (1.6.1+dfsg-2) unstable; urgency=low
14
15 [ Dmitrijs Ledkovs ]
16
17=== added file 'debian/clean'
18--- debian/clean 1970-01-01 00:00:00 +0000
19+++ debian/clean 2010-05-26 17:17:27 +0000
20@@ -0,0 +1,1 @@
21+*.1
22
23=== modified file 'debian/compat'
24--- debian/compat 2009-01-27 01:27:16 +0000
25+++ debian/compat 2010-05-26 17:17:27 +0000
26@@ -1,1 +1,1 @@
27-5
28+7
29
30=== added file 'debian/dfsg.sh'
31--- debian/dfsg.sh 1970-01-01 00:00:00 +0000
32+++ debian/dfsg.sh 2010-05-26 17:17:27 +0000
33@@ -0,0 +1,20 @@
34+#!/bin/sh
35+format=`echo $3 | sed "s/\(.*\.\)\(.*\)/\2/"`
36+newname=`echo $3 | sed "s/\(\.orig\)/\+dfsg\1/"`
37+case $format in
38+ gz)
39+ compr=gzip
40+ ;;
41+ bz2)
42+ compr=bzip2
43+ ;;
44+ lzma)
45+ compr=lzma
46+ ;;
47+ xz)
48+ compr=xz
49+ ;;
50+esac
51+$compr -d -c $3 | tar --wildcards --delete `cat debian/files.non-dfsg` | \
52+$compr -9 -f > $newname
53+rm -f $3
54
55=== modified file 'debian/diatheke.manpages'
56--- debian/diatheke.manpages 2009-04-11 21:57:36 +0000
57+++ debian/diatheke.manpages 2010-05-26 17:17:27 +0000
58@@ -1,1 +1,1 @@
59-debian/diatheke.1
60+debian/man/diatheke.1
61
62=== added file 'debian/files.non-dfsg'
63--- debian/files.non-dfsg 1970-01-01 00:00:00 +0000
64+++ debian/files.non-dfsg 2010-05-26 17:17:27 +0000
65@@ -0,0 +1,7 @@
66+*/src/utilfuns/zlib/[a-tv-z]*
67+*/src/utilfuns/zlib/uncompr.c
68+*/include/zlib.h
69+*/src/utilfuns/regex.c
70+*/include/internal/regex/regex.h
71+*/src/utilfuns/win32
72+*/bindings/gsoap/include/stdsoap.h
73
74=== modified file 'debian/libsword-dev.install'
75--- debian/libsword-dev.install 2009-09-08 19:48:21 +0000
76+++ debian/libsword-dev.install 2010-05-26 17:17:27 +0000
77@@ -1,4 +1,3 @@
78 usr/include
79-usr/lib/libsword.so
80 usr/lib/libsword.a
81 usr/lib/pkgconfig
82
83=== modified file 'debian/libsword8.manpages'
84--- debian/libsword8.manpages 2009-04-24 08:10:52 +0000
85+++ debian/libsword8.manpages 2010-05-26 17:17:27 +0000
86@@ -1,13 +1,13 @@
87-imp2gbs.1
88-imp2ld.1
89-imp2vs.1
90-installmgr.1
91-mod2imp.1
92-addld.1
93-mkfastmod.1
94-osis2mod.1
95-tei2mod.1
96-vpl2mod.1
97-vs2osisref.1
98-xml2gbs.1
99+debian/man/imp2gbs.1
100+debian/man/imp2ld.1
101+debian/man/imp2vs.1
102+debian/man/installmgr.1
103+debian/man/mod2imp.1
104+debian/man/addld.1
105+debian/man/mkfastmod.1
106+debian/man/osis2mod.1
107+debian/man/tei2mod.1
108+debian/man/vpl2mod.1
109+debian/man/vs2osisref.1
110+debian/man/xml2gbs.1
111
112
113=== added directory 'debian/man'
114=== renamed file 'debian/addld.1.pod' => 'debian/man/addld.1.pod'
115=== renamed file 'debian/diatheke.1' => 'debian/man/diatheke.1'
116=== renamed file 'debian/imp2gbs.1.pod' => 'debian/man/imp2gbs.1.pod'
117=== renamed file 'debian/imp2ld.1.pod' => 'debian/man/imp2ld.1.pod'
118=== renamed file 'debian/imp2vs.1.pod' => 'debian/man/imp2vs.1.pod'
119=== renamed file 'debian/installmgr.1.pod' => 'debian/man/installmgr.1.pod'
120=== renamed file 'debian/mkfastmod.1.pod' => 'debian/man/mkfastmod.1.pod'
121=== renamed file 'debian/mod2imp.1.pod' => 'debian/man/mod2imp.1.pod'
122=== renamed file 'debian/osis2mod.1.pod' => 'debian/man/osis2mod.1.pod'
123=== renamed file 'debian/tei2mod.1.pod' => 'debian/man/tei2mod.1.pod'
124=== renamed file 'debian/vpl2mod.1.pod' => 'debian/man/vpl2mod.1.pod'
125=== renamed file 'debian/vs2osisref.1.pod' => 'debian/man/vs2osisref.1.pod'
126=== renamed file 'debian/xml2gbs.1.pod' => 'debian/man/xml2gbs.1.pod'
127=== modified file 'debian/rules'
128--- debian/rules 2010-03-22 19:17:56 +0000
129+++ debian/rules 2010-05-26 17:17:27 +0000
130@@ -1,74 +1,47 @@
131 #!/usr/bin/make -f
132-include /usr/share/cdbs/1/rules/debhelper.mk
133-include /usr/share/cdbs/1/class/autotools.mk
134-include /usr/share/cdbs/1/rules/utils.mk
135-include /usr/share/cdbs/1/rules/patchsys-quilt.mk
136-
137-DEB_DH_INSTALL_SOURCEDIR := debian/tmp
138-DEB_CONFIGURE_EXTRA_FLAGS := --with-zlib --with-clucene=/usr --with-icu --enable-tests --enable-debug --without-internalregex
139-DEB_DH_MAKESHLIBS_ARGS_libsword8 := -V"libsword8 (>= 1.6)"
140-DEB_SHLIBDEPS_INCLUDE_libsword8 := debian/tmp/usr/lib
141-DEB_SHLIBDEPS_INCLUDE_diatheke := debian/libsword8/usr/lib
142-DEB_DBG_PACKAGE_libsword8 := libsword-dbg
143-#CppUnitTestSuite - currently broken
144-#DEB_MAKE_CHECK_TARGET := check
145-DEB_OPT_FLAG := -g -O3 -Wall -Werror
146-DEB_INSTALL_CHANGELOGS_ALL = ChangeLog
147-
148-build/libsword8::
149- #Running Shell based Testsuite
150+WFLAGS := -Wall -Werror
151+CFLAGS = -g $(WFLAGS)
152+CXXFLAGS = -g $(WFLAGS)
153+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
154+CFLAGS += -O0
155+CXXFLAGS += -O0
156+else
157+CFLAGS += -O3
158+CXXFLAGS += -O3
159+endif
160+ppa:=$(shell sed -n "1s/.*~.*/yes/p" debian/changelog)
161+
162+%:
163+ dh --with quilt $@
164+override_dh_auto_configure:
165+ dh_auto_configure -- \
166+ --enable-tests \
167+ --enable-debug
168+debian/man/%.1: debian/man/%.1.pod
169+ pod2man --release=$$VERSION --center "" $< > $@
170+override_dh_auto_build: $(basename $(wildcard debian/man/*.pod))
171+ dh_auto_build --parallel
172+override_dh_auto_test:
173 $(shell cd tests/testsuite && ./runall.sh 1>&2)
174- # The next three rules use chrpath to remove unwanted rpath info
175- # from the compiled binaries when they are built on amd64.
176- chrpath -d $(CURDIR)/lib/.libs/libsword.so*
177- chrpath -d $(CURDIR)/utilities/.libs/*
178- chrpath -d $(CURDIR)/utilities/diatheke/.libs/diatheke
179-
180- for file in `ls debian/*.pod`;\
181- do\
182- base=`basename $$file .pod`;\
183- name=`basename $$base .1 | tr '[a-z]' '[A-Z]'`;\
184- pod2man --release=$$VERSION --center "" -n $$name $$file > $$base;\
185- done
186-
187-binary: list-missing
188- #checking for missing files
189-clean/::
190- rm -f *.1
191-
192-# Makefile arcanery warning:
193-# $(dir $(_)) gives us the path containing this rules file.
194-# This magic care of Emmet Hickory:
195-# (http://lists.debian.org/debian-devel-games/2008/02/msg00135.html)
196-
197-TEMP_DIR := $(shell mktemp -d)
198-SOURCE_DIR = $(shell ls $(TEMP_DIR) | grep sword- | grep .tar.gz | sed s/.tar.gz//)
199-SOURCE_VER = $(shell echo $(notdir $(SOURCE_DIR)) | sed s/sword-//)
200-
201-download-tarball:
202- uscan --download --package sword --destdir=$(TEMP_DIR) \
203- --no-symlink --upstream-version 0 --watchfile=$(dir $(_))/watch
204- cd $(TEMP_DIR) && tar zxf sword-*.tar.gz
205-
206-remove-unwanted-files: download-tarball
207- # zlib is (mostly) an old copy of the zlib library
208- # Leave only untgz.c which is needed and not part of zlib
209- rm $(TEMP_DIR)/$(SOURCE_DIR)/src/utilfuns/zlib/[a-tv-z]*
210- rm $(TEMP_DIR)/$(SOURCE_DIR)/src/utilfuns/zlib/uncompr.c
211- rm $(TEMP_DIR)/$(SOURCE_DIR)/include/zlib.h
212- # regex.c and regex.h are GNU C library files
213- rm $(TEMP_DIR)/$(SOURCE_DIR)/src/utilfuns/regex.c
214- rm $(TEMP_DIR)/$(SOURCE_DIR)/include/internal/regex/regex.h
215- # src/utilfuns/win32/* are a non-free dirent for Windows
216- rm -r $(TEMP_DIR)/$(SOURCE_DIR)/src/utilfuns/win32
217- # stdsoap.h is non-free
218- rm $(TEMP_DIR)/$(SOURCE_DIR)/bindings/gsoap/include/stdsoap.h
219-
220-repack-source: remove-unwanted-files
221- cd $(TEMP_DIR) && mv $(SOURCE_DIR) $(SOURCE_DIR)+dfsg && \
222- tar zcf sword_$(SOURCE_VER)+dfsg.orig.tar.gz \
223- $(notdir $(SOURCE_DIR)+dfsg)
224-
225-get-orig-source: repack-source
226- mv $(TEMP_DIR)/sword_$(SOURCE_VER)+dfsg.orig.tar.gz $(CURDIR)
227- rm -r $(TEMP_DIR)
228+override_dh_install:
229+ chrpath -d debian/tmp/usr/bin/* debian/tmp/usr/lib/*so*
230+ dh_install --list-missing
231+override_dh_strip:
232+ dh_strip --dbg-package=libsword-dbg
233+override_dh_makeshlibs:
234+ dh_makeshlibs -V"libsword8 (>= 1.6)"
235+override_dh_clean:
236+ dh_clean $(patsubst %.pod, %.1, $(wildcard debian/man/*.pod))
237+
238+MAKEFILE = $(firstword $(MAKEFILE_LIST))
239+SOURCE_DIR = $(dir $(MAKEFILE))/..
240+get-orig-source:
241+ chmod +x $(SOURCE_DIR)/debian/dfsg.sh
242+ cd $(SOURCE_DIR) && uscan --force-download --rename --destdir .
243+
244+override_dh_builddeb:
245+ifeq ($(ppa),)
246+ dh_builddeb
247+else
248+ dh_builddeb -- -Zlzma
249+endif
250
251=== modified file 'debian/watch'
252--- debian/watch 2010-01-22 02:41:29 +0000
253+++ debian/watch 2010-05-26 17:17:27 +0000
254@@ -1,4 +1,4 @@
255 version=3
256 opts=dversionmangle=s/\+dfsg\d*// \
257- http://www.crosswire.org/ftpmirror/pub/sword/source/v([\d\.]+)/sword-(.*)\.tar\.gz
258-
259+ http://www.crosswire.org/ftpmirror/pub/sword/source/v([\d\.]+)/sword-(.*)\.tar\.gz \
260+debian ./debian/dfsg.sh

Subscribers

People subscribed via source and target branches