From 5fb46e95417c10b761c627169abdbd5d8f700489 Mon Sep 17 00:00:00 2001 Message-Id: <5fb46e95417c10b761c627169abdbd5d8f700489.1714112912.git.mdw@distorted.org.uk> From: Mark Wooding Date: Tue, 11 Nov 2003 00:28:16 +0000 Subject: [PATCH] More Debian fixes. Organization: Straylight/Edgeware From: mdw --- .cvsignore | 1 + debian/.cvsignore | 2 ++ debian/changelog | 5 +++++ debian/control | 17 ++++++++++++++++ debian/copyright | 16 +++++++++++++++ debian/rules | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 93 insertions(+) create mode 100644 debian/.cvsignore create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/.cvsignore b/.cvsignore index 3b08a19..25ce188 100644 --- a/.cvsignore +++ b/.cvsignore @@ -2,3 +2,4 @@ Makefile.in aclocal.m4 build configure +deb-build diff --git a/debian/.cvsignore b/debian/.cvsignore new file mode 100644 index 0000000..6803268 --- /dev/null +++ b/debian/.cvsignore @@ -0,0 +1,2 @@ +files tmp substvars *.substvars *.debhelper +mglib-dev diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..65e2929 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mglib (1.1.0) experimental; urgency=low + + * Debianization! + + -- Mark Wooding Sun, 9 Nov 2003 16:18:34 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e5e6984 --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: mglib +Section: x11 +Priority: extra +Maintainer: Mark Wooding +Standards-Version: 3.1.1 + +Package: mglib +Architecture: any +Depends: ${shlibs:Depends} +Description: A library of miscellaneous GTK+ stuff + +Package: mglib-dev +Architecture: any +Depends: mglib (= ${Source-Version}), mlib-dev (>= 2.0.0), libgtk1.2-dev, xlibs-dev +Description: A library of miscellaneous GTK+ stuff + This package contains the header files and static libraries needed to + compile programs which use mgLib. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a05904b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +mgLib is copyright (c) 2003 Straylight/Edgeware + +mgLib is free software; you can redistribute it and/or modify it under +the terms of the GNU Library General Public License as published by the +Free Software Foundation; either version 2 of the License, or (at your +option) any later version. + +mgLib 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 Library General Public +License for more details. + +You should have a copy of the GNU Library General Public License in +/usr/share/common-licenses/LGPL-2; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +USA. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8abd163 --- /dev/null +++ b/debian/rules @@ -0,0 +1,52 @@ +#! /usr/bin/make -f + +build: + rm -rf deb-build build; mkdir deb-build + cd deb-build; ../configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --libexecdir=/usr/lib + make -C deb-build + touch build + +clean: + dh_clean + rm -rf deb-build build + +install: build + dh_clean + make -C deb-build install DESTDIR=`pwd`/debian/tmp + rm -f debian/tmp/usr/lib/*.la + mkdir -p debian/mglib-dev/usr/lib + mv debian/tmp/usr/bin debian/mglib-dev/usr/bin + mv debian/tmp/usr/lib/*.a debian/mglib-dev/usr/lib + mv debian/tmp/usr/lib/*.so debian/mglib-dev/usr/lib + mv debian/tmp/usr/include debian/mglib-dev/usr + dh_strip -a + +binary-indep: + +binary-arch: install + dh_testdir -a + dh_testroot -a + dh_makeshlibs -a + dh_compress -a + dh_installdocs -a + dh_shlibdeps -a + dh_gencontrol -a + dh_fixperms -a + dh_installdeb -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +source: + rm -rf deb-build/*.tar.gz deb-build/=deb= + make -C deb-build dist PACKAGE=mglib + mkdir deb-build/=deb= + cd deb-build/=deb=; tar xvfz ../*.tar.gz + d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/* + rm -rf deb-build/=deb= + +.PHONY: binary binary-arch binary-indep clean install source -- [mdw]