Hello community,

here is the log from the commit of package cppdb for openSUSE:Factory checked 
in at 2014-04-03 16:47:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cppdb (Old)
 and      /work/SRC/openSUSE:Factory/.cppdb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cppdb"

Changes:
--------
--- /work/SRC/openSUSE:Factory/cppdb/cppdb.changes      2013-03-12 
06:53:51.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.cppdb.new/cppdb.changes 2014-04-03 
16:47:47.000000000 +0200
@@ -1,0 +2,5 @@
+Wed Mar 26 13:06:53 UTC 2014 - [email protected]
+
+- make specfile build with SLE11 too
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cppdb.spec ++++++
--- /var/tmp/diff_new_pack.d5gWOA/_old  2014-04-03 16:47:47.000000000 +0200
+++ /var/tmp/diff_new_pack.d5gWOA/_new  2014-04-03 16:47:47.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package cppdb
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -16,6 +16,12 @@
 #
 
 
+%if 0%{?suse_version} >= 1230
+       %define have_sqlite 1
+%else
+       %define have_sqlite 0
+%endif
+
 Name:           cppdb
 %define sover 0
 Version:        0.3.1
@@ -26,14 +32,16 @@
 Url:            http://cppcms.com/sql/cppdb/
 
 Source:         http://downloads.sf.net/cppcms/%name-%version.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  cmake
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  libmysqlclient-devel
 BuildRequires:  postgresql-devel
 BuildRequires:  unixODBC-devel
+%if %have_sqlite
 BuildRequires:  pkgconfig(sqlite3)
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%endif
 
 %description
 CppDB is an SQL connectivity library that is designed to provide
@@ -110,7 +118,9 @@
 %package doc
 Summary:        HTML documentation for CppDB
 Group:          Documentation/HTML
+%if 0%{?suse_version} >= 1140
 BuildArch:      noarch
+%endif
 
 %description doc
 CppDB is an SQL connectivity library that is designed to provide
@@ -126,7 +136,12 @@
 export CFLAGS="%optflags"
 export CXXFLAGS="%optflags"
 cmake -DCMAKE_INSTALL_PREFIX="%_prefix" -DLIBDIR="%_libdir" \
-       -DODBC_BACKEND_INTERNAL="OFF";
+       -DODBC_BACKEND_INTERNAL="OFF" \
+%if !%have_sqlite
+       -DDISABLE_SQLITE=ON \
+%endif
+;
+
 make %{?_smp_mflags};
 
 %install
@@ -143,11 +158,13 @@
 %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
+
+%post -n libcppdb_sqlite3-%sover -p /sbin/ldconfig
 %postun -n libcppdb_sqlite3-%sover -p /sbin/ldconfig
 
 %files devel
@@ -172,9 +189,11 @@
 %defattr(-,root,root)
 %_libdir/libcppdb_postgresql.so.%{sover}*
 
+%if %have_sqlite
 %files -n libcppdb_sqlite3-%sover
 %defattr(-,root,root)
 %_libdir/libcppdb_sqlite3.so.%{sover}*
+%endif
 
 %files doc
 %defattr(-,root,root)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to