soci 4.0.1-1 (armv7hnl;aarch64;znver1;x86_64) 2021-13568
0

Status rejected
Submitter mandian [@T] openmailbox.org
Platform rolling
Repository unsupported
URL https://abf.openmandriva.org/build_lists/982468
Packages
libsoci4-4.0.1-1.armv7hnl.binary
libsoci4-debuginfo-4.0.1-1.armv7hnl.debuginfo
libsoci-devel-4.0.1-1.armv7hnl.binary
soci-4.0.1-1.armv7hnl.binary
soci-4.0.1-1.armv7hnl.source
soci-debugsource-4.0.1-1.armv7hnl.binary
soci-doc-4.0.1-1.armv7hnl.binary
lib64soci4-4.0.1-1.aarch64.binary
lib64soci4-debuginfo-4.0.1-1.aarch64.debuginfo
lib64soci-devel-4.0.1-1.aarch64.binary
soci-4.0.1-1.aarch64.source
soci-4.0.1-1.aarch64.binary
soci-debugsource-4.0.1-1.aarch64.binary
soci-doc-4.0.1-1.aarch64.binary
lib64soci4-4.0.1-1.znver1.binary
lib64soci4-debuginfo-4.0.1-1.znver1.debuginfo
lib64soci-devel-4.0.1-1.znver1.binary
soci-4.0.1-1.znver1.binary
soci-4.0.1-1.znver1.source
soci-debugsource-4.0.1-1.znver1.binary
soci-doc-4.0.1-1.znver1.binary
lib64soci4-4.0.1-1.x86_64.binary
lib64soci4-debuginfo-4.0.1-1.x86_64.debuginfo
lib64soci-devel-4.0.1-1.x86_64.binary
soci-4.0.1-1.x86_64.binary
soci-4.0.1-1.x86_64.source
soci-debugsource-4.0.1-1.x86_64.binary
soci-doc-4.0.1-1.x86_64.binary
Build Date 2021-02-07 00:20:48 +0000 UTC
Last Updated 2021-02-09 01:31:44.148815343 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 30b17697a7b39900bd5fcbe755cdfdf3c14059f1

commit 30b17697a7b39900bd5fcbe755cdfdf3c14059f1
Author:     mandian <mandian@users.noreply.github.com>
AuthorDate: Mon Feb 1 00:24:04 2021 +0100
Commit:     mandian <mandian@users.noreply.github.com>
CommitDate: Mon Feb 1 00:24:04 2021 +0100

    4.0.1
---
 .abf.yml                  |  4 +--
 soci-3.2.3-fix-type.patch | 11 -------
 soci.spec                 | 76 ++++++++++++++++++++++-------------------------
 3 files changed, 36 insertions(+), 55 deletions(-)
 delete mode 100644 soci-3.2.3-fix-type.patch

diff --git a/.abf.yml b/.abf.yml
index cba96f5..5785dda 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,4 +1,2 @@
-removed_sources:
-  soci-3.1.0.zip: 9cb4491c09d7330a45cdfff6ed4931d8bd2731e0
 sources:
-  soci-3.2.3.zip: 805fcfc6f1199b9a7f8832d63bc9b0ac9da22507
+  soci-4.0.1.zip: 183ceafdc1ed064731d3ebe82770a338a204e736
diff --git a/soci-3.2.3-fix-type.patch b/soci-3.2.3-fix-type.patch
deleted file mode 100644
index 5b60927..0000000
--- a/soci-3.2.3-fix-type.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/backends/mysql/session.cpp
-+++ b/backends/mysql/session.cpp
-@@ -199,7 +199,7 @@
-                 throw soci_error(err);
-             }
-             *port = std::atoi(val.c_str());
--            if (port < 0)
-+            if (*port < 0)
-             {
-                 throw soci_error(err);
-             }
diff --git a/soci.spec b/soci.spec
index 81948cc..855f375 100644
--- a/soci.spec
+++ b/soci.spec
@@ -1,20 +1,26 @@
+%bcond_without empty
+%bcond_without odbc
+%bcond_without postgresql
 %bcond_without mysql
 %bcond_without sqlite3
-%bcond_without postgresql
-%bcond_without odbc
 
