aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/control6
-rwxr-xr-xdebian/rules11
2 files changed, 9 insertions, 8 deletions
diff --git a/debian/control b/debian/control
index 62cb2ec0..d197dcdd 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ DM-Upload-Allowed: yes
Package: bitlbee
Architecture: any
-Depends: ${shlibs:Depends}, adduser, debianutils (>= 1.16), bitlbee-common (= ${source:Version})
+Depends: ${shlibs:Depends}, adduser, debianutils (>= 1.16), bitlbee-common (= ${bee:Version})
Conflicts: bitlbee-libpurple
Replaces: bitlbee-libpurple
Description: An IRC to other chat networks gateway
@@ -20,7 +20,7 @@ Description: An IRC to other chat networks gateway
Package: bitlbee-libpurple
Architecture: any
-Depends: ${shlibs:Depends}, adduser, debianutils (>= 1.16), bitlbee-common (= ${source:Version})
+Depends: ${shlibs:Depends}, adduser, debianutils (>= 1.16), bitlbee-common (= ${bee:Version})
Conflicts: bitlbee
Replaces: bitlbee
Description: An IRC to other chat networks gateway
@@ -48,7 +48,7 @@ Description: An IRC to other chat networks gateway
Package: bitlbee-dev
Architecture: all
-Depends: ${misc:Depends}, bitlbee (>= ${source:Version}), bitlbee (<< ${source:Version}.1~)
+Depends: ${misc:Depends}, bitlbee (>= ${bee:Version}), bitlbee (<< ${bee:Version}.1~)
Description: An IRC to other chat networks gateway
This program can be used as an IRC server which forwards everything you
say to people on other chat networks: Jabber, ICQ, AIM, MSN and Yahoo.
diff --git a/debian/rules b/debian/rules
index 8ccb181b..f2ede2cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,11 +19,11 @@ build: build-stamp
build-stamp:
dh_testdir
- mkdir debian/build-native
+ mkdir -p debian/build-native
ROOT=$$PWD; cd debian/build-native; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent $(BITLBEE_CONFIGURE_FLAGS)
$(MAKE) -C debian/build-native
- mkdir debian/build-libpurple
+ mkdir -p debian/build-libpurple
ROOT=$$PWD; cd debian/build-libpurple; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --purple=1 $(BITLBEE_CONFIGURE_FLAGS)
$(MAKE) -C debian/build-libpurple
@@ -61,7 +61,7 @@ binary-common:
dh_testroot
dh_installdocs --link-doc=bitlbee-common
- dh_installchangelogs
+ dh_installchangelogs doc/CHANGES
dh_installexamples
dh_installdebconf
dh_installinit
@@ -79,9 +79,10 @@ ifeq ($(DH_OPTIONS),-a)
endif
dh_shlibdeps
ifdef BITLBEE_VERSION
- dh_gencontrol -- -v1:$(BITLBEE_VERSION)-0
+ echo source:Version=1:$(BITLBEE_VERSION)-0 > debian/substvars
+ dh_gencontrol -- -v1:$(BITLBEE_VERSION)-0 -Vbee:Version=1:$(BITLBEE_VERSION)-0
else
- dh_gencontrol
+ dh_gencontrol -- -Vbee:Version=$(shell dpkg-parsechangelog | grep ^Version: | awk '{print $$2}' | sed -e 's/+[^+]*$$//')
endif
dh_md5sums
dh_builddeb