Changes of Revision 10
[-] | Added | postgresql-pl.spec |
x 1
2 +# 3 +# spec file for package postgresql-pl (Version 8.3.4) 4 +# 5 +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# 7 +# All modifications and additions to the file contributed by third parties 8 +# remain the property of their copyright owners, unless otherwise agreed 9 +# upon. The license for this file, and modifications and additions to the 10 +# file, is the same license as for the pristine package itself (unless the 11 +# license for the pristine package is not an Open Source License, in which 12 +# case the license is the MIT License). An "Open Source License" is a 13 +# license that conforms to the Open Source Definition (Version 1.9) 14 +# published by the Open Source Initiative. 15 + 16 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 17 +# 18 + 19 + 20 + 21 +Name: postgresql-pl 22 +BuildRequires: bison flex gettext-devel krb5-devel libxml2-devel libxslt-devel 23 +BuildRequires: openldap2-devel openssl-devel pam-devel readline-devel 24 +BuildRequires: ncurses-devel 25 +BuildRequires: python-devel tcl-devel 26 +Summary: The PL/Tcl, PL/Perl, and PL/Python Procedural Languages for PostgreSQL 27 +Version: 8.3.5 28 +Release: 1 29 +%define pg_minor_version %(echo %version | cut -f1-2 -d.) 30 +License: BSD 3-Clause 31 +Group: Productivity/Databases/Servers 32 +Source0: postgresql-%version.tar.bz2 33 +NoSource: 0 34 +Url: http://www.postgresql.org/ 35 +Requires: postgresql-server = %pg_minor_version 36 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 37 +%define pls plperl plpython tcl 38 + 39 +%description 40 +PostgreSQL is an advanced object-relational database management system 41 +that supports an extended subset of the SQL standard, including 42 +transactions, foreign keys, subqueries, triggers, and user-defined 43 +types and functions. 44 + 45 +This package contains the PL/Tcl, PL/Perl, and PL/Python procedural 46 +languages for PostgreSQL. With these modules one can use Perl, Python, 47 +and Tcl to write stored procedures, functions, and triggers. 48 + 49 +PostgreSQL also offers the built-in procedural language PL/SQL which is 50 +included in the postgresql-server package. 51 + 52 + 53 + 54 +Authors: 55 +-------- 56 + Marc G. Fournier <scrappy@hub.org> 57 + Tom Lane <tgl@sss.pgh.pa.us> 58 + Vadim B. Mikheev <vadim4o@yahoo.com> 59 + Bruce Momjian <pgman@candle.pha.pa.us> 60 + Jan Wieck <JanWieck@Yahoo.com> 61 + 62 +%package -n postgresql-plperl 63 +License: BSD 3-Clause 64 +Summary: The PL/Tcl, PL/Perl, and PL/Python procedural languages for PostgreSQL 65 +Group: Productivity/Databases/Servers 66 +Requires: perl 67 +Obsoletes: postgresql-pl 68 +Provides: postgresql-pl:%_libdir/postgresql/plperl.so 69 +Requires: postgresql-server = %pg_minor_version 70 + 71 +%description -n postgresql-plperl 72 +This package contains the the PL/Tcl, PL/Perl, and PL/Python procedural 73 +languages for the back-end. With these modules one can use Perl, 74 +Python, and Tcl to write stored procedures, functions and triggers. 75 + 76 +PostgreSQL also offers the builtin procedural language PL/SQL. 77 + 78 + 79 + 80 +Authors: 81 +-------- 82 + Andrew Yu <andrew@CS.Berkeley.edu> 83 + Jolly Chen <jolly@CS.Berkeley.edu> 84 + Bruce Momjian <maillist@candle.pha.pa.us> 85 + Thomas G. Lockhart <lockhart@alumni.caltech.edu> 86 + Tom Lane <tgl@sss.pgh.pa.us> 87 + The Hermit Hacker <scrappy@hub.org> 88 + etc. 89 + 90 +%package -n postgresql-plpython 91 +License: BSD 3-Clause 92 +Summary: The PL/Python Procedural Languages for PostgreSQL 93 +Group: Productivity/Databases/Servers 94 +Obsoletes: postgresql-pl 95 +Provides: postgresql-pl:%_libdir/postgresql/plpython.so 96 +Requires: python 97 +Requires: postgresql-server = %pg_minor_version 98 + 99 +%description -n postgresql-plpython 100 +PostgreSQL is an advanced object-relational database management system 101 +that supports an extended subset of the SQL standard, including 102 +transactions, foreign keys, subqueries, triggers, and user-defined 103 +types and functions. 104 + 105 +This package contains the PL/Python procedural language for PostgreSQL. 106 +With this module one can use Python to write stored procedures, 107 +functions, and triggers. 108 + 109 +PostgreSQL also offers the built-in procedural language PL/SQL which is 110 +included in the postgresql-server package. 111 + 112 + 113 + 114 +Authors: 115 +-------- 116 + Marc G. Fournier <scrappy@hub.org> 117 + Tom Lane <tgl@sss.pgh.pa.us> 118 + Vadim B. Mikheev <vadim4o@yahoo.com> 119 + Bruce Momjian <pgman@candle.pha.pa.us> 120 + Jan Wieck <JanWieck@Yahoo.com> 121 + 122 +%package -n postgresql-pltcl 123 +License: BSD 3-Clause 124 +Summary: PL/Tcl Procedural Language for PostgreSQL 125 +Group: Productivity/Databases/Tools 126 +Obsoletes: postgresql-pl 127 +Provides: postgresql-pl:%_libdir/postgresql/pltcl.so 128 +Requires: tcl 129 +Requires: postgresql-server = %pg_minor_version 130 + 131 +%description -n postgresql-pltcl 132 +PostgreSQL is an advanced object-relational database management system 133 +that supports an extended subset of the SQL standard, including 134 +transactions, foreign keys, subqueries, triggers, and user-defined 135 +types and functions. 136 + 137 +This package contains the PL/Tcl procedural language for PostgreSQL. 138 +With thie module one can use Tcl to write stored procedures, functions, 139 +and triggers. 140 + 141 +PostgreSQL also offers the built-in procedural language PL/SQL which is 142 +included in the postgresql-server package. 143 + 144 + 145 + 146 +Authors: 147 +-------- 148 + Marc G. Fournier <scrappy@hub.org> 149 + Tom Lane <tgl@sss.pgh.pa.us> 150 + Vadim B. Mikheev <vadim4o@yahoo.com> 151 + Bruce Momjian <pgman@candle.pha.pa.us> 152 + Jan Wieck <JanWieck@Yahoo.com> 153 + 154 +%prep 155 +# The sources for the postgresql-pl package can be found 156 +# in the postgresql source RPM. 157 +%setup -q -n postgresql-%{version} 158 + 159 +%build 160 +export CFLAGS="%optflags $SP" 161 +./configure \ 162 + --prefix=%_prefix \ 163 + --libdir=%_libdir \ 164 + --bindir=%_bindir \ 165 + --includedir=%_includedir/pgsql \ 166 + --datadir=%_datadir/postgresql \ 167 + --mandir=%_mandir \ 168 + --with-docdir=%_docdir \ 169 + --disable-rpath \ 170 + --enable-nls \ 171 + --enable-thread-safety \ 172 + --enable-integer-datetimes \ 173 + --with-python \ 174 + --with-perl \ 175 + --with-tcl \ 176 + --with-tclconfig=%_libdir \ 177 + --with-openssl \ 178 + --with-pam \ 179 + --with-krb5 \ 180 + --with-gssapi \ 181 + --with-ldap \ 182 + --with-libxml \ 183 + --with-libxslt \ 184 + --with-system-tzdata=/usr/share/zoneinfo 185 +# fmgroids.h is needed for plperl 186 +make -C src/backend ../../src/include/utils/fmgroids.h 187 +for f in %pls; do 188 + make %{?jobs:-j%jobs} -C src/pl/$f all 189 +done 190 + 191 +%install 192 +for f in %pls; do 193 + make DESTDIR=%buildroot -C src/pl/$f install 194 +done 195 + 196 +%clean 197 +rm -rf %buildroot 198 + 199 +%files -n postgresql-pltcl 200 +%defattr(-,root,root) 201 |