From b5b90d436c93b4b5eeedd5248308d2a214ff85ad Mon Sep 17 00:00:00 2001 From: Alexandre Erwin Ittner Date: Thu, 22 Feb 2007 02:41:13 +0000 Subject: [PATCH] Making Deb packages acording to the Debian Lua Policy git-svn-id: file:///var/svn/lua-iconv/trunk@38 9538949d-8f27-0410-946f-ce01ef448559 --- debian/Makefile.Debian.conf | 20 ++++++++ debian/changelog | 7 +++ debian/control | 21 ++++++-- debian/liblua5.1-iconv-dev.docs | 1 + debian/rules | 90 +++++---------------------------- debian/watch | 5 ++ 6 files changed, 61 insertions(+), 83 deletions(-) create mode 100644 debian/Makefile.Debian.conf create mode 100644 debian/liblua5.1-iconv-dev.docs create mode 100644 debian/watch diff --git a/debian/Makefile.Debian.conf b/debian/Makefile.Debian.conf new file mode 100644 index 0000000..2175e8b --- /dev/null +++ b/debian/Makefile.Debian.conf @@ -0,0 +1,20 @@ +PKG_NAME=iconv + +### things relative to the C library part +CLIB_CFLAGS= +CLIB_LDFLAGS= +CLIB_OBJS= iconv.lo +VERSION_INFO=0:0:0 + +### things relative to the lua library part +LUA_HEADER=iconv.h +LUA_SOURCES= +LUA_MODNAME=iconv +LUA_TEST=test_iconv.lua + +### this part is relative to pkg-config +PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) +PKG_LIBS_PRIVATE= +PKG_URL=http://lua-iconv.luaforge.net/ +PKG_REQUIRES= +PKG_CONFLICTS= diff --git a/debian/changelog b/debian/changelog index 26192e4..0a9753a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +lua-iconv (0.r4-1) unstable; urgency=low + + * New Debian packages according to the Debian Lua policy. + + -- Alexandre Erwin Ittner Wed, 21 Feb 2007 22:00:00 -0200 + + lua-iconv (0.r3-1) unstable; urgency=low * First release in .deb format. diff --git a/debian/control b/debian/control index dd71793..c490372 100644 --- a/debian/control +++ b/debian/control @@ -1,15 +1,26 @@ Source: lua-iconv +Section: interpreters Priority: optional Maintainer: Alexandre Erwin Ittner -Build-Depends: debhelper (>= 4.0.0), liblua5.1-dev -Standards-Version: 3.6.1 -Section: interpreters +Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), dpatch, lua5.1-policy-dev (>= 6) +Standards-Version: 3.7.2 +XS-X-Vcs-svn: svn://svn.debian.org/pkg-lua/packages/lua-iconv -Package: lua-iconv +Package: liblua5.1-iconv Architecture: any Depends: ${shlibs:Depends} -Recommends: lua5.1 Description: iconv bindings for the Lua Programming Language Lua-iconv is POSIX 'iconv' binding for the Lua Programming Language. It converts a sequence of characters from one codeset into a sequence of corresponding characters in another codeset. + Homepage: + +Package: liblua5.1-iconv-dev +Architecture: any +Depends: liblua5.1-iconv (= ${Source-Version}) +Description: iconv development files for the lua language version 5.1 + This package contains the development files of the iconv lua5.1 bindings, + useful to create a statically linked binary (like a C application or a + standalone lua interpreter). + Documentation is also shipped within this package. + Homepage: diff --git a/debian/liblua5.1-iconv-dev.docs b/debian/liblua5.1-iconv-dev.docs new file mode 100644 index 0000000..27e57ed --- /dev/null +++ b/debian/liblua5.1-iconv-dev.docs @@ -0,0 +1 @@ +doc/us diff --git a/debian/rules b/debian/rules index 4a41597..473c152 100755 --- a/debian/rules +++ b/debian/rules @@ -1,81 +1,15 @@ #!/usr/bin/make -f -# -*- makefile -*- -## This is my first Debian package. Please, be patient ;) +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/dpatch.mk - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# This is the debhelper compatability version to use. -export DH_COMPAT=4 - -LUAPKG=lua5.1 -INSTALL_PATH=`pkg-config $(LUAPKG) --variable=INSTALL_CMOD` - -CFLAGS = -Wall -g - -build: build-stamp -build-stamp: - dh_testdir - -# Well, this does it all. - $(MAKE) - - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f iconv.so - rm -f build-stamp configure-stamp - -# Toplevel clean does it all - -$(MAKE) clean - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - mkdir -p debian/lua-iconv/usr/share/doc/lua-iconv - mkdir -p debian/lua-iconv/$(INSTALL_PATH) - - cp iconv.so debian/lua-iconv/$(INSTALL_PATH) - cp README COPYING test_iconv.lua debian/lua-iconv/usr/share/doc/lua-iconv/ - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir -a - dh_testroot -a -# dh_installdebconf -a - dh_installdocs -a -# dh_installexamples -a -# dh_installmenu -a -# dh_installlogrotate -a -# dh_installemacsen -a -# dh_installpam -a -# dh_installmime -a -# dh_installinit -a -# dh_installcron -a -# dh_installman -a -# dh_installinfo -a -# dh_undocumented -a - dh_installchangelogs -a - dh_strip -a - dh_link -a - dh_compress -a - dh_fixperms -a - dh_makeshlibs -a -V - dh_installdeb -a -# dh_perl -a - dh_shlibdeps -a - dh_gencontrol -a - dh_md5sums -a - dh_builddeb -a - -binary: binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure +DEB_MAKE_BUILD_TARGET := all -f Makefile.Debian +DEB_MAKE_TEST_TARGET := test -f Makefile.Debian +DEB_MAKE_CLEAN_TARGET := clean -f Makefile.Debian +DEB_MAKE_INSTALL_TARGET := install -f Makefile.Debian DESTDIR=$(DEB_DESTDIR) +DEB_DH_INSTALL_SOURCEDIR := $(DEB_DESTDIR) +pre-build:: + lua5.1-policy-apply +clean:: + lua5.1-policy-apply --reverse diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..d76b6ea --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +# test this watch file using: +# uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-iconv +# +version=3 +http://luaforge.net/frs/download.php/\d+/lua-iconv-([\d\.]*).tar.gz