[med-svn] [liblemon] 02/02: Initial packaging

Andreas Tille tille at debian.org
Fri Aug 5 14:09:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository liblemon.

commit 12256c2139ae12fc38da8a9ad2151058bff9dbe4
Author: Andreas Tille <tille at debian.org>
Date:   Fri Aug 5 16:08:01 2016 +0200

    Initial packaging
---
 debian/changelog                 |  5 +++
 debian/compat                    |  1 +
 debian/control                   | 85 ++++++++++++++++++++++++++++++++++++++++
 debian/copyright                 | 40 +++++++++++++++++++
 debian/liblemon-doc.install      |  1 +
 debian/liblemon-utils.install    |  2 +
 debian/patches/dynamic_lib.patch | 16 ++++++++
 debian/patches/fix_libname.patch | 28 +++++++++++++
 debian/patches/series            |  2 +
 debian/rules                     | 30 ++++++++++++++
 debian/source/format             |  1 +
 debian/watch                     |  4 ++
 12 files changed, 215 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..475b8cd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+liblemon (1.3.1+dfsg-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #<bug>)
+
+ -- Andreas Tille <tille at debian.org>  Fri, 05 Aug 2016 09:37:09 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..bbd0c50
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,85 @@
+Source: liblemon
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               cmake,
+               d-shlibs,
+               libglpk-dev,
+               python,
+               doxygen,
+               graphviz,
+               libjs-mathjax,
+               ghostscript
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/liblemon.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/liblemon.git
+Homepage: https://lemon.cs.elte.hu/trac/lemon/wiki
+
+Package: liblemon1.3.1
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: Library for Efficient Modeling and Optimization in Networks
+ LEMON stands for Library for Efficient Modeling and Optimization in
+ Networks. It is a C++ template library providing efficient
+ implementations of common data structures and algorithms with focus
+ on combinatorial optimization tasks connected mainly with graphs
+ and networks.
+ .
+ LEMON is a member of the COIN-OR initiative, a collection of OR related
+ open source projects.
+ .
+ This package contains the dynamic library.
+
+Package: liblemon-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         liblemon1.3.1 (= ${binary:Version})
+Description: Library for Efficient Modeling and Optimization in Networks (development)
+ LEMON stands for Library for Efficient Modeling and Optimization in
+ Networks. It is a C++ template library providing efficient
+ implementations of common data structures and algorithms with focus
+ on combinatorial optimization tasks connected mainly with graphs
+ and networks.
+ .
+ LEMON is a member of the COIN-OR initiative, a collection of OR related
+ open source projects.
+ .
+ This package contains the static library and header files.
+
+Package: liblemon-utils
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: Library for Efficient Modeling and Optimization in Networks (utilities)
+ LEMON stands for Library for Efficient Modeling and Optimization in
+ Networks. It is a C++ template library providing efficient
+ implementations of common data structures and algorithms with focus
+ on combinatorial optimization tasks connected mainly with graphs
+ and networks.
+ .
+ LEMON is a member of the COIN-OR initiative, a collection of OR related
+ open source projects.
+ .
+ This package contains the utilies accompanying the library.
+
+Package: liblemon-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Description: Library for Efficient Modeling and Optimization in Networks (doc)
+ LEMON stands for Library for Efficient Modeling and Optimization in
+ Networks. It is a C++ template library providing efficient
+ implementations of common data structures and algorithms with focus
+ on combinatorial optimization tasks connected mainly with graphs
+ and networks.
+ .
+ LEMON is a member of the COIN-OR initiative, a collection of OR related
+ open source projects.
+ .
+ This package contains the library documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7f83fd4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,40 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: LEMON
+Source: https://lemon.cs.elte.hu/trac/lemon/wiki/Downloads
+Files-Excluded: */doc/html
+
+Files: *
+Copyright: 2003-2012 Egerváry Jenő Kombinatorikus Optimalizálási Kutatócsoport
+                     (Egerváry Research Group on Combinatorial Optimization, EGRES).
+License: Boost-1.0
+
+Files: debian/*
+Copyright: 2016 Andreas Tille <tille at debian.org>
+License: Boost-1.0
+
+License: Boost-1.0
+ ===========================================================================
+ Boost Software License, Version 1.0
+ ===========================================================================
+ .
+ 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 --git a/debian/liblemon-doc.install b/debian/liblemon-doc.install
new file mode 100644
index 0000000..d2e63b0
--- /dev/null
+++ b/debian/liblemon-doc.install
@@ -0,0 +1 @@
+usr/share/doc/lemon/html	usr/share/doc/lemon
diff --git a/debian/liblemon-utils.install b/debian/liblemon-utils.install
new file mode 100644
index 0000000..bec8850
--- /dev/null
+++ b/debian/liblemon-utils.install
@@ -0,0 +1,2 @@
+usr/bin/dimacs*	usr/bin
+usr/bin/lgf-gen	usr/bin
diff --git a/debian/patches/dynamic_lib.patch b/debian/patches/dynamic_lib.patch
new file mode 100644
index 0000000..2377244
--- /dev/null
+++ b/debian/patches/dynamic_lib.patch
@@ -0,0 +1,16 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 05 Aug 2016 09:37:09 +0200
+Description: Create static and shared library
+
+--- a/lemon/CMakeLists.txt
++++ b/lemon/CMakeLists.txt
+@@ -54,7 +54,8 @@ IF(LEMON_HAVE_SOPLEX)
+   INCLUDE_DIRECTORIES(${SOPLEX_INCLUDE_DIRS})
+ ENDIF()
+ 
+-ADD_LIBRARY(lemon ${LEMON_SOURCES})
++ADD_LIBRARY(lemon_static ${LEMON_SOURCES})
++ADD_LIBRARY(lemon SHARED ${LEMON_SOURCES} )
+ 
+ TARGET_LINK_LIBRARIES(lemon
+   ${GLPK_LIBRARIES} ${COIN_LIBRARIES} ${ILOG_LIBRARIES} ${SOPLEX_LIBRARIES}
diff --git a/debian/patches/fix_libname.patch b/debian/patches/fix_libname.patch
new file mode 100644
index 0000000..a927246
--- /dev/null
+++ b/debian/patches/fix_libname.patch
@@ -0,0 +1,28 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 05 Aug 2016 09:37:09 +0200
+Description: For some strange reason the library name is libemon
+ under UNIX.  It does not seem to be a typo but it also makes no real
+ sense to me - so renaming to liblemon
+
+--- a/cmake/LEMONConfig.cmake.in
++++ b/cmake/LEMONConfig.cmake.in
+@@ -2,7 +2,7 @@ SET(LEMON_INCLUDE_DIR "@CMAKE_INSTALL_PR
+ SET(LEMON_INCLUDE_DIRS "${LEMON_INCLUDE_DIR}")
+ 
+ IF(UNIX)
+-  SET(LEMON_LIB_NAME "libemon.a")
++  SET(LEMON_LIB_NAME "liblemon.a")
+ ELSEIF(WIN32)
+   SET(LEMON_LIB_NAME "lemon.lib")
+ ENDIF(UNIX)
+--- a/lemon/CMakeLists.txt
++++ b/lemon/CMakeLists.txt
+@@ -62,7 +62,7 @@ TARGET_LINK_LIBRARIES(lemon
+   )
+ 
+ IF(UNIX)
+-  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon VERSION ${LEMON_VERSION} SOVERSION ${LEMON_VERSION})
++  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME lemon VERSION ${LEMON_VERSION} SOVERSION ${LEMON_VERSION})
+ ENDIF()
+ 
+ INSTALL(
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f434a04
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+dynamic_lib.patch
+fix_libname.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..26f7dfc
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
+
+CMAKE_EXTRA_FLAGS += -DBUILD_SHARED_LIBS=TRUE -DLEMON_DOC_USE_MATHJAX=YES
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	dh_auto_build
+	cd obj-*/doc && make html
+
+override_dh_auto_test:
+	cd obj-* && make check
+
+override_dh_install:
+	dh_install
+	cp -a obj-*/lemon/liblemon_static.a debian/tmp/usr/lib/liblemon.a
+	d-shlibmove --commit \
+		    --multiarch \
+		    --devunversioned \
+                    --exclude-la \
+		    --override s/libglpk.*-dev/libglpk-dev/ \
+		    --movedev debian/tmp/usr/include/* usr/include \
+		    --movedev "debian/tmp/usr/lib/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
+		    --movedev "debian/tmp/usr/share/lemon/cmake/*" usr/lib/cmake \
+                    debian/tmp/usr/lib/*.so
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e6cd394
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g,repack,compression=xz" \
+  https://lemon.cs.elte.hu/trac/lemon/wiki/Downloads .*/sources/lemon-(\d[.\d]+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/liblemon.git



More information about the debian-med-commit mailing list