-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathqore-pgsql-module.spec
More file actions
174 lines (134 loc) · 5.02 KB
/
qore-pgsql-module.spec
File metadata and controls
174 lines (134 loc) · 5.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
%define mod_ver 3.4.0
%define module_api %(qore --latest-module-api 2>/dev/null)
%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: PostgreSQL DBI module for Qore
Name: qore-pgsql-module
Version: %{mod_ver}
Release: 1%{dist}
%if 0%{?suse_version}
License: LGPL-2.0+ or GPL-2.0+ or MIT
%else
License: LGPLv2+ or GPLv2+ or MIT
%endif
Group: Development/Languages/Other
URL: http://www.qoretechnologies.com/qore
Source: http://prdownloads.sourceforge.net/qore/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: /usr/bin/env
Requires: qore-module(abi)%{?_isa} = %{module_api}
BuildRequires: cmake >= 3.5
BuildRequires: gcc-c++
BuildRequires: qore-devel >= 0.9
BuildRequires: postgresql-devel
BuildRequires: qore
BuildRequires: openssl-devel
BuildRequires: doxygen
%description
PostgreSQL DBI driver module for the Qore Programming Language. The PostgreSQL
driver is character set aware, supports multithreading, transaction management,
stored prodedure and function execution, etc.
%if 0%{?suse_version}
%debug_package
%endif
%prep
%setup -q
%build
export CXXFLAGS="%{?optflags}"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DCMAKE_SKIP_RPATH=1 -DCMAKE_SKIP_INSTALL_RPATH=1 -DCMAKE_SKIP_BUILD_RPATH=1 -DCMAKE_PREFIX_PATH=${_prefix}/lib64/cmake/Qore .
make %{?_smp_mflags}
make %{?_smp_mflags} docs
sed -i 's/#!\/usr\/bin\/env qore/#!\/usr\/bin\/qore/' test/*.qtest
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{module_dir}
%doc COPYING.LGPL COPYING.MIT README RELEASE-NOTES AUTHORS
%package doc
Summary: PostgreSQL DBI module for Qore
Group: Development/Languages
%description doc
PostgreSQL module for the Qore Programming Language.
This RPM provides API documentation, test and example programs
%files doc
%defattr(-,root,root,-)
%doc docs/pgsql/html test/pgsql.qtest test/sql-stmt.q
%changelog
* Mon Mar 30 2026 David Nichols <david@qore.org> 3.4.0
- added pgvector extension type support (vector, halfvec, sparsevec)
- added pgsql_bind_vector() function for vector binding
- vectors returned as typed list<float> values
- halfvec decoded from IEEE 754 half-precision
- sparsevec returned as hash with dim, nnz, indices, values keys
- support for vector[] array binds via string type name
- added vector, halfvec, sparsevec to describe() output
- fixed memory leak in text-format typed scalar binds in reset()
- fixed uninitialized memory read by value-initializing parambuf
* Sun Dec 29 2024 David Nichols <david@qore.org> 3.3.0
- added native UUID type support with pgsql_bind_uuid() function
- added schema introspection SQL constants
- added additional character encoding mappings (Windows code pages 1250-1258)
- fixed a bug retrieving negative INT2 and INT4 values
- fixed interval array binding bug
- fixed boolean array binding bug
- fixed server description format in error messages
* Sat Dec 20 2025 David Nichols <david@qore.org> 3.2.1
- updated version to 3.2.1
* Sun Feb 20 2022 David Nichols <david@qore.org> 3.2.0
- updated version to 3.2.0
* Fri Dec 17 2021 David Nichols <david@qore.org> 3.1.1
- updated version to 3.1.1
* Mon Sep 10 2018 David Nichols <david@qore.org> 3.0
- updated version to 3.0
* Mon Sep 10 2018 David Nichols <david@qore.org> 2.4.2
- updated version to 2.4.1
* Tue Sep 13 2016 David Nichols <david@qore.org> 2.4.1
- updated version to 2.4.1
* Mon Mar 24 2014 David Nichols <david@qore.org> 2.4
- updated version to 2.4
* Wed Sep 18 2013 David Nichols <david@qore.org> 2.3
- updated version to 2.3
* Tue May 14 2013 David Nichols <david@qore.org> 2.2
- updated version to 2.2
* Mon Dec 10 2012 David Nichols <david@qore.org> 2.1
- updated version to 2.1
* Thu Sep 6 2012 David Nichols <david@qore.org> 2.0
- updated version to 2.0
* Thu Nov 24 2011 Petr Vanek <petr@scribus.info> 1.0.6
- updated version to 1.0.6
* Wed Nov 11 2009 David Nichols <david_nichols@users.sourceforge.net>
- updated version to 1.0.5
* Thu Jun 18 2009 David Nichols <david_nichols@users.sourceforge.net>
- updated version to 1.0.4
* Wed Mar 11 2009 David Nichols <david_nichols@users.sourceforge.net>
- updated version to 1.0.3
* Sat Jan 3 2009 David Nichols <david_nichols@users.sourceforge.net>
- updated version to 1.0.2
* Tue Sep 2 2008 David Nichols <david_nichols@users.sourceforge.net>
- initial spec file for separate pgsql release