%define sname orafce Summary: Implementation of some Oracle functions into PostgreSQL Name: %{sname} Version: 3.0RC1 Release: 1%{?dist} License: BSD Group: Applications/Databases Source0: http://pgfoundry.org/frs/download.php/1301/%{sname}-%{version}.tar.gz URL: http://pgfoundry.org/projects/orafce/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) BuildRequires: postgresql-devel BuildRequires: gettext >= 0.10.35 Requires: postgresql %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 %{sname} %build USE_PGXS=1 make %{?_smp_mflags} %install rm -rf %{buildroot} USE_PGXS=1 make DESTDIR=%{buildroot} install %clean rm -rf %{buildroot} %files %defattr(755,root,root,755) %{_libdir}/pgsql/orafunc.so %defattr(644,root,root,755) %{_datadir}/pgsql/contrib/orafunc.sql %{_datadir}/pgsql/contrib/uninstall_orafunc.sql %{_datadir}/doc/pgsql/contrib/README.orafunc %{_datadir}/doc/pgsql/contrib/INSTALL.orafunc %{_datadir}/doc/pgsql/contrib/COPYRIGHT.orafunc %changelog * Fri May 14 2009 - Toru SHIMOGAKI 3.0.0RC1-1 - Update to 3.0.0 - Add uninstall_orafunc.sql - Change directory which orafunc.sql and uninstall_orafunc.sql are installed * Fri Aug 10 2007 - Devrim GUNDUZ 2.1.1-1 - Update to 2.1.1 - Spec file cleanup * Wed Aug 30 2006 - Devrim GUNDUZ 2.0.1-1 - Initial packaging