chiark / gitweb /
More Debian fixes.
authormdw <mdw>
Tue, 11 Nov 2003 00:28:16 +0000 (00:28 +0000)
committermdw <mdw>
Tue, 11 Nov 2003 00:28:16 +0000 (00:28 +0000)
.cvsignore
debian/.cvsignore [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index 3b08a195dce38b7f22508e3af5143830ac9a87bf..25ce188098a98449e2295d5a0df02bdb359ac6e9 100644 (file)
@@ -2,3 +2,4 @@ Makefile.in
 aclocal.m4
 build
 configure
+deb-build
diff --git a/debian/.cvsignore b/debian/.cvsignore
new file mode 100644 (file)
index 0000000..6803268
--- /dev/null
@@ -0,0 +1,2 @@
+files tmp substvars *.substvars *.debhelper
+mglib-dev
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..65e2929
--- /dev/null
@@ -0,0 +1,5 @@
+mglib (1.1.0) experimental; urgency=low
+
+  * Debianization!
+
+ -- Mark Wooding <mdw@nsict.org>  Sun,  9 Nov 2003 16:18:34 +0000
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..e5e6984
--- /dev/null
@@ -0,0 +1,17 @@
+Source: mglib
+Section: x11
+Priority: extra
+Maintainer: Mark Wooding <mdw@nsict.org>
+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 (file)
index 0000000..a05904b
--- /dev/null
@@ -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 (executable)
index 0000000..8abd163
--- /dev/null
@@ -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