Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qore-mysql-module for 
openSUSE:Factory checked in at 2022-05-28 22:16:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qore-mysql-module (Old)
 and      /work/SRC/openSUSE:Factory/.qore-mysql-module.new.2254 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qore-mysql-module"

Sat May 28 22:16:53 2022 rev:8 rq:979581 version:2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/qore-mysql-module/qore-mysql-module.changes      
2021-11-23 22:12:38.174467989 +0100
+++ 
/work/SRC/openSUSE:Factory/.qore-mysql-module.new.2254/qore-mysql-module.changes
    2022-05-28 22:17:36.293058149 +0200
@@ -1,0 +2,15 @@
+Sat May 28 11:46:57 UTC 2022 - Sarah Kriesch <[email protected]>
+
+- Update to version 2.1
+  * implemented support for the selectRow DBI method
+  * implemented support for the prepared statement API; 
+    the driver uses MySQL's prepared statement API internal 
+    to bind to Qore's DBI prepared statement API
+  * implemented support for binding and retrieving "number" types
+  * implemented support for the following DBI options:
+    - "optimal-numbers"
+    - "string-numbers"
+    - "numeric-numbers"
+    - "timezone"
+ 
+-------------------------------------------------------------------

Old:
----
  module-mysql-release-1.0.10.tar.gz

New:
----
  qore-mysql-module-2.1.tar.bz2

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

Other differences:
------------------
++++++ qore-mysql-module.spec ++++++
--- /var/tmp/diff_new_pack.x4LqMn/_old  2022-05-28 22:17:36.725058683 +0200
+++ /var/tmp/diff_new_pack.x4LqMn/_new  2022-05-28 22:17:36.729058689 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package qore-mysql-module
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,59 +16,106 @@
 #
 
 
-%define qore_version 1.0.10
-%define src_name module-mysql-release-%{qore_version}
+%define mod_ver 2.1
 %define module_api %(qore --latest-module-api 2>/dev/null)
-Name:           qore-mysql-module
-Version:        2.0.2.1+qore%{qore_version}
-Release:        0
+%define module_dir %{_libdir}/qore-modules
+
+%if 0%{?sles_version}
+
+%define dist .sles%{?sles_version}
+
+%else
+%if 0%{?suse_version}
+
+# get *suse release major version
+%define os_maj %(echo %suse_version|rev|cut -b3-|rev)
+# get *suse release minor version without trailing zeros
+%define os_min %(echo %suse_version|rev|cut -b-2|rev|sed s/0*$//)
+
+%if %suse_version > 1010
+%define dist .opensuse%{os_maj}_%{os_min}
+%else
+%define dist .suse%{os_maj}_%{os_min}
+%endif
+
+%endif
+%endif
+
+# see if we can determine the distribution type
+%if 0%{!?dist:1}
+%define rh_dist %(if [ -f /etc/redhat-release ];then cat 
/etc/redhat-release|sed "s/[^0-9.]*//"|cut -f1 -d.;fi)
+%if 0%{?rh_dist}
+%define dist .rhel%{rh_dist}
+%else
+%define dist .unknown
+%endif
+%endif
+
 Summary:        MySQL DBI module for Qore
-License:        LGPL-2.1-or-later OR GPL-2.0-or-later
-Group:          Development/Languages/Other
-Url:            https://qore.org
-Source:         
https://github.com/qorelanguage/module-mysql/archive/release-%{qore_version}/%{src_name}.tar.gz
-BuildRequires:  cmake
-BuildRequires:  doxygen
-BuildRequires:  fdupes
+Name:           qore-mysql-module
+Version:        %{mod_ver}
+Release:        1%{dist}
+License:        GPL-2.0-or-later OR LGPL-2.1-or-later
+Group:          Development/Languages
+URL:            http://www.qoretechnologies.com/qore
+Source:         
https://github.com/qorelanguage/module-mysql/releases/download/v%{version}/%{name}-%{version}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Requires:       /usr/bin/env
+Requires:       qore-module(abi)%{?_isa} = %{module_api}
 BuildRequires:  gcc-c++
+BuildRequires:  qore-devel >= 0.9
+%if 0%{?sles_version}
+BuildRequires:  mysql-devel
+%else
+%if 0%{?suse_version}
 BuildRequires:  libmysqlclient-devel
+%else
+BuildRequires:  mysql-devel
+%endif
+%endif
 BuildRequires:  qore
-BuildRequires:  qore-devel >= %{qore_version}
-Requires:       %{_bindir}/env
-Requires:       qore-module(abi)%{?_isa} = %{module_api}
 
 %description
 MySQL DBI driver module for the Qore Programming Language. The MySQL driver is
 character set aware and supports multithreading, transaction management, and
 stored procedure execution.
 
-%package doc
-Summary:        MySQL DBI module for Qore
-Group:          Development/Languages/Other
-BuildArch:      noarch
-
-%description doc
-MySQL module for the Qore Programming Language.
 
-This package provides API documentation, and example programs
+%if 0%{?suse_version}
+%endif
 
 %prep
-%setup -q -n %{src_name}
+%setup -q
+./configure RPM_OPT_FLAGS="$RPM_OPT_FLAGS" --prefix=/usr --disable-debug
 
 %build
-%cmake
-%make_build docs
+%{__make}
 
 %install
-%cmake_install
-%fdupes -s %{__builddir}/html
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/%{module_dir}
+mkdir -p $RPM_BUILD_ROOT/usr/share/doc/qore-mysql-module
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %files
-%license COPYING.GPL COPYING.LGPL
-%doc README RELEASE-NOTES AUTHORS
-%{_libdir}/qore-modules
+%defattr(-,root,root,-)
+%{module_dir}
+%doc COPYING.GPL COPYING.LGPL README RELEASE-NOTES ChangeLog AUTHORS
+
+%package doc
+Summary:        MySQL DBI module for Qore
+Group:          Development/Languages
+
+%description doc
+MySQL module for the Qore Programming Language.
+
+This RPM provides API documentation, test and example programs
 
 %files doc
-%doc %{__builddir}/html
+%defattr(-,root,root,-)
+%doc docs/mysql/html test/db-test.q test/sql-stmt.q
 
 %changelog

Reply via email to