Accepting request 90187 from home:jengelh:dev
OBS-URL: https://build.opensuse.org/request/show/90187 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cppdb?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
cppdb-0.0.3.tar.xz
Normal file
3
cppdb-0.0.3.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dd3c446a2fb842b5597a92053221194e11cfe234669ac99fd445ad888c745f47
|
||||
size 68024
|
||||
17
cppdb-postgres.diff
Normal file
17
cppdb-postgres.diff
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: cppdb-0.0.3/CMakeLists.txt
|
||||
===================================================================
|
||||
--- cppdb-0.0.3.orig/CMakeLists.txt
|
||||
+++ cppdb-0.0.3/CMakeLists.txt
|
||||
@@ -160,7 +160,7 @@ endif()
|
||||
|
||||
if(NOT DISABLE_PQ)
|
||||
find_library(PQ_LIB pq)
|
||||
- find_path(PQ_PATH libpq-fe.h PATH_SUFFIXES postgresql)
|
||||
+ find_path(PQ_PATH libpq-fe.h PATH_SUFFIXES postgresql pgsql)
|
||||
if(PQ_LIB AND PQ_PATH)
|
||||
include_directories(${PQ_PATH})
|
||||
if(PQ_BACKEND_INTERNAL)
|
||||
160
cppdb.spec
Normal file
160
cppdb.spec
Normal file
@@ -0,0 +1,160 @@
|
||||
#
|
||||
# spec file for package librecad
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: cppdb
|
||||
%define sover 0
|
||||
Summary: Database-independent SQL connectivity library
|
||||
Version: 0.0.3
|
||||
Release: 0
|
||||
URL: http://art-blog.no-ip.info/sql/cppdb/
|
||||
License: MIT/Boost
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
Source: %name-%version.tar.xz
|
||||
Patch1: cppdb-postgres.diff
|
||||
BuildRoot: %_tmppath/%name-%version-build
|
||||
BuildRequires: cmake, gcc-c++, libmysqlclient-devel, postgresql-devel
|
||||
BuildRequires: pkgconfig(sqlite3), unixODBC-devel, xz
|
||||
|
||||
%description
|
||||
CppDB is an SQL connectivity library that is designed to provide
|
||||
platform and Database independent connectivity API similarly to what
|
||||
JDBC, ODBC and other connectivity libraries do.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for cppdb
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libcppdb%sover = %version
|
||||
# The rest are plugins, no Requires needed.
|
||||
|
||||
%description devel
|
||||
CppDB is an SQL connectivity library that is designed to provide
|
||||
platform and Database independent connectivity API similarly to what
|
||||
JDBC, ODBC and other connectivity libraries do.
|
||||
|
||||
This package contains the development files (headers, link-time
|
||||
file references) for cppdb.
|
||||
|
||||
%package -n libcppdb%sover
|
||||
Summary: Database-independent SQL connectivity library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libcppdb%sover
|
||||
CppDB is an SQL connectivity library that is designed to provide
|
||||
platform and Database independent connectivity API similarly to what
|
||||
JDBC, ODBC and other connectivity libraries do.
|
||||
|
||||
%package -n libcppdb_mysql%sover
|
||||
Summary: MySQL database connector for the cppdb library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libcppdb_mysql%sover
|
||||
CppDB is an SQL connectivity library that is designed to provide
|
||||
platform and Database independent connectivity API similarly to what
|
||||
JDBC, ODBC and other connectivity libraries do.
|
||||
|
||||
This package contains the MySQL database connector.
|
||||
|
||||
%package -n libcppdb_odbc%sover
|
||||
Summary: unixODBC database connector for the cppdb library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libcppdb_odbc%sover
|
||||
CppDB is an SQL connectivity library that is designed to provide
|
||||
platform and Database independent connectivity API similarly to what
|
||||
JDBC, ODBC and other connectivity libraries do.
|
||||
|
||||
This package contains the unixODBC database connector.
|
||||
|
||||
%package -n libcppdb_postgresql%sover
|
||||
Summary: PostgreSQL database connector for the cppdb library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libcppdb_postgresql%sover
|
||||
CppDB is an SQL connectivity library that is designed to provide
|
||||
platform and Database independent connectivity API similarly to what
|
||||
JDBC, ODBC and other connectivity libraries do.
|
||||
|
||||
This package contains the PostgreSQL database connector.
|
||||
|
||||
%package -n libcppdb_sqlite3-%sover
|
||||
Summary: SQLite3 database connector for the cppdb library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libcppdb_sqlite3-%sover
|
||||
CppDB is an SQL connectivity library that is designed to provide
|
||||
platform and Database independent connectivity API similarly to what
|
||||
JDBC, ODBC and other connectivity libraries do.
|
||||
|
||||
This package contains the SQLite3 database connector.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P 1 -p1
|
||||
|
||||
%build
|
||||
cmake -DCMAKE_INSTALL_PREFIX="%_prefix" \
|
||||
-DCMAKE_CFLAGS="%optflags" -DCMAKE_CXXFLAGS="%optflags" \
|
||||
-DBUILD_STATIC_LIBRARIES=false;
|
||||
make %{?_smp_mflags};
|
||||
|
||||
%install
|
||||
b="%buildroot";
|
||||
make install DESTDIR="%buildroot";
|
||||
if [ "%_libdir" != "%_prefix/lib" ]; then
|
||||
mkdir -p "$b/%_libdir";
|
||||
mv "$b/%_prefix/lib"/*.so* "$b/%_libdir/";
|
||||
rm -f "$b/%_prefix/lib"/*.a;
|
||||
else
|
||||
rm -f "$b/%_libdir"/*.a;
|
||||
fi;
|
||||
|
||||
%post -n libcppdb%sover -p /sbin/ldconfig
|
||||
%post -n libcppdb_mysql%sover -p /sbin/ldconfig
|
||||
%post -n libcppdb_odbc%sover -p /sbin/ldconfig
|
||||
%post -n libcppdb_postgresql%sover -p /sbin/ldconfig
|
||||
%post -n libcppdb_sqlite3-%sover -p /sbin/ldconfig
|
||||
%postun -n libcppdb%sover -p /sbin/ldconfig
|
||||
%postun -n libcppdb_mysql%sover -p /sbin/ldconfig
|
||||
%postun -n libcppdb_odbc%sover -p /sbin/ldconfig
|
||||
%postun -n libcppdb_postgresql%sover -p /sbin/ldconfig
|
||||
%postun -n libcppdb_sqlite3-%sover -p /sbin/ldconfig
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%_includedir/cppdb
|
||||
%_libdir/*.so
|
||||
|
||||
%files -n libcppdb%sover
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libcppdb.so.%{sover}*
|
||||
|
||||
%files -n libcppdb_mysql%sover
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libcppdb_mysql.so.%{sover}*
|
||||
|
||||
%files -n libcppdb_odbc%sover
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libcppdb_odbc.so.%{sover}*
|
||||
|
||||
%files -n libcppdb_postgresql%sover
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libcppdb_postgresql.so.%{sover}*
|
||||
|
||||
%files -n libcppdb_sqlite3-%sover
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libcppdb_sqlite3.so.%{sover}*
|
||||
Reference in New Issue
Block a user