Commit f8736e59 authored by jan.koester's avatar jan.koester
Browse files

tets

parent 750f0ed5
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ set(Upstream_VERSION 1.0.0)

set(CMAKE_CXX_STANDARD 20)

include(GNUInstallDirs)

configure_file(config.h.in ${CMAKE_BINARY_DIR}/config.h)

set(WINDOWS_EXPORT_ALL_SYMBOLS ON)
@@ -18,7 +20,7 @@ set(WINDOWS_EXPORT_ALL_SYMBOLS ON)
if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Windows")
    add_definitions( -D${CMAKE_HOST_SYSTEM_NAME} -DPLGPATH="./")
else() # Corrected from elseif()
    add_definitions( -D${CMAKE_HOST_SYSTEM_NAME} -DPLGPATH="${CMAKE_INSTALL_PREFIX}/lib/dbpp")
    add_definitions( -D${CMAKE_HOST_SYSTEM_NAME} -DPLGPATH="${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/dbpp")
endif()

if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "FreeBSD")
@@ -47,11 +49,11 @@ else()
    target_link_libraries(dbpp dl)
endif()

install(TARGETS dbpp DESTINATION lib EXPORT dbppTargets)
install(TARGETS dbpp DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT dbppTargets)

install(
  FILES include/database.h
  DESTINATION include/dbpp
  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dbpp
  COMPONENT Devel
)

@@ -66,7 +68,7 @@ install(EXPORT dbppTargets
  NAMESPACE
    dbpp::
  DESTINATION
    lib/cmake/libdbpp
    ${CMAKE_INSTALL_LIBDIR}/cmake/libdbpp
  COMPONENT
    Devel
)
@@ -75,7 +77,7 @@ install(
  FILES
    libdbppConfig.cmake
  DESTINATION
    lib/cmake/libdbpp
    ${CMAKE_INSTALL_LIBDIR}/cmake/libdbpp
  COMPONENT
    Devel
)
+2 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ if(${POSTGRESQL_FOUND})
   install(
        TARGETS pgsql
        RUNTIME_DEPENDENCY_SET pgsqldep
        LIBRARY DESTINATION lib/dbpp NAMELINK_SKIP
        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/dbpp NAMELINK_SKIP
        RUNTIME DESTINATION bin
    )
   
@@ -55,7 +55,7 @@ if(SQLITE3_FOUND)

    install(TARGETS sqlite
        RUNTIME_DEPENDENCY_SET sqlitedep
        LIBRARY DESTINATION lib/dbpp NAMELINK_SKIP
        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/dbpp NAMELINK_SKIP
        RUNTIME DESTINATION bin
    )

debian/changelog

0 → 100644
+5 −0
Original line number Diff line number Diff line
libdbpp (20260411+1) unstable; urgency=medium

  * Initial Debian packaging with libdbpp-dev, libdbpp-pgsql, libdbpp-sqlite

 -- Jan Koester <jan.koester@tuxist.de>  Sat, 11 Apr 2026 00:00:00 +0200

debian/control

0 → 100644
+41 −0
Original line number Diff line number Diff line
Source: libdbpp
Section: libs
Priority: optional
Maintainer: Jan Koester <jan.koester@tuxist.de>
Build-Depends: debhelper-compat (= 13), cmake (>= 3.18),
 libpq-dev, libsqlite3-dev, pkg-config
Standards-Version: 4.6.2
Rules-Requires-Root: no

Package: libdbpp-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: ${misc:Depends}
Description: C++ database abstraction library - development files
 libdbpp is a C++ database abstraction library with a plugin
 architecture for backend drivers. Supports PostgreSQL and SQLite
 via dynamically loaded shared library plugins.
 .
 This package contains the static library, headers, and CMake
 config files needed for development.

Package: libdbpp-pgsql
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: PostgreSQL backend for libdbpp
 libdbpp is a C++ database abstraction library with a plugin
 architecture for backend drivers.
 .
 This package contains the PostgreSQL backend plugin.

Package: libdbpp-sqlite
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: SQLite backend for libdbpp
 libdbpp is a C++ database abstraction library with a plugin
 architecture for backend drivers.
 .
 This package contains the SQLite backend plugin.

debian/copyright

0 → 100644
+34 −0
Original line number Diff line number Diff line
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libdbpp
Upstream-Contact: Jan Koester <jan.koester@tuxist.de>

Files: *
Copyright: 2019 Jan Koester
License: BSD-3-Clause

License: BSD-3-Clause
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
 1. Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.
 .
 2. Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.
 .
 3. Neither the name of the copyright holder nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.
 .
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
Loading