[rep-gtk] added debian packaging scripts based on the official ones



commit 1c70879839274ab9712edf15d5ad79661c15edd3
Author: Christopher Roy Bratusek <chris nanolx org>
Date:   Sat Oct 24 22:35:14 2009 +0200

    added debian packaging scripts based on the official ones

 ChangeLog              |    8 +
 config.guess           | 1533 -------------------------------------------
 config.sub             | 1693 ------------------------------------------------
 configure.in           |    4 +
 debian/changelog.in    |    5 +
 debian/compat          |    1 +
 debian/control         |   19 +
 debian/copyright       |   35 +
 debian/rep-gtk.install |    3 +
 debian/rules           |   99 +++
 debian/watch           |    3 +
 11 files changed, 177 insertions(+), 3226 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 57c9d01..cb507eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-10-24  Christopher Bratusek <zanghar freenet de>
+	* debian/changelog.in
+	* debian/compat
+	* debian/control
+	* rep-gtk.install
+	* debian/rules
+	* debian/watch: added debian packaging scripts based on the official ones
+
 2009-10-09  Christopher Bratusek <zanghar freenet de>
 	* gtk.defs: temporarily disable gtk_style_apply_default_background (breaks build)
 
diff --git a/configure.in b/configure.in
index ef7c62e..324b487 100644
--- a/configure.in
+++ b/configure.in
@@ -79,8 +79,11 @@ dnl locale checks
 AC_CHECK_FUNCS(setlocale)
 AC_CHECK_HEADERS(locale.h)
 
+gitdate=`date +%y%m%d`
+
 dnl Nonstandard exported symbols
 AC_SUBST(version)
+AC_SUBST(gitdate)
 AC_SUBST(pc_libs)
 AC_SUBST(repexecdir)
 AC_SUBST(CPPFLAGS)
@@ -103,6 +106,7 @@ Makefile
 rep-gtk.pc
 rep-gtk.spec
 rep-gtk.ebuild
+debian/changelog
 ])
 
 AC_OUTPUT
diff --git a/debian/changelog.in b/debian/changelog.in
new file mode 100644
index 0000000..4be095c
--- /dev/null
+++ b/debian/changelog.in
@@ -0,0 +1,5 @@
+rep-gtk (1:@version ~@gitdate -1nano) unstable; urgency=low
+
+  * New upstream GIT
+
+ -- Christopher Roy Bratusek <zanghar freenet de>  Sat, 24 Oct 2009 22:21:18 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..22969d1
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: rep-gtk
+Section: lisp
+Priority: optional
+Maintainer: Christopher Roy Bratusek <zanghar freenet de>
+Standards-Version: 3.8.2
+Build-Depends: debhelper (>= 5), librep-dev (>= 0.17.3), rep,
+ autotools-dev, libglib2.0-dev (>= 2.6), libgtk2.0-dev (>= 2.12)
+Homepage: http://sawfish.wikia.com/
+
+Package: rep-gtk
+Architecture: any
+Depends: ${shlibs:Depends}, librep9 (>= 0.17.3)
+Conflicts: rep-gtk2
+Replaces: rep-gtk2, rep-gtk-gnome
+Breaks: rep-gtk-gnome (<= 0.18.cvs20060518-3)
+Suggests: rep
+Description: GTK+ binding for librep
+ This package provides an interface to the GTK+ graphical toolkit for
+ the librep lisp interpreter.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..132d35f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianized by Mikolaj J. Habryn <dichro-debian rcpt to> on
+Thu, 23 Sep 1999 21:44:16 +0800.
+
+It was downloaded from http://rep-gtk.sf.net
+
+Copyright (C) 1997, 1998, 1999 Marius Vollmer
+Copyright (C) 1999 - 2006 John Harper <john dcs warwick ac uk>
+Copyright (C) 2008 - 2009  Christopher Bratusek <zanghar freenet de>
+
+License:
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+On Debian systems, the complete text of the GNU General Public License
+version 2 can be found in /usr/share/common-licenses/GPL-2 file.
+
+The Debian package itself is
+
+Copyright (C) 1999 Mikolaj J. Habryn
+Copyright (C) 2002-2007 Christian Marillat
+Copyright (C) 2009 Rodrigo Gallardo
+
+and is distributed under the same terms as rep-gtk itself.
\ No newline at end of file
diff --git a/debian/rep-gtk.install b/debian/rep-gtk.install
new file mode 100644
index 0000000..ca0e603
--- /dev/null
+++ b/debian/rep-gtk.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/libexec/rep/*/gui/gtk-2/types.*
+debian/tmp/usr/libexec/rep/*/gui/gtk-2/gtk.*
+debian/tmp/usr/lib/pkgconfig/rep-gtk.pc
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..cdb2965
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,99 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+version := $(shell sed -n 's/Package: \(.*\)/\1/p' debian/control | head -n 1)
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS += -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+
+	cp -f /usr/share/misc/config.guess .
+	cp -f /usr/share/misc/config.sub .
+
+	CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --libexecdir=/usr/lib \
+	--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	$(MAKE)
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	[ ! -f Makefile ] || $(MAKE) distclean
+
+	rm -rf .libs
+
+	debian/rules unpatch
+
+	dh_clean config.guess config.sub libtool install-stamp
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	$(MAKE) install DESTDIR=`pwd`/debian/tmp
+
+	#Fix libdir in *.la files
+	find debian/tmp -name '*.la' |\
+	 while read file; do\
+	  DIRNAME=$$(dirname $$file | sed 's debian/tmp@@');\
+	  sed -i "/libdir/ s ^ *@libdir=$$DIRNAME@" $$file;\
+	 done
+
+	dh_install --list-missing
+	touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs -i
+	dh_installchangelogs -i
+	dh_compress -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs -A README README.gtk-defs README.guile-gtk
+	dh_installexamples -prep-gtk examples/*
+	dh_installchangelogs -a ChangeLog
+	dh_strip -a
+	dh_link -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3022537
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://sf.net/rep-gtk/rep-gtk-(.+)\.tar\.(?:gz|bz2)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]