orafce/orafce.spec
Emiliano Langella 8aa65b1c84 Accepting request 1136069 from home:emilianolangella
- Update to version 4.9.0+git0.18d82db:
  * prepare for 4.9.0
  * Fix REGEXP_COUNT and REGEXP_SUBSTR function to have the same behavior than Oracle with newline characters and the use of dot in the pattern.
  * Added a test case about dbms_sql.debug_cursor
  * don't try to show content of variable when it is null. fix issue #247
  * mark some func parallel safe
  * When third argument of substr function is zero, then oracle returns null, but orafce returns empty string. This commit forces oracle's behaviour by default, but allows (by compatibility option orafce.using_substring_zero_width_in_substr set original orafce's behaviour. fix issue #240
  * copy to_char(text) from orafce--4.7--4.8.sql to orafce--4.8.sql
  * mark some func parallel safe; fix makefile
  * add orafce--4.8.sql (rename orafce--4.7.sql)
  * add func: to_char(text)
  * mark lpad, rpad, to_char, to_number parallel safe
  * mark btrim,ltrim,rtrim parallel(because not support postgres version < 9.6, so directly change it)
  * doesn't support postgresql extensions
  * Create c-cpp.yml

OBS-URL: https://build.opensuse.org/request/show/1136069
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/orafce?expand=0&rev=45
2024-01-02 08:27:56 +00:00

68 lines
2.0 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pgname @BUILD_FLAVOR@
%define realname orafce
Name: %{pgname}-orafce
Version: 4.9.0+git0.18d82db
Release: 0
Summary: Implementation of some Oracle functions into PostgreSQL
Group: Productivity/Databases/Tools
License: MIT
URL: https://github.com/orafce/orafce
Source0: %{realname}-%{version}.tar.gz
BuildRequires: %{pgname}-server-devel
BuildRequires: bison
BuildRequires: flex
BuildRequires: krb5-devel
BuildRequires: libicu-devel
BuildRequires: openssl-devel
%requires_eq %{pgname}-server
Provides: orafce = %{version}-%{release}
%if "%{pgname}" == ""
ExclusiveArch: do_not_build
Name: %{realname}
%endif
%description
The goal of this project is implementation some functions from Oracle database.
Some date functions (next_day, last_day, trunc, round, ...) are implemented
now. Functionality was verified on Oracle 10g and module is useful
for production work.
%prep
%setup -q -n %{realname}-%{version}
%build
export PATH="$PATH:/usr/lib/%{pgname}/bin"
make USE_PGXS=1 %{?_smp_mflags} FLEX=/usr/bin/flex
%install
export PATH="$PATH:/usr/lib/%{pgname}/bin"
make USE_PGXS=1 install DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYRIGHT.orafce INSTALL.orafce README.asciidoc NEWS
%{_prefix}/lib/%{pgname}/%{_lib}
%{_datadir}/%{pgname}/
%exclude %{_docdir}/%{pgname}/
%changelog