[Pkg-privacy-commits] [libotr] 172/225: Convert to debhelper 8 with tiny rules file and dh-autoreconf.
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 12:45:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository libotr.
commit ff478db8dd665d0965b750ad62694da25e295055
Author: intrigeri <intrigeri at boum.org>
Date: Tue Feb 18 20:37:27 2014 +0000
Convert to debhelper 8 with tiny rules file and dh-autoreconf.
---
debian/compat | 2 +-
debian/control | 3 +-
debian/rules | 97 +++++-----------------------------------------------------
3 files changed, 10 insertions(+), 92 deletions(-)
diff --git a/debian/compat b/debian/compat
index 7f8f011..45a4fb7 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+8
diff --git a/debian/control b/debian/control
index d1f6a97..7e3b104 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,8 @@ Source: libotr
Maintainer: Debian OTR Team <pkg-otr-team at lists.alioth.debian.org>
Section: libs
Priority: optional
-Build-Depends: debhelper (>= 7.0.0),
+Build-Depends: debhelper (>= 8),
+ dh-autoreconf,
libgpg-error-dev,
libgcrypt11-dev,
autotools-dev
diff --git a/debian/rules b/debian/rules
index 0196a35..06791bc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,98 +1,15 @@
#!/usr/bin/make -f
# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-configure: configure-stamp
-configure-stamp:
- dh_testdir
+%:
+ dh $@ --with autoreconf
- ln -sf /usr/share/misc/config.sub .
- ln -sf /usr/share/misc/config.guess .
- rm -f config.cache
+override_dh_auto_configure:
+ dh_auto_configure -- --with-pic \
+ $(shell dpkg-buildflags --export=configure)
- # Add here commands to configure the package.
- ./configure --with-pic --prefix=/usr --mandir=/usr/share/man \
- $(shell dpkg-buildflags --export=configure)
-
- touch configure-stamp
-
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE)
-
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
-
- # Add here commands to clean up after the build process.
- [ ! -f Makefile ] || $(MAKE) distclean
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
-
- # Add here commands to install the package
- $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
- find $(CURDIR)/debian/tmp/usr/lib -name "*.la" -exec \
- sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} +
-
- dh_install --list-missing
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs ChangeLog
- dh_installdocs
-# dh_installexamples
-# dh_installmenu
-# dh_installdebconf
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
-# dh_installinit
-# dh_installcron
-# dh_installinfo
-# dh_installman
-# dh_link
- dh_strip
- dh_compress
- dh_fixperms
-# dh_perl
-# dh_python
- dh_makeshlibs -V
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+override_dh_install:
+ dh_install --fail-missing -X.la
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libotr.git
More information about the Pkg-privacy-commits
mailing list