forked from pool/orafce
* new aggregate function wm_concat * PostgreSQL 9.6, 10 are supported well * remove support for 8.3, 8.4, 9.0, 9.1 (only 9.2 and higher are supported) * new functions: sysdate, sessiontimezone, dbtimezone * remove support for 8.2 * add support for 9.5 * change the releasion number system * new functions: to_single_byte, to_multi_byte, nanvl, length, ltrim, btrim, rtrim, lpad, rpad * fix compilation issue in new code for Pg <= 9.1 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/orafce?expand=0&rev=10
54 lines
1.6 KiB
RPMSpec
54 lines
1.6 KiB
RPMSpec
#
|
|
%define gitname VERSION_3_4_0
|
|
%define pgname @BUILD_FLAVOR@
|
|
%define realname orafce
|
|
|
|
Name: %{pgname}-orafce
|
|
Version: 3.4.0
|
|
Release: 7
|
|
Summary: Implementation of some Oracle functions into PostgreSQL
|
|
Group: Productivity/Databases/Tools
|
|
License: BSD
|
|
URL: http://pgfoundry.org/projects/orafce/
|
|
#Source0: http://pgfoundry.org/frs/download.php/2361/%{name}-%{version}.tar.gz
|
|
Source0: %{realname}-%{gitname}.tar.gz
|
|
# PATCH-FIX-UPSTREAM fix for upsteam https://github.com/orafce/orafce/pull/4
|
|
Patch1: orafce-orafce_sql_yyparse-bison26.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: %{pgname}-devel openssl-devel krb5-devel bison flex
|
|
Requires: %{pgname}-server
|
|
Provides: orafce = %{version}-%{release}
|
|
%if "%{pgversion}" == ""
|
|
ExclusiveArch: do_not_build
|
|
%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}-%{gitname}
|
|
#%patch1 -p1
|
|
#sed -i 's/\r//' doc/style.css
|
|
|
|
%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
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYRIGHT.orafce INSTALL.orafce README.asciidoc NEWS
|
|
%{_prefix}/lib/%{pgname}/%{_lib}
|
|
%{_datadir}/%{pgname}/
|
|
%exclude %{_docdir}/%{pgname}/
|
|
|