From 02c3f38715e11ec83590e56c857c031356f272cb Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 10:27:00 +0100 Subject: [PATCH] automatic version update by autodist [release 9.3.4-1mamba;Thu Mar 20 2014] --- README.md | 6 + postgresql-initscript | 45 ++++ postgresql.spec | 519 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 570 insertions(+) create mode 100644 postgresql-initscript create mode 100644 postgresql.spec diff --git a/README.md b/README.md index 1d62203..07a82cb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # postgresql +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. + +PostgreSQL is an open-source descendant of this original Berkeley code. +It provides SQL92/SQL99 language support and other modern features. + diff --git a/postgresql-initscript b/postgresql-initscript new file mode 100644 index 0000000..bed452e --- /dev/null +++ b/postgresql-initscript @@ -0,0 +1,45 @@ +#!/bin/bash +# Begin $rc_base/init.d/postgres +# +# Based on sysklogd script from LFS-3.1 and earlier. +# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org +# +# chkconfig: 345 60 25 +# description: The PostgreSQL DBMS +# +source /etc/sysconfig/rc +source $rc_functions + +case "$1" in + start) + echo -n "Starting PostgreSQL daemon..." + su -s /bin/sh - postgres -c '/usr/bin/pg_ctl start -W -D /var/pgsql/data \ + -l /var/pgsql/data/logfile -o "-i" ' + evaluate_retval + echo + ;; + + stop) + echo -n "Stopping PostgreSQL daemon..." + su -s /bin/sh - postgres -c '/usr/bin/pg_ctl stop -m smart -D /var/pgsql/data' + evaluate_retval + echo + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + /usr/bin/pg_ctl status -D /var/pgsql/data + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End $rc_base/init.d/ diff --git a/postgresql.spec b/postgresql.spec new file mode 100644 index 0000000..51eaa0e --- /dev/null +++ b/postgresql.spec @@ -0,0 +1,519 @@ +%define groupid 65009 +%define userid 65009 +%define majver %(echo %version | cut -d. -f 1-2) + +Name: postgresql +Version: 9.3.4 +Release: 1mamba +Summary: An object-relational database management system (ORDBMS) +Group: Applications/Databases +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.postgresql.org +Source0: ftp://ftp2.it.postgresql.org/pub/mirrors/postgres/source/v%{version}/%{name}-%{version}.tar.bz2 +Source1: postgresql-initscript +#Source2: http://www.postgresql.org/files/documentation/pdf/%{majver}/postgresql-%{majver}-US.pdf +License: BSD +BuildRequires: flex +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libe2fs-devel +BuildRequires: libkrb5-devel +BuildRequires: libncurses-devel +BuildRequires: libopenldap-devel +BuildRequires: libopenssl-devel +BuildRequires: libpython-devel +BuildRequires: libreadline-devel +BuildRequires: libtcl-devel +BuildRequires: libxml2-devel +BuildRequires: libxslt-devel +BuildRequires: libz-devel +BuildRequires: pam-devel +BuildRequires: perl-devel +## AUTOBUILDREQ-END +Requires(pre): /usr/sbin/groupadd, /usr/sbin/useradd, /sbin/chkconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: lib%{name} == %{version} + +%description +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. + +PostgreSQL is an open-source descendant of this original Berkeley code. +It provides SQL92/SQL99 language support and other modern features. + +%package -n lib%{name} +Summary: Devel files for PostgreSQL +Group: System/Libraries + +%description -n lib%{name} +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. + +This package contains the libraries used by postgresql. + +%package -n lib%{name}-devel +Summary: Devel files for PostgreSQL +Group: Development/Libraries +Requires: lib%{name} = %{version} +Obsoletes: %{name}-devel +Provides: %{name}-devel == %{version} + +%description -n lib%{name}-devel +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. + +This package contains static libraries and header files need for development. + +%package server +Summary: PostgreSQL DBMS server +Group: System/Database +Requires: %{name} = %{version} + +%description server +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. +PostgreSQL is an open-source descendant of this original Berkeley code. +It provides SQL92/SQL99 language support and other modern features. + +This is the DBMS server. + +%package tcltk +Summary: PostgreSQL Tcl/Tk interface +Group: Graphical Desktop/Applications/Databases +Requires: %{name} = %{version} + +%description tcltk +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. + +This package contains the Tcl/Tk interface. + +%package contrib +Summary: Contributed source and binaries distributed with PostgreSQL +Group: Applications/Databases +Requires: %{name} = %{version}-%{release} + +%description contrib +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. + +The postgresql-contrib package contains contributed packages that are +included in the PostgreSQL distribution. + +%package test +Summary: The test suite distributed with PostgreSQL +Group: Applications/Databases +Requires: %{name}-server = %{version}-%{release} + +%description test +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. + +The postgresql-test package includes the sources and pre-built +binaries of various tests for the PostgreSQL database management +system, including regression tests and benchmarks. + +%package docs +Summary: Extra documentation for PostgreSQL +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description docs +PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. +The POSTGRES project, led by Professor Michael Stonebraker, was sponsored by the Defense Advanced Research Projects Agency (DARPA), the Army Research Office (ARO), the National Science Foundation (NSF), and ESL, Inc. + +The postgresql-docs package includes some additional documentation for +PostgreSQL. Currently, this includes the main documentation in PDF format, +the FAQ, and source files for the PostgreSQL tutorial. + +%prep +%setup -q +#cp -p %{SOURCE2} . + +%build + +CFLAGS="%{optflags} -ltermcap"; export CFLAGS +PYTHON=%{__python} \ +%configure \ + --prefix=%{_prefix} \ + --mandir=%{_mandir} \ + --with-docdir=%{_datadir}/doc \ + --enable-nls \ + --disable-rpath \ + --with-pam \ + --with-openssl \ + --with-tcl \ + --with-python \ + --with-perl \ + --with-ldap \ + --with-krb5 \ + --with-gssapi +# --with-bonjour + +%make +make %{?_smp_mflags} -C contrib all + +# put correct path into tutorial scripts +sed "s|C=\`pwd\`;|C=%{_libdir}/postgresql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile +make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all + +rm -f src/tutorial/GNUmakefile + +(cd src/test/regress +make all +) + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall +make -C contrib DESTDIR=%{buildroot} install + +# tests. +mkdir -p %{buildroot}%{_libdir}/postgresql/test + +cp -a src/test/regress %{buildroot}%{_libdir}/postgresql/test + +install -m 0755 contrib/spi/refint.so %{buildroot}%{_libdir}/postgresql/test/regress +install -m 0755 contrib/spi/autoinc.so %{buildroot}%{_libdir}/postgresql/test/regress + +(cd %{buildroot}%{_libdir}/postgresql/test/regress +strip *.so +) + +install -d -m 755 %{buildroot}%{_libdir}/postgresql/tutorial +cp src/tutorial/* %{buildroot}%{_libdir}/postgresql/tutorial + +# Fix some more documentation +#mv %{buildroot}%{_docdir}/pgsql/html doc +#rm -rf %{buildroot}%{_docdir}/pgsql +install -d %{buildroot}/var/pgsql/data +install -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/postgresql + +#mv %{buildroot}%{_includedir}/postgresql/informix/esql/sqltypes.h \ +# %{buildroot}%{_includedir}/postgresql/informix/esql/sqltypes-postgres.h + +%define lang_files pg_basebackup pg_ctl psql plperl postgres plpgsql plpython pltcl pgscripts ecpg initdb pg_dump pg_config pg_controldata pg_resetxlog libpq5 ecpglib6 + +> %{name}-all.lang +for lang_file in %{lang_files} + do %find_lang ${lang_file}-%{majver} + cat ${lang_file}-%{majver}.lang >> %{name}-all.lang +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%pre server +if [ $1 -eq 1 ]; then + /usr/sbin/groupadd postgres -g %{groupid} 2>/dev/null + /usr/sbin/useradd -u %{userid} -g postgres \ + -d /var/pgsql/data -c 'PostgreSQL Server' \ + -s /bin/false postgres 2>/dev/null +fi +: + +%post server +[ -e /var/pgsql/data/PG_VERSION ] || su -s /bin/sh - postgres -c "%{_bindir}/initdb -D /var/pgsql/data >/dev/null" +if [ $1 -eq 1 ]; then + /sbin/chkconfig --add postgresql + service postgresql start +fi +: + +%preun server +if [ $1 -eq 0 ]; then + service postgresql stop + /sbin/chkconfig --del postgresql + /usr/sbin/userdel postgres +fi +: + +%postun server +if [ $1 -eq 1 ]; then + service postgresql restart +fi +: + +%files -f %{name}-all.lang +%defattr(-,root,root) +%{_bindir}/clusterdb +%{_bindir}/create* +%{_bindir}/drop* +%{_bindir}/init* +#%{_bindir}/ipcclean +%{_bindir}/pg_* +%exclude %{_bindir}/pg_config +%{_bindir}/psql +%{_bindir}/reindexdb +%{_bindir}/vacuumdb +%dir %{_datadir}/doc/postgresql +%{_datadir}/doc/postgresql/* +#%{_mandir}/man1/* +%doc COPYRIGHT HISTORY INSTALL README + +%files server +%defattr(-,root,root) +%attr(755,root,root) %{_initrddir}/postgresql +%{_bindir}/postmaster +%{_bindir}/postgres +%attr(700,postgres,root) %dir %{_localstatedir}/pgsql/data + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/*.so.* +%dir %{_libdir}/postgresql +%{_libdir}/postgresql/*.so +%exclude %{_libdir}/postgresql/_int.so +%exclude %{_libdir}/postgresql/adminpack.so +%exclude %{_libdir}/postgresql/autoinc.so +%exclude %{_libdir}/postgresql/btree_gist.so +%exclude %{_libdir}/postgresql/chkpass.so +%exclude %{_libdir}/postgresql/cube.so +%exclude %{_libdir}/postgresql/dblink.so +%exclude %{_libdir}/postgresql/dict_int.so +%exclude %{_libdir}/postgresql/dict_xsyn.so +%exclude %{_libdir}/postgresql/earthdistance.so +%exclude %{_libdir}/postgresql/fuzzystrmatch.so +%exclude %{_libdir}/postgresql/hstore.so +%exclude %{_libdir}/postgresql/insert_username.so +%exclude %{_libdir}/postgresql/isn.so +%exclude %{_libdir}/postgresql/lo.so +%exclude %{_libdir}/postgresql/ltree.so +%exclude %{_libdir}/postgresql/moddatetime.so +%exclude %{_libdir}/postgresql/pageinspect.so +%exclude %{_libdir}/postgresql/pg_buffercache.so +%exclude %{_libdir}/postgresql/pg_freespacemap.so +%exclude %{_libdir}/postgresql/pg_trgm.so +%exclude %{_libdir}/postgresql/pgcrypto.so +%exclude %{_libdir}/postgresql/pgrowlocks.so +%exclude %{_libdir}/postgresql/pgstattuple.so +%exclude %{_libdir}/postgresql/refint.so +%exclude %{_libdir}/postgresql/seg.so +%exclude %{_libdir}/postgresql/sslinfo.so +%exclude %{_libdir}/postgresql/tablefunc.so +%exclude %{_libdir}/postgresql/test_parser.so +%exclude %{_libdir}/postgresql/timetravel.so +%exclude %{_libdir}/postgresql/tsearch2.so +#%exclude %{_libdir}/postgresql/pgxml.so +%{_datadir}/postgresql/* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_bindir}/ecpg +%{_bindir}/pg_config +%dir %{_includedir}/postgresql +%{_includedir}/postgresql/* +%dir %{_includedir}/libpq +%{_includedir}/libpq/* +%{_includedir}/*.h +%{_libdir}/*.a +%{_libdir}/*.so +%{_libdir}/postgresql/pgxs/config/* +%{_libdir}/postgresql/pgxs/src/* +%{_libdir}/pkgconfig/libecpg.pc +%{_libdir}/pkgconfig/libecpg_compat.pc +%{_libdir}/pkgconfig/libpgtypes.pc +%{_libdir}/pkgconfig/libpq.pc + +%files tcltk +%defattr(-,root,root) +%{_bindir}/pltcl_* +#%{_bindir}/pgtclsh +#%{_bindir}/pgtksh + +%files contrib +%defattr(-,root,root) +%dir %{_libdir}/postgresql +%{_libdir}/postgresql/_int.so +%{_libdir}/postgresql/adminpack.so +%{_libdir}/postgresql/autoinc.so +%{_libdir}/postgresql/btree_gist.so +%{_libdir}/postgresql/chkpass.so +%{_libdir}/postgresql/cube.so +%{_libdir}/postgresql/dblink.so +%{_libdir}/postgresql/dict_int.so +%{_libdir}/postgresql/dict_xsyn.so +%{_libdir}/postgresql/earthdistance.so +%{_libdir}/postgresql/fuzzystrmatch.so +%{_libdir}/postgresql/hstore.so +%{_libdir}/postgresql/insert_username.so +%{_libdir}/postgresql/isn.so +%{_libdir}/postgresql/lo.so +%{_libdir}/postgresql/ltree.so +%{_libdir}/postgresql/moddatetime.so +%{_libdir}/postgresql/pageinspect.so +%{_libdir}/postgresql/pg_buffercache.so +%{_libdir}/postgresql/pg_freespacemap.so +%{_libdir}/postgresql/pg_trgm.so +%{_libdir}/postgresql/pgcrypto.so +%{_libdir}/postgresql/pgrowlocks.so +%{_libdir}/postgresql/pgstattuple.so +%{_libdir}/postgresql/refint.so +%{_libdir}/postgresql/seg.so +%{_libdir}/postgresql/sslinfo.so +%{_libdir}/postgresql/tablefunc.so +%{_libdir}/postgresql/test_parser.so +%{_libdir}/postgresql/timetravel.so +%{_libdir}/postgresql/tsearch2.so +#%{_libdir}/postgresql/pgxml.so +#%{_datadir}/pgsql/contrib/ +%{_bindir}/oid2name +#%{_bindir}/pg_standby +%{_bindir}/pgbench +%{_bindir}/vacuumlo + +%files test +%defattr(-,postgres,postgres) +%attr(-,postgres,postgres) %{_libdir}/postgresql/test/* +%attr(-,postgres,postgres) %dir %{_libdir}/postgresql/test + +%files docs +%defattr(-,root,root) +%doc doc/src/sgml +#%doc %{name}-%{majver}-US.pdf +%dir %{_libdir}/postgresql/tutorial +%{_libdir}/postgresql/tutorial/* + +%changelog +* Thu Mar 20 2014 Automatic Build System 9.3.4-1mamba +- automatic version update by autodist + +* Fri Feb 21 2014 Automatic Build System 9.3.3-1mamba +- automatic version update by autodist + +* Fri Dec 06 2013 Automatic Build System 9.3.2-1mamba +- automatic version update by autodist + +* Sat Oct 12 2013 Automatic Build System 9.3.1-1mamba +- automatic version update by autodist + +* Tue Sep 17 2013 Automatic Build System 9.3.0-1mamba +- automatic version update by autodist + +* Sat Jun 01 2013 Silvan Calarco 9.2.4-2mamba +- python 2.7 mass rebuild + +* Thu Apr 04 2013 Automatic Build System 9.2.4-1mamba +- automatic version update by autodist + +* Thu Feb 07 2013 Automatic Build System 9.2.3-1mamba +- automatic version update by autodist + +* Thu Dec 06 2012 Automatic Build System 9.2.2-1mamba +- automatic version update by autodist + +* Mon Sep 24 2012 Automatic Build System 9.2.1-1mamba +- automatic version update by autodist + +* Mon Sep 10 2012 Automatic Build System 9.2.0-1mamba +- automatic version update by autodist + +* Fri Aug 17 2012 Automatic Build System 9.1.5-1mamba +- automatic version update by autodist + +* Mon Jun 04 2012 Automatic Build System 9.1.4-1mamba +- automatic version update by autodist + +* Sun Apr 15 2012 Automatic Build System 9.1.3-1mamba +- automatic version update by autodist + +* Tue Dec 06 2011 Automatic Build System 9.1.2-1mamba +- automatic version update by autodist + +* Mon Sep 26 2011 Automatic Build System 9.1.1-1mamba +- automatic version update by autodist + +* Sun Sep 11 2011 Automatic Build System 9.1.0-1mamba +- automatic version update by autodist + +* Sun Apr 17 2011 Automatic Build System 9.0.4-1mamba +- automatic update by autodist + +* Mon Jan 31 2011 Automatic Build System 9.0.3-1mamba +- automatic update by autodist + +* Wed Dec 15 2010 Automatic Build System 9.0.2-1mamba +- automatic update to 9.0.2 by autodist + +* Mon Oct 04 2010 Automatic Build System 9.0.1-1mamba +- automatic update to 9.0.1 by autodist + +* Mon Sep 27 2010 Automatic Build System 9.0.0-1mamba +- automatic update by autodist + +* Fri Jul 09 2010 Davide Madrisan 8.4.4-2mamba +- move %{_bindir}/pg_config and %{_bindir}/ecpg to lib%{name}-devel + +* Sun May 16 2010 Automatic Build System 8.4.4-1mamba +- automatic update to 8.4.4 by autodist + +* Mon Mar 15 2010 Automatic Build System 8.4.3-1mamba +- automatic update to 8.4.3 by autodist + +* Tue Feb 02 2010 Automatic Build System 8.4.2-2mamba +- automatic rebuild by autodist + +* Mon Dec 14 2009 Automatic Build System 8.4.2-1mamba +- automatic update to 8.4.2 by autodist + +* Sat Sep 26 2009 Automatic Build System 8.4.1-1mamba +- automatic update to 8.4.1 by autodist + +* Tue Jun 30 2009 Automatic Build System 8.4.0-1mamba +- update to 8.4.0 + +* Tue Mar 17 2009 Silvan Calarco 8.3.7-1mamba +- automatic update to 8.3.7 by autodist + +* Fri Feb 06 2009 Silvan Calarco 8.3.6-1mamba +- automatic update to 8.3.6 by autodist + +* Fri Nov 07 2008 gil 8.3.5-2mamba +- added packages: contrib, test, docs + +* Thu Nov 06 2008 Silvan Calarco 8.3.5-1mamba +- automatic update to 8.3.5 by autodist + +* Tue Oct 28 2008 Silvan Calarco 8.3.4-1mamba +- automatic update to 8.3.4 by autodist + +* Sat Jun 30 2007 Silvan Calarco 7.4.17-1mamba +- update to 7.4.17 +- libpostgresql: remove requirement for postgresql + +* Tue Mar 07 2006 Silvan Calarco 7.4.12-1qilnx +- update to version 7.4.12 by autospec +- fixed rpm group names +- added package libpostgresql + +* Mon Dec 19 2005 Stefano Cotta Ramusino 7.4.10-1qilnx +- update to version 7.4.10 by autospec +- changed license to BSD + +* Fri May 27 2005 Silvan Calarco 7.4.8-1qilnx +- update to version 7.4.8 by autospec +- fixed a database initialization error (permission on /var/pgsql/data) + +* Wed Feb 16 2005 Davide Madrisan 7.4.7-1qilnx +- update to version 7.4.7 (patch release) by autospec +- also fixes several security issues: QSA-2005-017 (CAN-2004-0977, + CAN-2005-024[4,5,6,7]), see HISTORY file +- enabled localization +- added missing buildrequirements +- added copyright file in the documentation +- various specfile updates + +* Tue Nov 21 2003 Silvan Calarco 7.4-2qilnx +- renamed a header file conflicting with libodbc (/usr/include/sqltypes.h) + +* Tue Nov 18 2003 Silvan Calarco 7.4-1qilnx +- new version rebuild +- added QiLinux official userid (>65000) + +* Fri Jul 18 2003 Silvan Calarco 7.3.3-2qilnx +- added make install-all-headers to install server headers + +* Thu Jul 17 2003 Silvan Calarco 7.3.3-1qilnx +- first build for PostgreSQL