[libarray-refelem-perl] 01/08: Initial packaging

Christoph Biedl debian.axhn at manchmal.in-ulm.de
Thu Dec 15 20:24:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

cbiedl-guest pushed a commit to branch master
in repository libarray-refelem-perl.

commit fa924f0723becd48390783aa0fdb6186ef6ab6c0
Author: Matthias Urlichs <smurf at debian.org>
Date:   Tue Jun 29 09:57:09 2004 +0200

    Initial packaging
---
 debian/compat    |  1 +
 debian/control   | 13 +++++++++
 debian/copyright | 16 +++++++++++
 debian/rules     | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 113 insertions(+)

diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8aa8a23
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,13 @@
+Source: libarray-refelem-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 4.0.2), perl (>= 5.8.0-7)
+Maintainer: Matthias Urlichs <smurf at debian.org>
+Standards-Version: 3.6.2
+
+Package: libarray-refelem-perl
+Architecture: any
+Depends: ${perl:Depends}, ${shlibs:Depends}
+Description:  Set up array elements as aliases
+ This module gives you direct access to the internal perl routines that
+ let you store reference to things in arrays and hashes.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c98d352
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+This is the debian package for the Array::RefElem  module.
+It was created by Matthias Urlichs <smurf at debian.org>.
+
+The upstream author is Gisle Aas <gisle at ActiveState.com>.
+
+The README file states:
+	This library is free software; you can redistribute it and/or
+	modify it under the same terms as Perl itself.
+
+As of this writing, Perl is available under either the Artistic or GPL
+license.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in '/usr/share/common-licenses/GPL',
+and the Artistic License in  '/usr/share/common-licenses/Artistic'.
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a3b0b57
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,83 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
+
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	-$(MAKE) realclean
+
+	dh_clean build-stamp install-stamp
+
+install: install-stamp
+install-stamp:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+	$(MAKE) test
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	
+	# As this is a architecture dependent package, we are not supposed to install
+	# stuff to /usr/share/perl5. MakeMaker creates the dirs, we delete them from 
+	# the deb:
+	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5
+	
+	touch install-stamp
+
+# 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_installdocs README
+	dh_installchangelogs Changes
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_perl 
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libarray-refelem-perl.git



More information about the Pkg-perl-cvs-commits mailing list