Liebe Gitlab-Nutzer, lieber Gitlab-Nutzer, es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Ein Anmelden über dieses erzeugt ein neues Konto. Das alte Konto ist über den Reiter "Standard" erreichbar. Die Administratoren

Dear Gitlab user, it is now possible to log in to our service using the ZIH login/LDAP. Logging in via this will create a new account. The old account can be accessed via the "Standard" tab. The administrators

Commit 8aee90eb authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

package generation of deb packages works

parent f8b8124c
......@@ -42,3 +42,20 @@ Description: @PACKAGE_DESCRIPTION_SUMMARY@
.
This is the parallel version in Release mode of AMDiS.
Package: libamdis-debug
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libamdis (= @PACKAGE_VERSION@)
Description: @PACKAGE_DESCRIPTION_SUMMARY@
@PACKAGE_DESCRIPTION@
.
This is the sequential version in Debug mode of AMDiS.
Package: libamdis-par-debug
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libamdis-par (= @PACKAGE_VERSION@)
Description: @PACKAGE_DESCRIPTION_SUMMARY@
@PACKAGE_DESCRIPTION@
.
This is the parallel version in Debug mode of AMDiS.
# Command line arguments:
# CONFIG = [Debug|Release]
# COMPONENT = [SEQUENTIAL|PARALLEL]
set(PACKAGE_SOURCE_NAME "amdis")
set(PACKAGE_NAME "libamdis")
set(PACKAGE_SECTION "libdevel")
set(PACKAGE_VERSION "1.1~rc1")
set(PACKAGE_VERSION_MAJOR "1")
set(PACKAGE_VERSION_MINOR "1")
set(PACKAGE_VERSION_PATCH "0")
set(PACKAGE_CONTACT "Simon Praetorius <simon.praetorius@tu-dresden.de>")
set(PACKAGE_SOURCE "<https://gitlab.math.tu-dresden.de/iwr/amdis.git>")
set(PACKAGE_DESCRIPTION_SUMMARY "A C++ library to solve a broad class of PDEs using adaptive finite elements.")
set(PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
set(PACKAGE_DESCRIPTION
"Adaptive MultiDimensional Simulations (AMDiS) is a C++ library
to solve a broad class of partial differential equations (PDEs) using
adaptive finite elements.")
set(PACKAGE_LICENSE_FILE "${CMAKE_SOURCE_DIR}/LICENSE")
set(PACKAGE_README_FILE "${CMAKE_SOURCE_DIR}/README.md")
set(PACKAGE_SOURCE_NAME "amdis")
set(PACKAGE_NAME "libamdis")
if ("${COMPONENT}" STREQUAL "PARALLEL")
set(PACKAGE_NAME "${PACKAGE_NAME}-par")
set(ADDITIONAL_FLAGS "-DENABLE_UMFPACK:BOOL=OFF -DENABLE_PARALLEL_DOMAIN:BOOL=ON")
else ()
set(ADDITIONAL_FLAGS "-DENABLE_UMFPACK:BOOL=ON")
endif ()
if ("${CONFIG}" STREQUAL "Debug")
set(PACKAGE_NAME "${PACKAGE_NAME}-debug")
set(PACKAGE_SECTION "debug")
else ()
set(PACKAGE_SECTION "misc")
endif ()
file(READ ${CMAKE_SOURCE_DIR}/AUTHORS PACKAGE_AUTHORS)
execute_process(COMMAND date OUTPUT_VARIABLE PACKAGE_DATE)
set(IN_DIR ${CMAKE_SOURCE_DIR}/tools/packaging/debian)
set(OUT_DIR ${CMAKE_SOURCE_DIR}/debian_package)
file(MAKE_DIRECTORY ${OUT_DIR})
configure_file(${IN_DIR}/CPackOptions.cmake.in ${OUT_DIR}/CPackOptions.cmake @ONLY)
include(${OUT_DIR}/CPackOptions.cmake)
set(PACKAGE_FILENAME ${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION})
set(PACKAGE_PREFIX ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})
set(PACKAGE_FILENAME ${PACKAGE_SOURCE_NAME}_${PACKAGE_VERSION})
set(PACKAGE_PREFIX ${PACKAGE_SOURCE_NAME}-${PACKAGE_VERSION})
set(TGZ_FILENAME ${OUT_DIR}/${PACKAGE_FILENAME}.orig.tar.gz)
# create source tar.gz archive using git archive
execute_process(COMMAND git archive --format=tar.gz --prefix ${PACKAGE_PREFIX}/ -o ${TGZ_FILENAME} master)
execute_process(COMMAND date +%F OUTPUT_VARIABLE CURRENT_DATE)
execute_process(COMMAND date +%Y OUTPUT_VARIABLE YEAR)
set(PACKAGE_VERSION ${CPACK_PACKAGE_VERSION})
SET(PACKAGE_VERSION_MAJOR ${CPACK_PACKAGE_VERSION_MAJOR})
SET(PACKAGE_VERSION_MINOR ${CPACK_PACKAGE_VERSION_MINOR})
SET(PACKAGE_VERSION_PATCH ${CPACK_PACKAGE_VERSION_PATCH})
set(PACKAGE_SOURCE "<https://gitlab.math.tu-dresden.de/iwr/amdis.git>")
set(PACKAGE_CONTACT ${CPACK_PACKAGE_CONTACT})
execute_process(COMMAND date OUTPUT_VARIABLE PACKAGE_DATE)
file(READ ${CMAKE_SOURCE_DIR}/AUTHORS PACKAGE_AUTHORS)
set(PACKAGE_DESCRIPTION_SUMMARY ${CPACK_PACKAGE_DESCRIPTION_SUMMARY})
set(PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION})
set(PACKAGE_LICENSE_FILE ${CMAKE_SOURCE_DIR}/LICENSE)
set(PACKAGE_README_FILE ${CMAKE_SOURCE_DIR}/README.md)
set(PACKAGE_DESCRIPTION_FILE ${PACKAGE_README_FILE})
# extract package generated by CPack
# extract package generated above
execute_process(COMMAND tar -xzf ${TGZ_FILENAME} -C ${OUT_DIR})
# fill debian source package directory
set(DEBIAN_DIR ${OUT_DIR}/${PACKAGE_PREFIX}/debian)
file(MAKE_DIRECTORY ${DEBIAN_DIR})
file(MAKE_DIRECTORY ${DEBIAN_DIR}/soure)
execute_process(COMMAND date +%F OUTPUT_VARIABLE CURRENT_DATE)
execute_process(COMMAND date +%Y OUTPUT_VARIABLE YEAR)
# generate necessary files for debian packages
if (NOT EXISTS ${CMAKE_SOURCE_DIR}/CHANGELOG)
configure_file(${IN_DIR}/debian.changelog.in ${CMAKE_SOURCE_DIR}/CHANGELOG @ONLY)
configure_file(${IN_DIR}/changelog.in ${CMAKE_SOURCE_DIR}/CHANGELOG @ONLY)
elseif (UPDATE_CHANGELOG)
execute_process(COMMAND dch -i -M "New release version published at ${CURRENT_DATE}" -c ${CMAKE_SOURCE_DIR}/CHANGELOG)
endif ()
message(STATUS "Changelog must be uploaded to master")
file(MAKE_DIRECTORY ${DEBIAN_DIR})
file(MAKE_DIRECTORY ${DEBIAN_DIR}/soure)
configure_file(${CMAKE_SOURCE_DIR}/CHANGELOG ${DEBIAN_DIR}/changelog COPYONLY)
configure_file(${IN_DIR}/debian.copyright.in ${DEBIAN_DIR}/copyright @ONLY)
configure_file(${IN_DIR}/debian.control.in ${DEBIAN_DIR}/control @ONLY)
configure_file(${IN_DIR}/debian.rules.in ${DEBIAN_DIR}/rules @ONLY)
configure_file(${IN_DIR}/copyright.in ${DEBIAN_DIR}/copyright @ONLY)
configure_file(${IN_DIR}/control.in ${DEBIAN_DIR}/control @ONLY)
configure_file(${IN_DIR}/rules.in ${DEBIAN_DIR}/rules @ONLY)
execute_process(COMMAND chmod +x ${DEBIAN_DIR}/rules)
configure_file(${IN_DIR}/libamdis-dev.install ${DEBIAN_DIR}/libamdis-dev.install @ONLY)
configure_file(${IN_DIR}/libamdis.install ${DEBIAN_DIR}/libamdis.install @ONLY)
configure_file(${IN_DIR}/libamdis-par.install ${DEBIAN_DIR}/libamdis-par.install @ONLY)
execute_process(COMMAND chmod +x ${DEBIAN_DIR}/rules)
configure_file(${IN_DIR}/libamdis-debug.install ${DEBIAN_DIR}/libamdis-debug.install @ONLY)
configure_file(${IN_DIR}/libamdis-par-debug.install ${DEBIAN_DIR}/libamdis-par-debug.install @ONLY)
file(WRITE ${DEBIAN_DIR}/compat "9\n")
file(WRITE ${DEBIAN_DIR}/soure/format "3.0 (quilt)\n")
# generate the debian package
execute_process(COMMAND debuild -d -us -uc
WORKING_DIRECTORY ${OUT_DIR}/${PACKAGE_PREFIX})
......@@ -2,4 +2,3 @@
/usr/lib/amdis/libamdiscompositefem-sd.so
/usr/lib/amdis/libamdisreinit-sd.so
/usr/lib/amdis/libamdisextensions-sd.so
/usr/share/amdis/AMDIS-sd.cmake
......@@ -2,4 +2,3 @@
/usr/lib/amdis/libamdiscompositefem-pd.so
/usr/lib/amdis/libamdisreinit-pd.so
/usr/lib/amdis/libamdisextensions-pd.so
/usr/share/amdis/AMDIS-pd.cmake
......@@ -17,36 +17,39 @@ override_dh_auto_configure:
-DENABLE_UMFPACK:BOOL=OFF \
-DENABLE_PARALLEL_DOMAIN:BOOL=ON
# dh_auto_configure -Scmake -DAMDiS --builddirectory=build_libamdis_par_debug --package=libamdis-par-debug -- \
# -DCMAKE_BUILD_TYPE=Debug \
# -DENABLE_EXTENSIONS:BOOL=ON \
# -DENABLE_COMPRESSION:BOOL=ON \
# -DENABLE_UMFPACK:BOOL=OFF \
# -DENABLE_PARALLEL_DOMAIN:BOOL=ON
# dh_auto_configure -Scmake -DAMDiS --builddirectory=build_libamdis_debug --package=libamdis-debug -- \
# -DCMAKE_BUILD_TYPE=Debug \
# -DENABLE_EXTENSIONS:BOOL=ON \
# -DENABLE_COMPRESSION:BOOL=ON \
# -DENABLE_UMFPACK:BOOL=ON
dh_auto_configure -Scmake -DAMDiS --builddirectory=build_libamdis_debug --package=libamdis-debug -- \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_EXTENSIONS:BOOL=ON \
-DENABLE_COMPRESSION:BOOL=ON \
-DENABLE_UMFPACK:BOOL=ON
override_dh_auto_build:
dh_auto_build --builddirectory=build_libamdis --package=libamdis
dh_auto_build --builddirectory=build_libamdis_par --package=libamdis-par
dh_auto_configure -Scmake -DAMDiS --builddirectory=build_libamdis_par_debug --package=libamdis-par-debug -- \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_EXTENSIONS:BOOL=ON \
-DENABLE_COMPRESSION:BOOL=ON \
-DENABLE_UMFPACK:BOOL=OFF \
-DENABLE_PARALLEL_DOMAIN:BOOL=ON
# dh_auto_build -DAMDiS --builddirectory=build_libamdis_debug --package=libamdis-debug
# dh_auto_build -DAMDiS --builddirectory=build_libamdis_par_debug --package=libamdis-par-debug
override_dh_auto_build:
dh_auto_build --builddirectory=build_libamdis --package=libamdis --max-parallel=2
dh_auto_build --builddirectory=build_libamdis_par --package=libamdis-par --max-parallel=2
dh_auto_build --builddirectory=build_libamdis_debug --package=libamdis-debug --max-parallel=2
dh_auto_build --builddirectory=build_libamdis_par_debug --package=libamdis-par-debug --max-parallel=2
override_dh_auto_install:
dh_auto_install --builddirectory=build_libamdis --package=libamdis
dh_auto_install --builddirectory=build_libamdis_par --package=libamdis-par
dh_auto_install --builddirectory=build_libamdis_debug --package=libamdis-debug
dh_auto_install --builddirectory=build_libamdis_par_debug --package=libamdis-par-debug
override_dh_install:
dh_install --package=libamdis-dev
dh_install --package=libamdis
dh_auto_install --builddirectory=build_libamdis_par --package=libamdis-par
dh_install --package=libamdis-par
dh_install --package=libamdis-debug
dh_install --package=libamdis-par-debug
# override_dh_strip:
# dh_Strip --remaining-packages
# dh_strip --package=libamdis-debug --keep-debug
# dh_strip --package=libamdis-par-debug --keep-debug
override_dh_strip:
dh_strip --package=libamdis-debug --keep-debug
dh_strip --package=libamdis-par-debug --keep-debug
dh_strip --remaining-packages
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment