# HG changeset patch # User ladanyi # Date 1118789482 0 # Node ID fa2b7378434322880437074d3845e7d6ae457fd9 # Parent f7e9cc3bc2da00d9b4428fc1e3235535331b98d3 Added support for building deb packages. diff -r f7e9cc3bc2da -r fa2b73784343 Makefile.am --- a/Makefile.am Tue Jun 14 20:01:41 2005 +0000 +++ b/Makefile.am Tue Jun 14 22:51:22 2005 +0000 @@ -55,6 +55,9 @@ $(MAKE) $(AM_MAKEFLAGS) maintainer-clean -rm -f $(MRPROPERFILES) +deb: + dpkg-buildpackage -rfakeroot + rpm: dist rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz @rm -f $(PACKAGE)-$(VERSION).tar.gz @@ -67,4 +70,4 @@ zcat $(PACKAGE)-$(VERSION).tar.gz | \ bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2 -.PHONY: doc benchmark mrproper rpm dist-bz2 distcheck-bz2 +.PHONY: doc benchmark mrproper deb rpm dist-bz2 distcheck-bz2 diff -r f7e9cc3bc2da -r fa2b73784343 debian/README.Debian --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/README.Debian Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,6 @@ +lemon for Debian +---------------- + + + + -- LEMON Development Team , Tue, 14 Jun 2005 08:29:34 +0200 diff -r f7e9cc3bc2da -r fa2b73784343 debian/changelog --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/changelog Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,6 @@ +lemon (0.4-1) unstable; urgency=low + + * Initial Release. + + -- LEMON Development Team Tue, 14 Jun 2005 08:29:34 +0200 + diff -r f7e9cc3bc2da -r fa2b73784343 debian/compat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/compat Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,1 @@ +4 diff -r f7e9cc3bc2da -r fa2b73784343 debian/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/control Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,15 @@ +Source: lemon +Section: unknown +Priority: optional +Maintainer: LEMON Development Team +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: lemon +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, glpk +Description: A C++ template library aimed at combinatorial optimization tasks. + LEMON stands for Library of Efficient Models and + Optimization in Networks. It is a C++ template + library aimed at combinatorial optimization tasks, + especially those working with graphs and networks. diff -r f7e9cc3bc2da -r fa2b73784343 debian/copyright --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/copyright Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,43 @@ +This package was debianized by LEMON Development Team on +Tue, 14 Jun 2005 08:29:34 +0200. + +It was downloaded from http://lemon.cs.elte.hu + +Copyright: + +Copyright (C) 2003-2005 Egervary Jeno Kombinatorikus Optimalizalasi +Kutatocsoport (Egervary Combinatorial Optimization Research Group, +EGRES). + +Upstream Author(s): + +Mihaly Barasz +Johanna Becker +Attila Bernath +Alpar Juttner +Marton Makai +Jacint Szabo + +License: + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff -r f7e9cc3bc2da -r fa2b73784343 debian/dirs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/dirs Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff -r f7e9cc3bc2da -r fa2b73784343 debian/docs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/docs Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,5 @@ +AUTHORS +COPYING +LICENSE +NEWS +README diff -r f7e9cc3bc2da -r fa2b73784343 debian/lemon.doc-base --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/lemon.doc-base Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,9 @@ +Document: lemon-refman +Title: LEMON Reference Manual +Author: LEMON Development Team +Abstract: Documentation of LEMON. +Section: unknown + +Format: HTML +Index: /usr/share/doc/lemon/html/index.html +Files: /usr/share/doc/lemon/html/*.html diff -r f7e9cc3bc2da -r fa2b73784343 debian/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/rules Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,107 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +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 + +config.status: configure + dh_testdir + # Add here commands to configure the package. + 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 + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/lemon.sgml > lemon.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/lemon. + $(MAKE) install DESTDIR=$(CURDIR)/debian/lemon + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff -r f7e9cc3bc2da -r fa2b73784343 debian/watch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/watch Tue Jun 14 22:51:22 2005 +0000 @@ -0,0 +1,2 @@ +version=2 +http://lemon.cs.elte.hu/data/lemon-(.*)\.tar\.gz debian uupdate