-%define major 3
+%define major 4
+%define minor 0
+%define patch 1
 %define libname %mklibname %{name} %{major}
 %define devname %mklibname %{name} -d
 
-Summary:	C++ Database Access Library
-Name:		soci
-Version:	3.2.3
-Release:	1
-License:	MIT
-Group:		Development/Databases
-URL:		http://soci.sourceforge.net/
+Summary:		C++ Database Access Library
+Name:			soci
+Version:		%{major}.%{minor}.%{patch}
+Release:		1
+License:		MIT
+Group:			Development/Databases
+URL:			http://soci.sourceforge.net/
+Source0:		http://downloads.sourceforge.net/project/soci/%{name}/%{name}-%{version}/%{name}-%{version}.zip
+
 BuildRequires:	cmake
+BuildRequires:	ninja
 BuildRequires:	boost-devel
 %if %{with_sqlite3}
 BuildRequires:	sqlite3-devel
@@ -28,8 +34,6 @@ BuildRequires:	mysql-devel
 %if %{with_odbc}
 BuildRequires:	unixODBC-devel
 %endif
-Source0:	http://downloads.sourceforge.net/project/soci/%{name}/%{name}-%{version}/%{name}-%{version}.zip
-Patch0:		%{name}-3.2.3-fix-type.patch
 
 %description
 SOCI is a database access library for C++ that makes the illusion of
@@ -39,7 +43,8 @@ the Standard C++.
 PostgreSQL, Firebird, MySQL, SQLite are supported databases.
 
 %files
-%doc README.md AUTHORS CHANGES LICENSE_1_0.txt
+%doc README.md AUTHORS
+%license LICENSE_1_0.txt
 
 #----------------------------------------------------------------------------
 
@@ -55,7 +60,7 @@ the Standard C++.
 This package is the documentation.
 
 %files doc
-%doc doc/
+%doc docs/
 
 #----------------------------------------------------------------------------
 
@@ -89,9 +94,9 @@ the Standard C++.
 This package contains development files.
 
 %files -n %{devname}
-%{_libdir}/libsoci_*.so
-%{_libdir}/libsoci_*.a
-%{_includedir}/soci
+%{_libdir}/lib%{name}_*.so
+%{_includedir}/%{name}
+%{_datadir}/cmake/%{name}
 
 #----------------------------------------------------------------------------
 
@@ -101,30 +106,19 @@ This package contains development files.
 
 %build
 %cmake \
-	-DSOCI_EMPTY:BOOL=OFF \
-%if %{with_mysql}
-	-DSOCI_MYSQL:BOOL=ON \
-%else
-	-DSOCI_MYSQL:BOOL=OFF \
-%endif
-%if %{with_odbc}
-	-DSOCI_ODBC:BOOL=ON \
-%else
-	-DSOCI_ODBC:BOOL=OFF \
-%endif
-%if %{with_postgresql}
-	-DSOCI_POSTGRESQL:BOOL=ON \
-%else
-	-DSOCI_POSTGRESQL:BOOL=OFF \
-%endif
-%if %{with_sqlite3}
-	-DSOCI_SQLITE3:BOOL=ON
-%else
-	-DSOCI_SQLITE3:BOOL=OFF
-%endif
-
-%make
+	-DSOCI_STATIC:BOOL=OFF \
+	-DSOCI_EMPTY:BOOL==%{?with_empty:ON}%{?without_empty:OFF} \
+	-DSOCI_MYSQL:BOOL=%{?with_mysql:ON}%{?without_mysql:OFF} \
+	-DSOCI_ODBC:BOOL=%{?with_odbc:ON}%{?without_odbc:OFF} \
+	-DSOCI_POSTGRESQL:BOOL==%{?with_postgresql:ON}%{?without_postgresql:OFF} \
+	-DSOCI_SQLITE3:BOOL=%{?with_sqlite3:ON}%{?without_sqlite3:OFF} \
+	-G Ninja
+%ninja_build
 
 %install
-%makeinstall_std -C build
+%ninja_install -C build
+
+# fix cmake path
+install -dm 0755 %{buildroot}%{_datadir}/cmake/%{name}
+mv -f %{buildroot}%{_prefix}/cmake %{buildroot}%{_datadir}/cmake/%{name}
 
Not Available

benbullard79 [@T] cox.netNo Comment.1385d 01hrs