2008-01-22 12:35:53 +01:00
|
|
|
#
|
2009-11-03 22:35:39 +01:00
|
|
|
# spec file for package postgresql-pl (Version 8.4.1)
|
2008-01-22 12:35:53 +01:00
|
|
|
#
|
2009-11-03 22:35:39 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-01-22 12:35:53 +01:00
|
|
|
#
|
2008-08-30 01:24:42 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-01-22 12:35:53 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-10 15:28:19 +02:00
|
|
|
|
2008-01-22 12:35:53 +01:00
|
|
|
Name: postgresql-pl
|
2008-04-21 18:54:40 +02:00
|
|
|
BuildRequires: bison flex gettext-devel krb5-devel libxml2-devel libxslt-devel
|
|
|
|
BuildRequires: openldap2-devel openssl-devel pam-devel readline-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: python-devel tcl-devel
|
2008-01-22 12:35:53 +01:00
|
|
|
Summary: The PL/Tcl, PL/Perl, and PL/Python Procedural Languages for PostgreSQL
|
2010-01-07 15:51:44 +01:00
|
|
|
Version: 8.4.2
|
2009-05-15 22:06:01 +02:00
|
|
|
Release: 1
|
2008-04-21 18:54:40 +02:00
|
|
|
%define pg_minor_version %(echo %version | cut -f1-2 -d.)
|
2009-11-03 22:35:39 +01:00
|
|
|
License: BSD 3-clause (or similar)
|
2008-01-22 12:35:53 +01:00
|
|
|
Group: Productivity/Databases/Servers
|
|
|
|
Source0: postgresql-%version.tar.bz2
|
|
|
|
NoSource: 0
|
|
|
|
Url: http://www.postgresql.org/
|
2008-04-21 18:54:40 +02:00
|
|
|
Requires: postgresql-server = %pg_minor_version
|
2008-01-22 12:35:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%define pls plperl plpython tcl
|
|
|
|
|
|
|
|
%description
|
|
|
|
PostgreSQL is an advanced object-relational database management system
|
|
|
|
that supports an extended subset of the SQL standard, including
|
|
|
|
transactions, foreign keys, subqueries, triggers, and user-defined
|
|
|
|
types and functions.
|
|
|
|
|
|
|
|
This package contains the PL/Tcl, PL/Perl, and PL/Python procedural
|
|
|
|
languages for PostgreSQL. With these modules one can use Perl, Python,
|
|
|
|
and Tcl to write stored procedures, functions, and triggers.
|
|
|
|
|
|
|
|
PostgreSQL also offers the built-in procedural language PL/SQL which is
|
|
|
|
included in the postgresql-server package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marc G. Fournier <scrappy@hub.org>
|
|
|
|
Tom Lane <tgl@sss.pgh.pa.us>
|
|
|
|
Vadim B. Mikheev <vadim4o@yahoo.com>
|
|
|
|
Bruce Momjian <pgman@candle.pha.pa.us>
|
|
|
|
Jan Wieck <JanWieck@Yahoo.com>
|
|
|
|
|
|
|
|
%package -n postgresql-plperl
|
2009-11-03 22:35:39 +01:00
|
|
|
License: BSD 3-clause (or similar)
|
2008-01-22 12:35:53 +01:00
|
|
|
Summary: The PL/Tcl, PL/Perl, and PL/Python procedural languages for PostgreSQL
|
|
|
|
Group: Productivity/Databases/Servers
|
2008-04-21 18:54:40 +02:00
|
|
|
Requires: perl
|
2008-01-22 12:35:53 +01:00
|
|
|
Obsoletes: postgresql-pl
|
|
|
|
Provides: postgresql-pl:%_libdir/postgresql/plperl.so
|
2008-04-21 18:54:40 +02:00
|
|
|
Requires: postgresql-server = %pg_minor_version
|
2008-01-22 12:35:53 +01:00
|
|
|
|
|
|
|
%description -n postgresql-plperl
|
|
|
|
This package contains the the PL/Tcl, PL/Perl, and PL/Python procedural
|
|
|
|
languages for the back-end. With these modules one can use Perl,
|
|
|
|
Python, and Tcl to write stored procedures, functions and triggers.
|
|
|
|
|
|
|
|
PostgreSQL also offers the builtin procedural language PL/SQL.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andrew Yu <andrew@CS.Berkeley.edu>
|
|
|
|
Jolly Chen <jolly@CS.Berkeley.edu>
|
|
|
|
Bruce Momjian <maillist@candle.pha.pa.us>
|
|
|
|
Thomas G. Lockhart <lockhart@alumni.caltech.edu>
|
|
|
|
Tom Lane <tgl@sss.pgh.pa.us>
|
|
|
|
The Hermit Hacker <scrappy@hub.org>
|
|
|
|
etc.
|
|
|
|
|
|
|
|
%package -n postgresql-plpython
|
2009-11-03 22:35:39 +01:00
|
|
|
License: BSD 3-clause (or similar)
|
2008-01-22 12:35:53 +01:00
|
|
|
Summary: The PL/Python Procedural Languages for PostgreSQL
|
|
|
|
Group: Productivity/Databases/Servers
|
|
|
|
Obsoletes: postgresql-pl
|
2008-04-21 18:54:40 +02:00
|
|
|
Provides: postgresql-pl:%_libdir/postgresql/plpython.so
|
2008-01-22 12:35:53 +01:00
|
|
|
Requires: python
|
2008-04-21 18:54:40 +02:00
|
|
|
Requires: postgresql-server = %pg_minor_version
|
2008-01-22 12:35:53 +01:00
|
|
|
|
|
|
|
%description -n postgresql-plpython
|
|
|
|
PostgreSQL is an advanced object-relational database management system
|
|
|
|
that supports an extended subset of the SQL standard, including
|
|
|
|
transactions, foreign keys, subqueries, triggers, and user-defined
|
|
|
|
types and functions.
|
|
|
|
|
|
|
|
This package contains the PL/Python procedural language for PostgreSQL.
|
|
|
|
With this module one can use Python to write stored procedures,
|
|
|
|
functions, and triggers.
|
|
|
|
|
|
|
|
PostgreSQL also offers the built-in procedural language PL/SQL which is
|
|
|
|
included in the postgresql-server package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marc G. Fournier <scrappy@hub.org>
|
|
|
|
Tom Lane <tgl@sss.pgh.pa.us>
|
|
|
|
Vadim B. Mikheev <vadim4o@yahoo.com>
|
|
|
|
Bruce Momjian <pgman@candle.pha.pa.us>
|
|
|
|
Jan Wieck <JanWieck@Yahoo.com>
|
|
|
|
|
|
|
|
%package -n postgresql-pltcl
|
2009-11-03 22:35:39 +01:00
|
|
|
License: BSD 3-clause (or similar)
|
2008-01-22 12:35:53 +01:00
|
|
|
Summary: PL/Tcl Procedural Language for PostgreSQL
|
|
|
|
Group: Productivity/Databases/Tools
|
|
|
|
Obsoletes: postgresql-pl
|
2008-04-21 18:54:40 +02:00
|
|
|
Provides: postgresql-pl:%_libdir/postgresql/pltcl.so
|
2008-01-22 12:35:53 +01:00
|
|
|
Requires: tcl
|
2008-04-21 18:54:40 +02:00
|
|
|
Requires: postgresql-server = %pg_minor_version
|
2008-01-22 12:35:53 +01:00
|
|
|
|
|
|
|
%description -n postgresql-pltcl
|
|
|
|
PostgreSQL is an advanced object-relational database management system
|
|
|
|
that supports an extended subset of the SQL standard, including
|
|
|
|
transactions, foreign keys, subqueries, triggers, and user-defined
|
|
|
|
types and functions.
|
|
|
|
|
|
|
|
This package contains the PL/Tcl procedural language for PostgreSQL.
|
|
|
|
With thie module one can use Tcl to write stored procedures, functions,
|
|
|
|
and triggers.
|
|
|
|
|
|
|
|
PostgreSQL also offers the built-in procedural language PL/SQL which is
|
|
|
|
included in the postgresql-server package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marc G. Fournier <scrappy@hub.org>
|
|
|
|
Tom Lane <tgl@sss.pgh.pa.us>
|
|
|
|
Vadim B. Mikheev <vadim4o@yahoo.com>
|
|
|
|
Bruce Momjian <pgman@candle.pha.pa.us>
|
|
|
|
Jan Wieck <JanWieck@Yahoo.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
# The sources for the postgresql-pl package can be found
|
|
|
|
# in the postgresql source RPM.
|
|
|
|
%setup -q -n postgresql-%{version}
|
|
|
|
|
|
|
|
%build
|
2008-04-21 18:54:40 +02:00
|
|
|
export CFLAGS="%optflags $SP"
|
2008-01-22 12:35:53 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=%_prefix \
|
|
|
|
--libdir=%_libdir \
|
|
|
|
--bindir=%_bindir \
|
|
|
|
--includedir=%_includedir/pgsql \
|
|
|
|
--datadir=%_datadir/postgresql \
|
|
|
|
--mandir=%_mandir \
|
|
|
|
--with-docdir=%_docdir \
|
2008-04-21 18:54:40 +02:00
|
|
|
--disable-rpath \
|
2008-01-22 12:35:53 +01:00
|
|
|
--enable-nls \
|
|
|
|
--enable-thread-safety \
|
|
|
|
--enable-integer-datetimes \
|
|
|
|
--with-python \
|
|
|
|
--with-perl \
|
|
|
|
--with-tcl \
|
|
|
|
--with-tclconfig=%_libdir \
|
|
|
|
--with-openssl \
|
|
|
|
--with-pam \
|
2008-04-21 18:54:40 +02:00
|
|
|
--with-krb5 \
|
|
|
|
--with-gssapi \
|
|
|
|
--with-ldap \
|
|
|
|
--with-libxml \
|
|
|
|
--with-libxslt \
|
|
|
|
--with-system-tzdata=/usr/share/zoneinfo
|
|
|
|
# fmgroids.h is needed for plperl
|
2008-01-22 12:35:53 +01:00
|
|
|
make -C src/backend ../../src/include/utils/fmgroids.h
|
|
|
|
for f in %pls; do
|
|
|
|
make %{?jobs:-j%jobs} -C src/pl/$f all
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
for f in %pls; do
|
|
|
|
make DESTDIR=%buildroot -C src/pl/$f install
|
|
|
|
done
|
2009-11-03 22:35:39 +01:00
|
|
|
|
2010-01-07 20:27:39 +01:00
|
|
|
for pl in pltcl plperl plpython;do
|
|
|
|
%find_lang $pl-%{pg_minor_version} postgresql-$pl.lang
|
|
|
|
done
|
2008-01-22 12:35:53 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %buildroot
|
|
|
|
|
2010-01-07 20:27:39 +01:00
|
|
|
%files -n postgresql-pltcl -f postgresql-pltcl.lang
|
2008-01-22 12:35:53 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/postgresql
|
|
|
|
%_libdir/postgresql/pltcl.so
|
|
|
|
%_datadir/postgresql
|
|
|
|
%_bindir/pltcl*
|
|
|
|
|
2010-01-07 20:27:39 +01:00
|
|
|
%files -n postgresql-plperl -f postgresql-plperl.lang
|
2008-01-22 12:35:53 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/postgresql
|
|
|
|
%_libdir/postgresql/plperl.so
|
|
|
|
|
2010-01-07 20:27:39 +01:00
|
|
|
%files -n postgresql-plpython -f postgresql-plpython.lang
|
2008-01-22 12:35:53 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_libdir/postgresql
|
|
|
|
%_libdir/postgresql/plpython.so
|
|
|
|
|
|
|
|
%changelog
|