cppdb-0.3.1
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cppdb?expand=0&rev=5
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:66bc0b97aa7194d97898601603844575c22fd6571475ba9849e86d4ad7620e2b
|
|
||||||
size 643223
|
|
||||||
3
cppdb-0.3.1.tar.bz2
Normal file
3
cppdb-0.3.1.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d60eef5a732d8f84ef5e4a2845a8cefc543a6c75bf3782589c2cf6aa150b992e
|
||||||
|
size 251449
|
||||||
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 3 23:11:51 UTC 2012 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Update to new upstream release 0.3.1
|
||||||
|
* Fixed bug #3536452: cppdb::transaction::~transaction() could
|
||||||
|
leak exception; and busy_timeout option was not working for
|
||||||
|
sqlite3 backend
|
||||||
|
* Fixed incorrect use of SQLITE_STATIC that could cause crash
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Apr 14 15:44:21 UTC 2012 - adam@mizerski.pl
|
Sat Apr 14 15:44:21 UTC 2012 - adam@mizerski.pl
|
||||||
|
|
||||||
|
|||||||
125
cppdb.spec
125
cppdb.spec
@@ -15,16 +15,17 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: cppdb
|
Name: cppdb
|
||||||
%define sover 0
|
%define sover 0
|
||||||
Version: 0.3.0
|
Version: 0.3.1
|
||||||
Release: 0
|
Release: 0
|
||||||
License: MIT; BSL-1.0
|
License: MIT ; BSL-1.0
|
||||||
Summary: Database-independent SQL connectivity library
|
Summary: Database-independent SQL connectivity library
|
||||||
Url: http://cppcms.com/sql/cppdb/
|
Url: http://cppcms.com/sql/cppdb/
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
Source: http://sourceforge.net/projects/cppcms/files/cppdb/%{version}/cppdb-%{version}.tar.bz2
|
Source: http://downloads.sf.net/cppcms/%name-%version.tar.bz2
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@@ -42,7 +43,7 @@ JDBC, ODBC and other connectivity libraries do.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for cppdb
|
Summary: Development files for cppdb
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libcppdb%{sover} = %{version}
|
Requires: libcppdb%sover = %version
|
||||||
# The rest are plugins, no Requires needed.
|
# The rest are plugins, no Requires needed.
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@@ -53,53 +54,53 @@ JDBC, ODBC and other connectivity libraries do.
|
|||||||
This package contains the development files (headers, link-time
|
This package contains the development files (headers, link-time
|
||||||
file references) for cppdb.
|
file references) for cppdb.
|
||||||
|
|
||||||
%package -n libcppdb%{sover}
|
%package -n libcppdb%sover
|
||||||
Summary: Database-independent SQL connectivity library
|
Summary: Database-independent SQL connectivity library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcppdb%{sover}
|
%description -n libcppdb%sover
|
||||||
CppDB is an SQL connectivity library that is designed to provide
|
CppDB is an SQL connectivity library that is designed to provide
|
||||||
platform and Database independent connectivity API similarly to what
|
platform and Database independent connectivity API similarly to what
|
||||||
JDBC, ODBC and other connectivity libraries do.
|
JDBC, ODBC and other connectivity libraries do.
|
||||||
|
|
||||||
%package -n libcppdb_mysql%{sover}
|
%package -n libcppdb_mysql%sover
|
||||||
Summary: MySQL database connector for the cppdb library
|
Summary: MySQL database connector for the cppdb library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcppdb_mysql%{sover}
|
%description -n libcppdb_mysql%sover
|
||||||
CppDB is an SQL connectivity library that is designed to provide
|
CppDB is an SQL connectivity library that is designed to provide
|
||||||
platform and Database independent connectivity API similarly to what
|
platform and Database independent connectivity API similarly to what
|
||||||
JDBC, ODBC and other connectivity libraries do.
|
JDBC, ODBC and other connectivity libraries do.
|
||||||
|
|
||||||
This package contains the MySQL database connector.
|
This package contains the MySQL database connector.
|
||||||
|
|
||||||
%package -n libcppdb_odbc%{sover}
|
%package -n libcppdb_odbc%sover
|
||||||
Summary: unixODBC database connector for the cppdb library
|
Summary: unixODBC database connector for the cppdb library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcppdb_odbc%{sover}
|
%description -n libcppdb_odbc%sover
|
||||||
CppDB is an SQL connectivity library that is designed to provide
|
CppDB is an SQL connectivity library that is designed to provide
|
||||||
platform and Database independent connectivity API similarly to what
|
platform and Database independent connectivity API similarly to what
|
||||||
JDBC, ODBC and other connectivity libraries do.
|
JDBC, ODBC and other connectivity libraries do.
|
||||||
|
|
||||||
This package contains the unixODBC database connector.
|
This package contains the unixODBC database connector.
|
||||||
|
|
||||||
%package -n libcppdb_postgresql%{sover}
|
%package -n libcppdb_postgresql%sover
|
||||||
Summary: PostgreSQL database connector for the cppdb library
|
Summary: PostgreSQL database connector for the cppdb library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcppdb_postgresql%{sover}
|
%description -n libcppdb_postgresql%sover
|
||||||
CppDB is an SQL connectivity library that is designed to provide
|
CppDB is an SQL connectivity library that is designed to provide
|
||||||
platform and Database independent connectivity API similarly to what
|
platform and Database independent connectivity API similarly to what
|
||||||
JDBC, ODBC and other connectivity libraries do.
|
JDBC, ODBC and other connectivity libraries do.
|
||||||
|
|
||||||
This package contains the PostgreSQL database connector.
|
This package contains the PostgreSQL database connector.
|
||||||
|
|
||||||
%package -n libcppdb_sqlite3-%{sover}
|
%package -n libcppdb_sqlite3-%sover
|
||||||
Summary: SQLite3 database connector for the cppdb library
|
Summary: SQLite3 database connector for the cppdb library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcppdb_sqlite3-%{sover}
|
%description -n libcppdb_sqlite3-%sover
|
||||||
CppDB is an SQL connectivity library that is designed to provide
|
CppDB is an SQL connectivity library that is designed to provide
|
||||||
platform and Database independent connectivity API similarly to what
|
platform and Database independent connectivity API similarly to what
|
||||||
JDBC, ODBC and other connectivity libraries do.
|
JDBC, ODBC and other connectivity libraries do.
|
||||||
@@ -107,23 +108,11 @@ JDBC, ODBC and other connectivity libraries do.
|
|||||||
This package contains the SQLite3 database connector.
|
This package contains the SQLite3 database connector.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation and examples for CppDB
|
|
||||||
Group: Documentation/Other
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description doc
|
|
||||||
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 pdf documentation and examples.
|
|
||||||
|
|
||||||
%package doc-html
|
|
||||||
Summary: HTML documentation for CppDB
|
Summary: HTML documentation for CppDB
|
||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc-html
|
%description doc
|
||||||
CppDB is an SQL connectivity library that is designed to provide
|
CppDB is an SQL connectivity library that is designed to provide
|
||||||
platform and Database independent connectivity API similarly to what
|
platform and Database independent connectivity API similarly to what
|
||||||
JDBC, ODBC and other connectivity libraries do.
|
JDBC, ODBC and other connectivity libraries do.
|
||||||
@@ -134,71 +123,61 @@ This package contains HTML documentation.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS='%{optflags}'
|
export CFLAGS="%optflags"
|
||||||
export CXXFLAGS='%{optflags}'
|
export CXXFLAGS="%optflags"
|
||||||
cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
cmake -DCMAKE_INSTALL_PREFIX="%_prefix" -DLIBDIR="%_libdir" \
|
||||||
-DODBC_BACKEND_INTERNAL=OFF
|
-DODBC_BACKEND_INTERNAL="OFF";
|
||||||
make %{?_smp_mflags} VERBOSE=1
|
make %{?_smp_mflags};
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot} VERBOSE=1
|
b="%buildroot";
|
||||||
if [ "%{_lib}" != "lib" ]; then
|
make install DESTDIR="$b"
|
||||||
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
|
rm -f "$b/%_libdir"/*.a "$b/%_libdir"/libcppdb_*.so
|
||||||
fi
|
|
||||||
rm -f %{buildroot}%{_libdir}/*.a
|
|
||||||
|
|
||||||
rm html/installdox
|
rm html/installdox
|
||||||
mkdir -p %{buildroot}%{_datadir}/doc/%{name}
|
mkdir -p "$b/%_docdir/%name";
|
||||||
cp -r html pdf examples %{buildroot}%{_datadir}/doc/%{name}
|
cp -a html examples "$b/%_docdir/%name/";
|
||||||
%fdupes -s %{buildroot}%{_datadir}/doc/%{name}/html
|
%fdupes -s %buildroot/%_docdir/%name
|
||||||
|
|
||||||
%post -n libcppdb%{sover} -p /sbin/ldconfig
|
%post -n libcppdb%sover -p /sbin/ldconfig
|
||||||
%post -n libcppdb_mysql%{sover} -p /sbin/ldconfig
|
%post -n libcppdb_mysql%sover -p /sbin/ldconfig
|
||||||
%post -n libcppdb_odbc%{sover} -p /sbin/ldconfig
|
%post -n libcppdb_odbc%sover -p /sbin/ldconfig
|
||||||
%post -n libcppdb_postgresql%{sover} -p /sbin/ldconfig
|
%post -n libcppdb_postgresql%sover -p /sbin/ldconfig
|
||||||
%post -n libcppdb_sqlite3-%{sover} -p /sbin/ldconfig
|
%post -n libcppdb_sqlite3-%sover -p /sbin/ldconfig
|
||||||
%postun -n libcppdb%{sover} -p /sbin/ldconfig
|
%postun -n libcppdb%sover -p /sbin/ldconfig
|
||||||
%postun -n libcppdb_mysql%{sover} -p /sbin/ldconfig
|
%postun -n libcppdb_mysql%sover -p /sbin/ldconfig
|
||||||
%postun -n libcppdb_odbc%{sover} -p /sbin/ldconfig
|
%postun -n libcppdb_odbc%sover -p /sbin/ldconfig
|
||||||
%postun -n libcppdb_postgresql%{sover} -p /sbin/ldconfig
|
%postun -n libcppdb_postgresql%sover -p /sbin/ldconfig
|
||||||
%postun -n libcppdb_sqlite3-%{sover} -p /sbin/ldconfig
|
%postun -n libcppdb_sqlite3-%sover -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc LICENSE_1_0.txt MIT.txt copyright.txt
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/cppdb
|
%doc LICENSE_1_0.txt MIT.txt copyright.txt
|
||||||
%{_libdir}/*.so
|
%_includedir/cppdb
|
||||||
|
%_libdir/libcppdb.so
|
||||||
|
|
||||||
%files -n libcppdb%{sover}
|
%files -n libcppdb%sover
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libcppdb.so.%{sover}*
|
%_libdir/libcppdb.so.%{sover}*
|
||||||
|
|
||||||
%files -n libcppdb_mysql%{sover}
|
%files -n libcppdb_mysql%sover
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libcppdb_mysql.so.%{sover}*
|
%_libdir/libcppdb_mysql.so.%{sover}*
|
||||||
|
|
||||||
%files -n libcppdb_odbc%{sover}
|
%files -n libcppdb_odbc%sover
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libcppdb_odbc.so.%{sover}*
|
%_libdir/libcppdb_odbc.so.%{sover}*
|
||||||
|
|
||||||
%files -n libcppdb_postgresql%{sover}
|
%files -n libcppdb_postgresql%sover
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libcppdb_postgresql.so.%{sover}*
|
%_libdir/libcppdb_postgresql.so.%{sover}*
|
||||||
|
|
||||||
%files -n libcppdb_sqlite3-%{sover}
|
%files -n libcppdb_sqlite3-%sover
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libcppdb_sqlite3.so.%{sover}*
|
%_libdir/libcppdb_sqlite3.so.%{sover}*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_datadir}/doc/%{name}
|
%_docdir/%name
|
||||||
%{_datadir}/doc/%{name}/pdf
|
|
||||||
%{_datadir}/doc/%{name}/examples
|
|
||||||
|
|
||||||
%files doc-html
|
%changelog
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_datadir}/doc/%{name}
|
|
||||||
%{_datadir}/doc/%{name}/html
|
|
||||||
|
|||||||
Reference in New Issue
Block a user