orafce/postgresql93-orafce.spec
Darin Perusich c5b5c1a9bb - rename README.orafunc to README.asciidoc
- rename README.orafunc to README.asciidoc
- updated to verion 3.0.6
- generate specs for PG 9.3

- rename README.orafunc to README.asciidoc
- updated to verion 3.0.6
- generate specs for PG 9.3

- rename README.orafunc to README.asciidoc
- updated to verion 3.0.6
- generate specs for PG 9.3

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/orafce?expand=0&rev=6
2013-10-14 13:00:43 +00:00

50 lines
1.5 KiB
RPMSpec

#
%define gitname VERSION_3_0_6
%define pgversion 93
%define realname orafce
Name: postgresql%{pgversion}-orafce
Version: 3.0.6
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: 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 %{realname}-%{gitname}
#%patch1 -p1
#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.asciidoc
%{_prefix}/lib/postgresql%{pgversion}/%{_lib}
%{_datadir}/postgresql%{pgversion}/
%exclude %{_docdir}/postgresql%{pgversion}/