* Convert from cdbs to dh

* Add debian/docs to install AUTHORS NEWS README
This commit is contained in:
Andreas Henriksson
2016-08-31 08:20:48 +00:00
parent 2187316edc
commit 07ea5230b9
5 changed files with 22 additions and 15 deletions

6
debian/changelog vendored
View File

@@ -1,10 +1,12 @@
libgtop2 (2.34.1-1) UNRELEASED; urgency=medium libgtop2 (2.34.1-1) unstable; urgency=medium
* New upstream release. * New upstream release.
* Update build-dependencies according to configure.ac changes: * Update build-dependencies according to configure.ac changes:
- drop intltool - drop intltool
* Convert from cdbs to dh
* Add debian/docs to install AUTHORS NEWS README
-- Andreas Henriksson <andreas@fatal.se> Tue, 30 Aug 2016 20:44:19 +0200 -- Andreas Henriksson <andreas@fatal.se> Wed, 31 Aug 2016 10:20:31 +0200
libgtop2 (2.34.0-1) unstable; urgency=medium libgtop2 (2.34.0-1) unstable; urgency=medium

1
debian/control vendored
View File

@@ -14,7 +14,6 @@ Build-Depends: debhelper (>= 9),
libglib2.0-dev (>= 2.6.0), libglib2.0-dev (>= 2.6.0),
gnome-pkg-tools (>= 0.10), gnome-pkg-tools (>= 0.10),
dh-autoreconf, dh-autoreconf,
cdbs (>= 0.4.93),
texinfo, texinfo,
libxt-dev, libxt-dev,
libgeom-dev [kfreebsd-any], libgeom-dev [kfreebsd-any],

1
debian/control.in vendored
View File

@@ -10,7 +10,6 @@ Build-Depends: debhelper (>= 9),
libglib2.0-dev (>= 2.6.0), libglib2.0-dev (>= 2.6.0),
gnome-pkg-tools (>= 0.10), gnome-pkg-tools (>= 0.10),
dh-autoreconf, dh-autoreconf,
cdbs (>= 0.4.93),
texinfo, texinfo,
libxt-dev, libxt-dev,
libgeom-dev [kfreebsd-any], libgeom-dev [kfreebsd-any],

3
debian/docs vendored Normal file
View File

@@ -0,0 +1,3 @@
AUTHORS
NEWS
README

26
debian/rules vendored
View File

@@ -1,11 +1,6 @@
#!/usr/bin/make -f #!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
GNOME_MODULE := libgtop GNOME_MODULE := libgtop
@@ -17,19 +12,28 @@ ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
CPPFLAGS += $(shell pkg-config --cflags libbsd-overlay) CPPFLAGS += $(shell pkg-config --cflags libbsd-overlay)
endif endif
DEB_DH_AUTORECONF_ARGS = --as-needed %:
dh $@ --with gnome,autoreconf
DEB_DH_MAKESHLIBS_ARGS_ALL += -V '$(SHARED_PKG) (>= 2.32.0)' override_dh_autoreconf:
dh_autoreconf --as-needed
DEB_CONFIGURE_EXTRA_FLAGS += --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ override_dh_auto_configure:
--libexecdir=\$${libdir}/$(SHARED_PKG) dh_auto_configure -- \
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
--libexecdir=\$${libdir}/$(SHARED_PKG)
DEB_FIXPERMS_EXCLUDE += libgtop_server2 override_dh_makeshlibs:
dh_makeshlibs -V '$(SHARED_PKG) (>= 2.32.0)'
override_dh_fixperms:
dh_fixperms -X libgtop_server2
override_dh_install:
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd) ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
install/$(SHARED_PKG)::
# The server is only necessary on kFreeBSD # The server is only necessary on kFreeBSD
dh_install --autodest -p$(SHARED_PKG) \ dh_install --autodest -p$(SHARED_PKG) \
--ignore=debian/$(SHARED_PKG).install \ --ignore=debian/$(SHARED_PKG).install \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/$(SHARED_PKG)/libgtop_server2 debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/$(SHARED_PKG)/libgtop_server2
endif endif
dh_install