From 7c03d65fc25aee7991f411fb8762ce8dc629ad0d8cc74af5598270a29741800c Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 13 Nov 2012 08:10:56 +0000 Subject: [PATCH] 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 --- orafce-3.0.4.tar.gz | 3 -- orafce-HEAD-36ccc5b.tar.gz | 3 ++ orafce.changes | 19 ++++++++ orafce.spec | 23 ++++++---- postgresql91-orafce.changes | 90 +++++++++++++++++++++++++++++++++++++ postgresql91-orafce.spec | 46 +++++++++++++++++++ postgresql92-orafce.changes | 90 +++++++++++++++++++++++++++++++++++++ postgresql92-orafce.spec | 46 +++++++++++++++++++ pre_checkin.sh | 11 +++++ 9 files changed, 319 insertions(+), 12 deletions(-) delete mode 100644 orafce-3.0.4.tar.gz create mode 100644 orafce-HEAD-36ccc5b.tar.gz create mode 100644 postgresql91-orafce.changes create mode 100644 postgresql91-orafce.spec create mode 100644 postgresql92-orafce.changes create mode 100644 postgresql92-orafce.spec create mode 100644 pre_checkin.sh diff --git a/orafce-3.0.4.tar.gz b/orafce-3.0.4.tar.gz deleted file mode 100644 index 5893dc6..0000000 --- a/orafce-3.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d738784e8dcd62ea38615949a84d8da6ceefc085a01bbc1d2b60d1287d58ae1 -size 110681 diff --git a/orafce-HEAD-36ccc5b.tar.gz b/orafce-HEAD-36ccc5b.tar.gz new file mode 100644 index 0000000..72d43ac --- /dev/null +++ b/orafce-HEAD-36ccc5b.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0414d7f442fa2d4e89be32c691766cf5313befb2986d8b4e199201b2f7d7a661 +size 110355 diff --git a/orafce.changes b/orafce.changes index 81e6ae6..48f6899 100644 --- a/orafce.changes +++ b/orafce.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Thu Nov 1 19:30:27 UTC 2012 - darin@darins.net + +- updated name in template +- set proper install location + +------------------------------------------------------------------- +Fri Oct 26 12:47:21 UTC 2012 - darin@darins.net + +- added pre_checkin.sh to generate .spec and .changes + +------------------------------------------------------------------- +Thu Oct 25 13:03:26 UTC 2012 - darin@darins.net + +- updated to orafce-HEAD-36ccc5b from git repository which supports + postgresql 9.2. As there's no official release i'm calling it 5a +- created .specs to support multiple versions of PG +- removed/renamed orafce.spec + ------------------------------------------------------------------- Tue Dec 13 18:58:24 UTC 2011 - darin@darins.net diff --git a/orafce.spec b/orafce.spec index 5ece1f2..3b24209 100644 --- a/orafce.spec +++ b/orafce.spec @@ -1,15 +1,20 @@ # +%define gitname HEAD-36ccc5b +%define pgversion ## + Name: orafce -Version: 3.0.4 +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 -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) -BuildRequires: postgresql-devel openssl-devel krb5-devel bison flex -Requires: postgresql-server +#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. @@ -18,7 +23,7 @@ now. Functionality was verified on Oracle 10g and module is useful for production work. %prep -%setup -q -n %{name} +%setup -q -n %{name}-%{gitname} #sed -i 's/\r//' doc/style.css %build @@ -34,7 +39,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYRIGHT.orafunc INSTALL.orafunc README.orafunc -%{_libdir}/postgresql/ -%{_datadir}/postgresql/ -%exclude %{_docdir}/postgresql/ +%{_libdir}/postgresql%{pgversion}/ +%{_datadir}/postgresql%{pgversion}/ +%exclude %{_docdir}/postgresql%{pgversion}/ diff --git a/postgresql91-orafce.changes b/postgresql91-orafce.changes new file mode 100644 index 0000000..48f6899 --- /dev/null +++ b/postgresql91-orafce.changes @@ -0,0 +1,90 @@ +------------------------------------------------------------------- +Thu Nov 1 19:30:27 UTC 2012 - darin@darins.net + +- updated name in template +- set proper install location + +------------------------------------------------------------------- +Fri Oct 26 12:47:21 UTC 2012 - darin@darins.net + +- added pre_checkin.sh to generate .spec and .changes + +------------------------------------------------------------------- +Thu Oct 25 13:03:26 UTC 2012 - darin@darins.net + +- updated to orafce-HEAD-36ccc5b from git repository which supports + postgresql 9.2. As there's no official release i'm calling it 5a +- created .specs to support multiple versions of PG +- removed/renamed orafce.spec + +------------------------------------------------------------------- +Tue Dec 13 18:58:24 UTC 2011 - darin@darins.net + +- Fixed non-standard Group + +------------------------------------------------------------------- +Tue Dec 13 18:51:32 UTC 2011 - darin@darins.net + +- added FLEX=/usr/bin/flex to make statement in %build. + See http://pgfoundry.org/forum/forum.php?set=custom&forum_id=410&style=nested&max_rows=25&submit=Change+View + +------------------------------------------------------------------- +Tue Dec 13 18:34:07 UTC 2011 - darin@darins.net + +- updated package to 3.0.4 + +------------------------------------------------------------------- +Tue Dec 13 16:28:51 UTC 2011 - darin@darins.net + +- moved %changelog to .changes file + +------------------------------------------------------------------- +Fri Apr 15 2011 - Darin Perusich + +- Ported to OpenSuSE +- Update to 3.0.3 + +------------------------------------------------------------------- +Wed Apr 28 2010 - Jean-Francois Saucier - 3.0.1-3 + +- Rename back the package to orafce after discussion on devel list + +------------------------------------------------------------------- +Mon Apr 19 2010 - Jean-Francois Saucier - 3.0.1-2 + +- Make some cleanup as described in #251805 +- Clean %%files section +- Rename the package back to postgresql-orafce to be consistent with other extensions + +------------------------------------------------------------------- +Fri Oct 2 2009 - Devrim GUNDUZ - 3.0.1-1 + +- Update to 3.0.1 +- Remove patch0, it is in upstream now. +- Apply some 3.0 fixes to spec. + +------------------------------------------------------------------- +Wed Aug 20 2008 - Devrim GUNDUZ - 2.1.4-1 + +- Update to 2.1.4 + +------------------------------------------------------------------- +Sun Jan 20 2008 - Devrim GUNDUZ - 2.1.3-2 + +- Spec file fixes, per bz review #251805 + +------------------------------------------------------------------- +Mon Jan 14 2008 - Devrim GUNDUZ - 2.1.3-1 + +- Update to 2.1.3 + +------------------------------------------------------------------- +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 diff --git a/postgresql91-orafce.spec b/postgresql91-orafce.spec new file mode 100644 index 0000000..f322303 --- /dev/null +++ b/postgresql91-orafce.spec @@ -0,0 +1,46 @@ +# +%define gitname HEAD-36ccc5b +%define pgversion 91 +%define realname orafce + +Name: postgresql%{pgversion}-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: %{realname}-%{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 %{realname}-%{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 +%{_prefix}/lib/postgresql%{pgversion}/%{_lib} +%{_datadir}/postgresql%{pgversion}/ +%exclude %{_docdir}/postgresql%{pgversion}/ + diff --git a/postgresql92-orafce.changes b/postgresql92-orafce.changes new file mode 100644 index 0000000..48f6899 --- /dev/null +++ b/postgresql92-orafce.changes @@ -0,0 +1,90 @@ +------------------------------------------------------------------- +Thu Nov 1 19:30:27 UTC 2012 - darin@darins.net + +- updated name in template +- set proper install location + +------------------------------------------------------------------- +Fri Oct 26 12:47:21 UTC 2012 - darin@darins.net + +- added pre_checkin.sh to generate .spec and .changes + +------------------------------------------------------------------- +Thu Oct 25 13:03:26 UTC 2012 - darin@darins.net + +- updated to orafce-HEAD-36ccc5b from git repository which supports + postgresql 9.2. As there's no official release i'm calling it 5a +- created .specs to support multiple versions of PG +- removed/renamed orafce.spec + +------------------------------------------------------------------- +Tue Dec 13 18:58:24 UTC 2011 - darin@darins.net + +- Fixed non-standard Group + +------------------------------------------------------------------- +Tue Dec 13 18:51:32 UTC 2011 - darin@darins.net + +- added FLEX=/usr/bin/flex to make statement in %build. + See http://pgfoundry.org/forum/forum.php?set=custom&forum_id=410&style=nested&max_rows=25&submit=Change+View + +------------------------------------------------------------------- +Tue Dec 13 18:34:07 UTC 2011 - darin@darins.net + +- updated package to 3.0.4 + +------------------------------------------------------------------- +Tue Dec 13 16:28:51 UTC 2011 - darin@darins.net + +- moved %changelog to .changes file + +------------------------------------------------------------------- +Fri Apr 15 2011 - Darin Perusich + +- Ported to OpenSuSE +- Update to 3.0.3 + +------------------------------------------------------------------- +Wed Apr 28 2010 - Jean-Francois Saucier - 3.0.1-3 + +- Rename back the package to orafce after discussion on devel list + +------------------------------------------------------------------- +Mon Apr 19 2010 - Jean-Francois Saucier - 3.0.1-2 + +- Make some cleanup as described in #251805 +- Clean %%files section +- Rename the package back to postgresql-orafce to be consistent with other extensions + +------------------------------------------------------------------- +Fri Oct 2 2009 - Devrim GUNDUZ - 3.0.1-1 + +- Update to 3.0.1 +- Remove patch0, it is in upstream now. +- Apply some 3.0 fixes to spec. + +------------------------------------------------------------------- +Wed Aug 20 2008 - Devrim GUNDUZ - 2.1.4-1 + +- Update to 2.1.4 + +------------------------------------------------------------------- +Sun Jan 20 2008 - Devrim GUNDUZ - 2.1.3-2 + +- Spec file fixes, per bz review #251805 + +------------------------------------------------------------------- +Mon Jan 14 2008 - Devrim GUNDUZ - 2.1.3-1 + +- Update to 2.1.3 + +------------------------------------------------------------------- +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 diff --git a/postgresql92-orafce.spec b/postgresql92-orafce.spec new file mode 100644 index 0000000..b72d468 --- /dev/null +++ b/postgresql92-orafce.spec @@ -0,0 +1,46 @@ +# +%define gitname HEAD-36ccc5b +%define pgversion 92 +%define realname orafce + +Name: postgresql%{pgversion}-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: %{realname}-%{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 %{realname}-%{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 +%{_prefix}/lib/postgresql%{pgversion}/%{_lib} +%{_datadir}/postgresql%{pgversion}/ +%exclude %{_docdir}/postgresql%{pgversion}/ + diff --git a/pre_checkin.sh b/pre_checkin.sh new file mode 100644 index 0000000..df0710c --- /dev/null +++ b/pre_checkin.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# +VERS="91 92" +# +spec=orafce.spec.in + +for ii in $VERS +do + sed "s/pgversion ##/pgversion $ii/" $spec > postgresql${ii}-orafce.spec + cp orafce.changes postgresql${ii}-orafce.changes +done