SHA256
1
0
forked from pool/orafce
orafce/orafce.spec
Reinhard Max 7c03d65fc2 Accepting request 139946 from home:deadpoint
Updated orafce to the latest git release which supports pg92 and reworked packaging to support multiple version of postgresql. There are 2 linked packages, postgresql9*-orafce, associated with this package. Please make me the maintainer.

OBS-URL: https://build.opensuse.org/request/show/139946
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/orafce?expand=0&rev=2
2012-11-13 08:10:56 +00:00

46 lines
1.3 KiB
RPMSpec

#
%define gitname HEAD-36ccc5b
%define pgversion ##
Name: orafce
Version: 3.0.5a
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: %{name}-%{gitname}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: postgresql%{pgversion}-devel openssl-devel krb5-devel bison flex
Requires: postgresql%{pgversion}-server
Provides: orafce
%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 %{name}-%{gitname}
#sed -i 's/\r//' doc/style.css
%build
make USE_PGXS=1 %{?_smp_mflags} FLEX=/usr/bin/flex
%install
rm -rf $RPM_BUILD_ROOT
make USE_PGXS=1 install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYRIGHT.orafunc INSTALL.orafunc README.orafunc
%{_libdir}/postgresql%{pgversion}/
%{_datadir}/postgresql%{pgversion}/
%exclude %{_docdir}/postgresql%{pgversion}/