OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/orafce?expand=0&rev=13
54 lines
1.4 KiB
RPMSpec
54 lines
1.4 KiB
RPMSpec
#
|
|
%define pgname @BUILD_FLAVOR@
|
|
%define realname orafce
|
|
|
|
Name: %{pgname}-orafce
|
|
Version: 3.6.1+git24.cf58d28
|
|
Release: 0
|
|
Summary: Implementation of some Oracle functions into PostgreSQL
|
|
Group: Productivity/Databases/Tools
|
|
License: BSD
|
|
URL: https://github.com/orafce/orafce
|
|
Source0: %{realname}-%{version}.tar.xz
|
|
BuildRequires: %{pgname}-server-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: libicu-devel
|
|
BuildRequires: krb5-devel
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
%requires_eq %{pgname}-server
|
|
Provides: orafce = %{version}-%{release}
|
|
%if "%{pgname}" == ""
|
|
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}-%{version}
|
|
#%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}/
|
|
|