Added support for building deb packages.
authorladanyi
Tue, 14 Jun 2005 22:51:22 +0000
changeset 1490fa2b73784343
parent 1489 f7e9cc3bc2da
child 1491 340514805e40
Added support for building deb packages.
Makefile.am
debian/README.Debian
debian/changelog
debian/compat
debian/control
debian/copyright
debian/dirs
debian/docs
debian/lemon.doc-base
debian/rules
debian/watch
     1.1 --- a/Makefile.am	Tue Jun 14 20:01:41 2005 +0000
     1.2 +++ b/Makefile.am	Tue Jun 14 22:51:22 2005 +0000
     1.3 @@ -55,6 +55,9 @@
     1.4  	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
     1.5  	-rm -f $(MRPROPERFILES)
     1.6  
     1.7 +deb:
     1.8 +	dpkg-buildpackage -rfakeroot
     1.9 +
    1.10  rpm: dist
    1.11  	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    1.12  	@rm -f $(PACKAGE)-$(VERSION).tar.gz
    1.13 @@ -67,4 +70,4 @@
    1.14  	zcat $(PACKAGE)-$(VERSION).tar.gz | \
    1.15  	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
    1.16  
    1.17 -.PHONY: doc benchmark mrproper rpm dist-bz2 distcheck-bz2
    1.18 +.PHONY: doc benchmark mrproper deb rpm dist-bz2 distcheck-bz2
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/debian/README.Debian	Tue Jun 14 22:51:22 2005 +0000
     2.3 @@ -0,0 +1,6 @@
     2.4 +lemon for Debian
     2.5 +----------------
     2.6 +
     2.7 +<possible notes regarding this package - if none, delete this file>
     2.8 +
     2.9 + -- LEMON Development Team <etik-ol@cs.elte.hu>, Tue, 14 Jun 2005 08:29:34 +0200
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/debian/changelog	Tue Jun 14 22:51:22 2005 +0000
     3.3 @@ -0,0 +1,6 @@
     3.4 +lemon (0.4-1) unstable; urgency=low
     3.5 +
     3.6 +  * Initial Release.
     3.7 +
     3.8 + -- LEMON Development Team <etik-ol@cs.elte.hu>  Tue, 14 Jun 2005 08:29:34 +0200
     3.9 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/debian/compat	Tue Jun 14 22:51:22 2005 +0000
     4.3 @@ -0,0 +1,1 @@
     4.4 +4
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/debian/control	Tue Jun 14 22:51:22 2005 +0000
     5.3 @@ -0,0 +1,15 @@
     5.4 +Source: lemon
     5.5 +Section: unknown
     5.6 +Priority: optional
     5.7 +Maintainer: LEMON Development Team <etik-ol@cs.elte.hu>
     5.8 +Build-Depends: debhelper (>= 4.0.0)
     5.9 +Standards-Version: 3.6.1
    5.10 +
    5.11 +Package: lemon
    5.12 +Architecture: any
    5.13 +Depends: ${shlibs:Depends}, ${misc:Depends}, glpk
    5.14 +Description: A C++ template library aimed at combinatorial optimization tasks.
    5.15 + LEMON stands for Library of Efficient Models and
    5.16 + Optimization in Networks. It is a C++ template
    5.17 + library aimed at combinatorial optimization tasks,
    5.18 + especially those working with graphs and networks.
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/debian/copyright	Tue Jun 14 22:51:22 2005 +0000
     6.3 @@ -0,0 +1,43 @@
     6.4 +This package was debianized by LEMON Development Team <etik-ol@cs.elte.hu> on
     6.5 +Tue, 14 Jun 2005 08:29:34 +0200.
     6.6 +
     6.7 +It was downloaded from http://lemon.cs.elte.hu
     6.8 +
     6.9 +Copyright:
    6.10 +
    6.11 +Copyright (C) 2003-2005 Egervary Jeno Kombinatorikus Optimalizalasi
    6.12 +Kutatocsoport (Egervary Combinatorial Optimization Research Group,
    6.13 +EGRES).
    6.14 +
    6.15 +Upstream Author(s):
    6.16 +
    6.17 +Mihaly Barasz <klao@cs.elte.hu>
    6.18 +Johanna Becker <beckerjc@cs.elte.hu>
    6.19 +Attila Bernath <athos@cs.elte.hu>
    6.20 +Alpar Juttner <alpar@cs.elte.hu>
    6.21 +Marton Makai <marci@cs.elte.hu>
    6.22 +Jacint Szabo <jacint@cs.elte.hu>
    6.23 +
    6.24 +License:
    6.25 +
    6.26 +Permission is hereby granted, free of charge, to any person or organization
    6.27 +obtaining a copy of the software and accompanying documentation covered by
    6.28 +this license (the "Software") to use, reproduce, display, distribute,
    6.29 +execute, and transmit the Software, and to prepare derivative works of the
    6.30 +Software, and to permit third-parties to whom the Software is furnished to
    6.31 +do so, all subject to the following:
    6.32 +
    6.33 +The copyright notices in the Software and this entire statement, including
    6.34 +the above license grant, this restriction and the following disclaimer,
    6.35 +must be included in all copies of the Software, in whole or in part, and
    6.36 +all derivative works of the Software, unless such copies or derivative
    6.37 +works are solely in the form of machine-executable object code generated by
    6.38 +a source language processor.
    6.39 +
    6.40 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    6.41 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    6.42 +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
    6.43 +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
    6.44 +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
    6.45 +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    6.46 +DEALINGS IN THE SOFTWARE.
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/debian/dirs	Tue Jun 14 22:51:22 2005 +0000
     7.3 @@ -0,0 +1,2 @@
     7.4 +usr/bin
     7.5 +usr/sbin
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/debian/docs	Tue Jun 14 22:51:22 2005 +0000
     8.3 @@ -0,0 +1,5 @@
     8.4 +AUTHORS
     8.5 +COPYING
     8.6 +LICENSE
     8.7 +NEWS
     8.8 +README
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/debian/lemon.doc-base	Tue Jun 14 22:51:22 2005 +0000
     9.3 @@ -0,0 +1,9 @@
     9.4 +Document: lemon-refman
     9.5 +Title: LEMON Reference Manual
     9.6 +Author: LEMON Development Team
     9.7 +Abstract: Documentation of LEMON.
     9.8 +Section: unknown
     9.9 +
    9.10 +Format: HTML
    9.11 +Index: /usr/share/doc/lemon/html/index.html
    9.12 +Files: /usr/share/doc/lemon/html/*.html
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/debian/rules	Tue Jun 14 22:51:22 2005 +0000
    10.3 @@ -0,0 +1,107 @@
    10.4 +#!/usr/bin/make -f
    10.5 +# -*- makefile -*-
    10.6 +# Sample debian/rules that uses debhelper.
    10.7 +# This file was originally written by Joey Hess and Craig Small.
    10.8 +# As a special exception, when this file is copied by dh-make into a
    10.9 +# dh-make output file, you may use that output file without restriction.
   10.10 +# This special exception was added by Craig Small in version 0.37 of dh-make.
   10.11 +
   10.12 +# Uncomment this to turn on verbose mode.
   10.13 +#export DH_VERBOSE=1
   10.14 +
   10.15 +
   10.16 +# These are used for cross-compiling and for saving the configure script
   10.17 +# from having to guess our platform (since we know it already)
   10.18 +DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
   10.19 +DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
   10.20 +
   10.21 +
   10.22 +CFLAGS = -Wall -g
   10.23 +
   10.24 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
   10.25 +	CFLAGS += -O0
   10.26 +else
   10.27 +	CFLAGS += -O2
   10.28 +endif
   10.29 +
   10.30 +config.status: configure
   10.31 +	dh_testdir
   10.32 +	# Add here commands to configure the package.
   10.33 +	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-docsuffix=lemon
   10.34 +
   10.35 +
   10.36 +build: build-stamp
   10.37 +
   10.38 +build-stamp:  config.status
   10.39 +	dh_testdir
   10.40 +
   10.41 +	# Add here commands to compile the package.
   10.42 +	$(MAKE)
   10.43 +	#docbook-to-man debian/lemon.sgml > lemon.1
   10.44 +
   10.45 +	touch build-stamp
   10.46 +
   10.47 +clean:
   10.48 +	dh_testdir
   10.49 +	dh_testroot
   10.50 +	rm -f build-stamp 
   10.51 +
   10.52 +	# Add here commands to clean up after the build process.
   10.53 +	-$(MAKE) distclean
   10.54 +ifneq "$(wildcard /usr/share/misc/config.sub)" ""
   10.55 +	cp -f /usr/share/misc/config.sub config.sub
   10.56 +endif
   10.57 +ifneq "$(wildcard /usr/share/misc/config.guess)" ""
   10.58 +	cp -f /usr/share/misc/config.guess config.guess
   10.59 +endif
   10.60 +
   10.61 +
   10.62 +	dh_clean 
   10.63 +
   10.64 +install: build
   10.65 +	dh_testdir
   10.66 +	dh_testroot
   10.67 +	dh_clean -k 
   10.68 +	dh_installdirs
   10.69 +
   10.70 +	# Add here commands to install the package into debian/lemon.
   10.71 +	$(MAKE) install DESTDIR=$(CURDIR)/debian/lemon
   10.72 +
   10.73 +
   10.74 +# Build architecture-independent files here.
   10.75 +binary-indep: build install
   10.76 +# We have nothing to do by default.
   10.77 +
   10.78 +# Build architecture-dependent files here.
   10.79 +binary-arch: build install
   10.80 +	dh_testdir
   10.81 +	dh_testroot
   10.82 +	dh_installchangelogs ChangeLog
   10.83 +	dh_installdocs
   10.84 +	dh_installexamples
   10.85 +#	dh_install
   10.86 +#	dh_installmenu
   10.87 +#	dh_installdebconf	
   10.88 +#	dh_installlogrotate
   10.89 +#	dh_installemacsen
   10.90 +#	dh_installpam
   10.91 +#	dh_installmime
   10.92 +#	dh_installinit
   10.93 +#	dh_installcron
   10.94 +#	dh_installinfo
   10.95 +#	dh_installman
   10.96 +	dh_link
   10.97 +	dh_strip
   10.98 +	dh_compress
   10.99 +	dh_fixperms
  10.100 +#	dh_perl
  10.101 +#	dh_python
  10.102 +#	dh_makeshlibs
  10.103 +	dh_installdeb
  10.104 +	dh_shlibdeps
  10.105 +	dh_gencontrol
  10.106 +	dh_md5sums
  10.107 +	dh_builddeb
  10.108 +
  10.109 +binary: binary-indep binary-arch
  10.110 +.PHONY: build clean binary-indep binary-arch binary install 
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/debian/watch	Tue Jun 14 22:51:22 2005 +0000
    11.3 @@ -0,0 +1,2 @@
    11.4 +version=2
    11.5 +http://lemon.cs.elte.hu/data/lemon-(.*)\.tar\.gz	debian	uupdate