change debian rules version

This commit is contained in:
liubo01 2024-06-12 17:12:07 +08:00
parent 1085c8ecf3
commit b4b701ac91
2 changed files with 11 additions and 3 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
help2man (1.49.3-ok2) nile; urgency=medium
* Change debian/rules version
-- liubo01 <liubo01@kylinos.cn> Wed, 12 Jun 2024 17:09:57 +0800
help2man (1.49.3-ok1) nile; urgency=medium
* Build for openKylin.

8
debian/rules vendored
View File

@ -46,9 +46,10 @@ AM_AUX = install-sh missing mkinstalldirs
AM_DIR = $(shell ls -d /usr/share/automake* 2>/dev/null | tail -1)
PKG_VERSION = $(shell ./help2man.PL --version)
include /usr/share/dpkg/pkg-info.mk # DEB_VERSION
UPSTREAM_VERSION = $(word 1, $(subst -, , $(DEB_VERSION)))
maint-prep:
test -n $(AM_DIR)
test $(DEB_VERSION) = $(PKG_VERSION) # mismatch b/w $$version in help2man.PL and changelog
test $(UPSTREAM_VERSION) = $(PKG_VERSION) # mismatch b/w $$version in help2man.PL and changelog
cp $(addprefix $(AM_DIR)/,$(AM_DOC)) .
cp $(addprefix $(AM_DIR)/,$(AM_AUX)) build-aux
(eval `sed -n 's/^Vcs-\([^:]*\): /VCS_\U\1=/p' debian/control`; \
@ -77,8 +78,8 @@ maint-prep:
# debian package).
check-maint-prep:
test -x configure # autoconf has been run
[[ $(DEB_VERSION) = *+b[0-9]* ]] || # this is a bin-NMU, or... \
grep -qF 'help2man-$(DEB_VERSION).tar' README # exists and up to date
[[ $(UPSTREAM_VERSION) = *+b[0-9]* ]] || # this is a bin-NMU, or... \
grep -qF 'help2man-$(UPSTREAM_VERSION).tar' README # exists and up to date
maint-clean: maint-prep
./configure
@ -86,3 +87,4 @@ maint-clean: maint-prep
rm -f README ChangeLog $(AM_DOC) $(addprefix build-aux/,$(AM_AUX))
.PHONY: maint-prep check-maint-prep maint-clean