diff --git a/specs/postgresql-10/SOURCES/Makefile.regress b/specs/postgresql-10/SOURCES/Makefile.regress deleted file mode 100644 index 43c7ba446..000000000 --- a/specs/postgresql-10/SOURCES/Makefile.regress +++ /dev/null @@ -1,67 +0,0 @@ -# -# Simplified makefile for running the PostgreSQL regression tests -# in an RPM installation -# - -# maximum simultaneous connections for parallel tests -MAXCONNOPT = -ifdef MAX_CONNECTIONS -MAXCONNOPT += --max-connections=$(MAX_CONNECTIONS) -endif - -# locale -NOLOCALE = -ifdef NO_LOCALE -NOLOCALE += --no-locale -endif - -srcdir := . - -REGRESS_OPTS += --dlpath=. - -pg_regress_locale_flags = $(if $(ENCODING),--encoding=$(ENCODING)) $(NOLOCALE) - -pg_regress_installcheck = ./pg_regress --inputdir=$(srcdir) --psqldir='/usr/bin' $(pg_regress_locale_flags) - -# Test input and expected files. These are created by pg_regress itself, so we -# don't have a rule to create them. We do need rules to clean them however. -ifile_list := $(subst .source,, $(notdir $(wildcard $(srcdir)/input/*.source))) -input_files := $(foreach file, $(ifile_list), sql/$(file).sql) -ofile_list := $(subst .source,, $(notdir $(wildcard $(srcdir)/output/*.source))) -output_files := $(foreach file, $(ofile_list), expected/$(file).out) - -abs_srcdir := $(shell pwd) -abs_builddir := $(shell pwd) - -check: installcheck-parallel - -installcheck: cleandirs - $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) - -installcheck-parallel: cleandirs - $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) - -# The tests command the server to write into testtablespace and results. -# On a SELinux-enabled system this will fail unless we mark those directories -# as writable by the server. -cleandirs: - -rm -rf testtablespace results - mkdir testtablespace results - [ -x /usr/bin/chcon ] && /usr/bin/chcon -u system_u -r object_r -t postgresql_db_t testtablespace results - -# old interfaces follow... - -runcheck: check -runtest: installcheck -runtest-parallel: installcheck-parallel - - -## -## Clean up -## - -clean distclean maintainer-clean: - rm -f $(output_files) $(input_files) - rm -rf testtablespace - rm -rf results tmp_check log - rm -f regression.diffs regression.out regress.out run_check.out diff --git a/specs/postgresql-10/SOURCES/README.rpm-dist b/specs/postgresql-10/SOURCES/README.rpm-dist deleted file mode 100644 index 86f31b007..000000000 --- a/specs/postgresql-10/SOURCES/README.rpm-dist +++ /dev/null @@ -1,350 +0,0 @@ -README.rpm-dist ------------------------------------------------------------------------------ -Version 9.6, for the PostgreSQL 9.6 RPM set. -Devrim Gündüz ------------------------------------------------------------------------------ - -Contents: - 1.) Introduction and QuickStart - 2.) Upgrading an installation - 3.) PostgreSQL RPM packages and rationale - 4.) Starting multiple postmasters - 5.) Regression Testing - 6.) Starting postmaster automatically on startup - 7.) Grand Unified Configuration(GUC) File - 8.) Logging set up - 9.) Rebuilding from the source RPM -10.) Contrib files -11.) Further Information Resource - -INTRODUCTION ------------------------------------------------------------------------------ -This document exists to explain the layout of the RPMs for PostgreSQL, to -describe various RPM specifics, and to document special features found -in the RPMset. - -This document is written to be applicable to version 9.6 of PostgreSQL, -which is the current version of the RPMs as of this writing. More to the -point, versions prior to 9.6 are not documented here. - -Official PostgreSQL Global Development Group RPMs carry a 'PGDG after the -release number. Other RPMsets as distributed with Linux distributions may -have a different release number and initials. - -If you want to stay up-to-date on the PostgreSQL core itself, you may -want to use PGDG set, instead of the binaries supplied by distribution. - -These RPMs do not support any sort of major version upgrading process -other than that documented in the regular documentation. That is, you -must dump, upgrade,initdb, and restore your data if you are -performing a major version update. This is not needed for minor version -updates. - -QUICKSTART (note that this requires postgresql96-server installed) ------------------------------------------------------------------------------ -For a fresh installation, you will need to initialize the cluster first. Run: - - /usr/pgsql-9.6/bin/postgresql96-setup initdb - -as root, and it will prepare a new database cluster for you. Then you will -need to start PostgreSQL. Again as root, run: - - systemctl start postgresql-9.6.service - -This command will start a postmaster that willl listen on localhost and Unix -socket 5432 only. Edit /var/lib/pgsql/9.6/data/postgresql.conf and pg_hba.conf -if you want to allow remote access -- see the section on Grand Unified -Configuration. - -You will probably also want to do - - systemctl enable postgresql-9.6.service - -so that the postmaster is automatically started during future reboots. - -The file /var/lib/pgsql/9.6/.bash_profile is packaged to help with the -setting of environment variables. Users should not edit this file, because -it may be overwritten during every new installation. However, you can create -~/.pgsql_profile file, and add your customizations there. - -The user 'postgres' is created during installation of the server subpackage. -This user by default is UID and GID 26. The user has the default shell set to -bash, and the home directory set to /var/lib/pgsql. This user also has no -default password. If you want to be able to su to it from a non-root account -or login as 'postgres' you will need to set a password using passwd. - -In the default installation, only postgres user is allowed to access to -the database server, because initdb in the RPMs pick up "peer" auth -method in the RPMs. - -All the binaries are installed under /usr/pgsql-9.6/bin. However, the -tools that are compatible with the previous releases are symlinked under -/usr/bin directory. Please note that RPMs are using alternatives method -in here, so whenever a newer major version is installed, symlinks will -point to the new version. Here is the current list of the binaries that -are under $PATH: - -- clusterdb -- createdb -- createlang -- createuser -- dropdb -- droplang -- dropuser -- pg_dump -- pg_dumpall -- pg_restore -- psql -- reindexdb - -You may want to add /usr/pgsql-9.6/bin to your $PATH variable in -/etc/profile, if you want to use them easily. However, please note that -this may lead to some unintentional side effects, so be careful. - - -UPGRADING AN INSTALLATION ------------------------------------------------------------------------------ -For a minor-version upgrade (such as 9.6.1 to 9.6.2), just install the -new RPMs; there's usually nothing more to it than that. Upgrading -across a major release of PostgreSQL (for example, from 9.2.x to 9.6.x) -requires more effort. - -If you are upgrading across more than one major release of PostgreSQL -(for example, from 9.1.x to 9.6.x), you will need to follow the "traditional" -dump and reload process to bring your data into the new version. That is: -*before* upgrading, run pg_dumpall to extract all your data into a SQL file. -Shut down the old postmaster, upgrade to the new version RPMs, initdb, -and run the dump file through psql to restore your data. - -In 9.1+, the RPMs also support in-place upgrade from th immediately -previous major release. Currently, you can upgrade in-place -from 9.2.x to 9.6.x. Just run: -$ /usr/pgsql-9.6/bin/postgresql96-setup upgrade - -Please note that 9.2 and 9.6 contrib RPMs needs to be installed for this -feature to work. - -POSTGRESQL RPM PACKAGES AND RATIONALE. ------------------------------------------------------------------------------ -PostgreSQL is split up into multiple packages so that users can 'pick and -choose' what pieces are needed, and what dependencies are required. - -The RPMset is packaged in the following subpackages: - -postgresql96: Key clients and libraries, and documentation -postgresql96-server: Server executables and data files -postgresql96-devel: Development libraries and include files -postgresql96-test: The regression tests and associated files -postgresql96-libs: Client shared libraries -postgresql96-docs: Extra documentation, such as the tutorial files -postgresql96-contrib: The contrib source tree, as well as selected binaries -postgresql96-plperl: PL/Perl procedural language -postgresql96-plpython: PL/Python procedural language -postgresql96-pltcl: PL/Tcl procedural language - -postgresql96-jdbc, postgresql96-python, postgresql96-tcl and postgresql96-odbc have -been splitted into seperate (s)rpms. - -You have to install postgresql and postgresql96-libs to do anything. -postgresql96-server is needed unless you only plan to use the clients to work -with a remote PostgreSQL server. The others are optional. - -postgresql96-python package includes PyGreSQL, and Pgtcl is distributed -via postgresql96-tcl package. - -RPM FILE LOCATIONS. ------------------------------------------------------------------------------ -To be in compliance with the Linux FHS, the PostgreSQL RPMs install files in -a manner not consistent with most of the PostgreSQL documentation. According -to the standard PostgreSQL documentation, PostgreSQL is installed under the -directory /usr/local/pgsql, with executables, source, and data existing in -various subdirectories. - -Different distributions have different ideas of some of these file locations. -In particular, the documentation directory can be /usr/doc, /usr/doc/packages, -/usr/share/doc, /usr/share/doc/packages, or some other similar path. - -However, the Red Hat / Scientific Linux ( CentOS / Fedora RPM's install -the files like this: - -Executables: /usr/bin and /usr/pgsql-9.6/bin -Libraries: /usr/pgsql-9.6/lib -Documentation: /usr/pgsql-9.6/doc -Contrib documentation: /usr/pgsql-9.6/doc -Source: not installed -Data: /var/lib/pgsql/9.6/data -Backup area: /var/lib/pgsql/9.6/backups -Templates: /usr/pgsql-9.6/share -Procedural Languages: /usr/pgsql-9.6/lib -Development Headers: /usr/pgsql-9.6/include -Other shared data: /usr/pgsql-9.6/share -Regression tests: /usr/pgsql-9.6/lib/test - -While it may seem gratuitous to place these files in different locations, the -FHS requires it -- distributions should not ever touch /usr/local. It may -also seem like more work to keep track of where everything is -- but, that's -the beauty of RPM -- you don't have to keep track of the files, RPM does it -for you. - -These RPMs are designed to be LSB-compliant -- if you find this not to be the -case, please let us know by way of the pgsql-pkg-yum@postgresql.org -mailing list. - -------------------------------------------------------------------------------- -MULTIPLE POSTMASTERS (For the same PostgreSQL version) -------------------------------------------------------------------------------- -The postgresql-server RPM contains an 'initscript' that is used to start the -postmaster. The current version of this script has logic to be able to start -multiple postmasters, with different data areas, listening on different ports, -etc. To use this functionality requires root access. - -As an example, let us create a secondary postmaster called, creatively enough, -'secondary'. Here are the steps: -1.) create a hard link in /etc/rc.d/init.d (or equivalent location) - to postgresql-9.6 named 'secondary-9.6' : ln postgresql secondary Pick - a name not already used in /etc/rc.d/init.d! -2.) create a file in /etc/sysconfig/pgsql named secondary. This file is - a shell script -- typically you would define PGDATA, and PGOPTS - here. Since $PGDATA/postgresql.conf will override many of these - settings, except PGDATA, you might be surprised on startup. -3.) create the target PGDATA. -4.) Initdb the targe PGDATA as documented in the main documentation. - Automatic initdb may or may not work for you, so a manual one is - preferred. This must be done as user 'postgres' -5.) Edit postgresql.conf to change the port, address, tcpip settings, etc. -6.) Start the postmaster with 'service secondary-9.6 start'. - -Note that there may be problems with the standard symlink -- consider this -support experimental at this point in time. - -When doing a major-version upgrade of a secondary postmaster, mention the -service name in the postgresql-setup command, for example 'postgresql-setup -upgrade secondary'. This will let postgresql-setup find the correct data -directory from the service file. - -REGRESSION TESTING -------------------------------------------------------------------------------- -If you install the postgresql-test RPM then you can run the PostgreSQL -regression tests. These tests stress your database installation and produce -results that give you assurances that the installation is complete, and that -your database machine is up to the task. - -To run the regression tests under the RPM installation, make sure that the -postmaster has been started (if not, su to root and do "systemctl start -postgresql-9.6.service"), cd to /usr/pgsql-9.6/lib/test/regress, su to -postgres, and execute "make check". This command will start the -regression tests and will both show the results to the screen and store -the results in the file regress.out. - -If any tests fail, see the file regression.diffs in that directory for details, -and read the "Regression Tests" section of the PostgreSQL documentation to -find out whether the differences are actually significant. If you need help -interpreting the results, contact the pgsql-general list at -postgresql.org. - -After testing, say "make clean" to remove the files generated by the test -script. - -STARTING POSTMASTER AUTOMATICALLY AT SYSTEM STARTUP -------------------------------------------------------------------------------- -Fedora / Red Hat / CentOS use the systemd package to manage server startup. -A systemd unit file for PostgreSQL is provided in the server package, as -/lib/systemd/system/postgresql-9.6.service. To start the postmaster manually, -as root run - systemctl start postgresql-9.6.service -To shut the postmaster down, - systemctl stop postgresql-9.6.service -These two commands only change the postmaster's current status. If you -want the postmaster to be started automatically during future system startups, -run - systemctl enable postgresql-9.6.service -To undo that again, - systemctl disable postgresql-9.6.service -See "man systemctl" for other possible subcommands. - -GRAND UNIFIED CONFIGURATION (GUC) FILE -------------------------------------------------------------------------------- -The PostgreSQL server has many tunable parameters -- the file -/var/lib/pgsql/9.6/data/postgresql.conf is the master configuration file for the -whole system. - -The RPM ships with a mostly-default file -- you will need to tune the -parameters for your installation. In particular, you might want to allow -nonlocal TCP/IP socket connections -- in order to allow these, you will need -to edit the postgresql.conf file. The line in question contains the string -'listen_addresses' -- you need to both uncomment the line and set the value -to '*' to get the postmaster to accept nonlocal connections. You'll also need -to adjust pg_hba.conf appropriately. - -LOGGING SET UP -------------------------------------------------------------------------------- -By default, the postmaster's stderr log is directed into files placed in a -pg_log subdirectory of the data directory (ie, /var/lib/pgsql/9.6/data/pg_log). -The out-of-the-box configuration rotates among seven files, one for each -day of the week. You can adjust this by changing postgresql.conf settings. - -REBUILDING FROM SOURCE RPM -------------------------------------------------------------------------------- -If your distribution is not supported by the binary RPMs from PostgreSQL.org, -you will need to rebuild from the source RPM. Download the .src.rpm for this -release. You will need to be root to rebuild, unless you have set up -a non-root build environment (which is the recommended method anyway). - -Install the source RPM with rpm -i, then cd to the rpm building area -(which is /usr/src/redhat by default). You will have to have a full -development environment to rebuild the full RPM set. - -This release of the RPMset includes the ability to conditionally build -sets of packages. The parameters, their defaults, and the meanings are: - -beta 0 #build with cassert and do not strip the binaries -python 1 #build the postgresql-python package. -tcl 1 #build the postgresql-tcl package. -test 1 #build the postgresql-test package. -plpython 1 #build the PL/Python procedural language package. -pltcl 1 #build the PL/Tcl procedural language package. -plperl 1 #build the PL/Perl procedural language package. -ssl 1 #use OpenSSL support. -kerberos 1 #use Kerberos 5 support. -nls 1 #build with national language support. -ldap 1 #build with LDAP support. -pam 1 #build with PAM support. -runselftest 1 #do "make check" during the build. -sdt 1 #build with SystemTap support. -xml 1 #build with XML support -pgfts 1 #build with --enable-thread-safety -uuid 1 #build contrib/uuid-ossp - -To use these defines, invoke a rebuild like this: -rpmbuild --rebuild --define 'python 0' --define 'tcl 0' \ - --define 'test 0' --define 'runselftest 0' --define 'kerberos 0' \ - postgresql96-9.6.0-1PGDG.f20.src.rpm -This line would disable the python, tcl, and test subpackages, disable -the regression test run during build, and disable kerberos support. - -You might need to disable runselftest if there is an installed version of -PostgreSQL that is a different major version from what you are trying to -build. The self test tends to pick up the installed libpq.so shared library -in place of the one being built :-(, so if that isn't compatible the test will -fail. Also, you can't use runselftest when doing the build as root. - -More of these conditionals will be added in the future. - -CONTRIB FILES -------------------------------------------------------------------------------- -The contents of the contrib tree are packaged into the -contrib subpackage -and are processed with make and make install. Most of the modules are in -/usr/pgsql-9.6/lib for loadable modules, and binaries are in -/usr/pgsql-9.6/bin. In the future these files may be split out, -depending upon function and dependencies. - - -MORE INFORMATION -------------------------------------------------------------------------------- -You can get more information at http://www.postgresql.org and -https://yum.postgresql.org - -Please help make this packaging better -- let us know if you find problems, or -better ways of doing things. You can reach us by e-mail at -pgsql-pkg-yum@postgresql.org -------------------------------------------------------------------------------- diff --git a/specs/postgresql-10/SOURCES/bash_profile b/specs/postgresql-10/SOURCES/bash_profile deleted file mode 100644 index d05024928..000000000 --- a/specs/postgresql-10/SOURCES/bash_profile +++ /dev/null @@ -1,12 +0,0 @@ -if [[ -f /etc/profile ]] ; then - source /etc/profile -fi - -export PGDATA={{PGDATA}} - -# If you want to customize your settings use the file below. -# This file is not overridden by PostgreSQL packages. - -if [[ -f /var/lib/pgsql/.pgsql_profile ]] ; then - source /var/lib/pgsql/.pgsql_profile -fi diff --git a/specs/postgresql-10/SOURCES/ecpg_config.h b/specs/postgresql-10/SOURCES/ecpg_config.h deleted file mode 100644 index 6fecfcb51..000000000 --- a/specs/postgresql-10/SOURCES/ecpg_config.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Kluge to support multilib installation of both 32- and 64-bit RPMS: - * we need to arrange that header files that appear in both RPMs are - * identical. Hence, this file is architecture-independent and calls - * in an arch-dependent file that will appear in just one RPM. - * - * To avoid breaking arches not explicitly supported by Red Hat, we - * use this indirection file *only* on known multilib arches. - * - * Note: this may well fail if user tries to use gcc's -I- option. - * But that option is deprecated anyway. - */ -#if defined(__x86_64__) -#include "ecpg_config_x86_64.h" -#elif defined(__i386__) -#include "ecpg_config_i386.h" -#elif defined(__ppc64__) || defined(__powerpc64__) -#include "ecpg_config_ppc64.h" -#elif defined(__ppc__) || defined(__powerpc__) -#include "ecpg_config_ppc.h" -#elif defined(__s390x__) -#include "ecpg_config_s390x.h" -#elif defined(__s390__) -#include "ecpg_config_s390.h" -#elif defined(__sparc__) && defined(__arch64__) -#include "ecpg_config_sparc64.h" -#elif defined(__sparc__) -#include "ecpg_config_sparc.h" -#endif diff --git a/specs/postgresql-10/SOURCES/filter-requires-perl-Pg.sh b/specs/postgresql-10/SOURCES/filter-requires-perl-Pg.sh deleted file mode 100755 index f37557f2d..000000000 --- a/specs/postgresql-10/SOURCES/filter-requires-perl-Pg.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/usr/lib/rpm/perl.req $* | grep -v 'perl(Pg' diff --git a/specs/postgresql-10/SOURCES/pg_comparator-Makefile.patch b/specs/postgresql-10/SOURCES/pg_comparator-Makefile.patch deleted file mode 100644 index b73120521..000000000 --- a/specs/postgresql-10/SOURCES/pg_comparator-Makefile.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN pg_comparator-2.3.1-orig/Makefile pg_comparator-2.3.1/Makefile ---- pg_comparator-2.3.1-orig/Makefile 2017-09-18 00:42:12.653308101 +0200 -+++ pg_comparator-2.3.1/Makefile 2017-09-18 00:42:46.000000000 +0200 -@@ -16,7 +16,7 @@ - EXTRA_CLEAN = $(name).1 $(name).html pod2htm?.tmp $(EXTENSION).control - - # get postgresql extension infrastructure --PG_CONFIG = pg_config -+PG_CONFIG ?= pg_config - PGXS := $(shell $(PG_CONFIG) --pgxs) - include $(PGXS) - diff --git a/specs/postgresql-10/SOURCES/pg_config.h b/specs/postgresql-10/SOURCES/pg_config.h deleted file mode 100644 index 97ef2baa0..000000000 --- a/specs/postgresql-10/SOURCES/pg_config.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Kluge to support multilib installation of both 32- and 64-bit RPMS: - * we need to arrange that header files that appear in both RPMs are - * identical. Hence, this file is architecture-independent and calls - * in an arch-dependent file that will appear in just one RPM. - * - * To avoid breaking arches not explicitly supported by Red Hat, we - * use this indirection file *only* on known multilib arches. - * - * Note: this may well fail if user tries to use gcc's -I- option. - * But that option is deprecated anyway. - */ -#if defined(__x86_64__) -#include "pg_config_x86_64.h" -#elif defined(__i386__) -#include "pg_config_i386.h" -#elif defined(__ppc64__) || defined(__powerpc64__) -#include "pg_config_ppc64.h" -#elif defined(__ppc__) || defined(__powerpc__) -#include "pg_config_ppc.h" -#elif defined(__s390x__) -#include "pg_config_s390x.h" -#elif defined(__s390__) -#include "pg_config_s390.h" -#elif defined(__sparc__) && defined(__arch64__) -#include "pg_config_sparc64.h" -#elif defined(__sparc__) -#include "pg_config_sparc.h" -#endif diff --git a/specs/postgresql-10/SOURCES/postgis2-gdalfpic.patch b/specs/postgresql-10/SOURCES/postgis2-gdalfpic.patch deleted file mode 100644 index 378c10ad0..000000000 --- a/specs/postgresql-10/SOURCES/postgis2-gdalfpic.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.old 2017-05-28 09:41:00.123550140 +0300 -+++ configure 2017-05-28 09:41:15.925586108 +0300 -@@ -17171,7 +17171,7 @@ - LIBGDAL_CFLAGS=`$GDAL_CONFIG --cflags` - - CPPFLAGS_SAVE="$CPPFLAGS" -- CPPFLAGS="$LIBGDAL_CFLAGS" -+ CPPFLAGS="$LIBGDAL_CFLAGS -fPIC" - CFLAGS_SAVE="$CFLAGS" - CFLAGS="" - LIBS_SAVE="$LIBS" diff --git a/specs/postgresql-10/SOURCES/postgis24-gdalfpic.patch b/specs/postgresql-10/SOURCES/postgis24-gdalfpic.patch deleted file mode 100644 index 378c10ad0..000000000 --- a/specs/postgresql-10/SOURCES/postgis24-gdalfpic.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.old 2017-05-28 09:41:00.123550140 +0300 -+++ configure 2017-05-28 09:41:15.925586108 +0300 -@@ -17171,7 +17171,7 @@ - LIBGDAL_CFLAGS=`$GDAL_CONFIG --cflags` - - CPPFLAGS_SAVE="$CPPFLAGS" -- CPPFLAGS="$LIBGDAL_CFLAGS" -+ CPPFLAGS="$LIBGDAL_CFLAGS -fPIC" - CFLAGS_SAVE="$CFLAGS" - CFLAGS="" - LIBS_SAVE="$LIBS" diff --git a/specs/postgresql-10/SOURCES/postgis25-gdalfpic.patch b/specs/postgresql-10/SOURCES/postgis25-gdalfpic.patch deleted file mode 100644 index 15a0687d9..000000000 --- a/specs/postgresql-10/SOURCES/postgis25-gdalfpic.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.old 2017-05-28 09:41:00.123550140 +0300 -+++ configure 2017-05-28 09:41:15.925586108 +0300 -@@ -17171,7 +17171,7 @@ - LIBGDAL_CFLAGS=`$GDAL_CONFIG --cflags` - - CPPFLAGS_SAVE="$CPPFLAGS" -- CPPFLAGS="$LIBGDAL_CFLAGS" -+ CPPFLAGS="$LIBGDAL_CFLAGS -fPIC" - CFLAGS_SAVE="$CFLAGS" - CFLAGS=`"$PG_CONFIG" --cflags` - CC_SAVE="$CC" diff --git a/specs/postgresql-10/SOURCES/postgresql-10-libs.conf b/specs/postgresql-10/SOURCES/postgresql-10-libs.conf deleted file mode 100644 index 8b8c13f4e..000000000 --- a/specs/postgresql-10/SOURCES/postgresql-10-libs.conf +++ /dev/null @@ -1 +0,0 @@ -/usr/pgsql-10/lib/ diff --git a/specs/postgresql-10/SOURCES/postgresql-logging.patch b/specs/postgresql-10/SOURCES/postgresql-logging.patch deleted file mode 100644 index 0ceb2fa44..000000000 --- a/specs/postgresql-10/SOURCES/postgresql-logging.patch +++ /dev/null @@ -1,54 +0,0 @@ ---- src/backend/utils/misc/postgresql.conf.sample.old 2017-08-16 16:39:30.078852480 +0100 -+++ src/backend/utils/misc/postgresql.conf.sample 2017-08-16 16:39:38.925779177 +0100 -@@ -341,25 +341,25 @@ - - # - Where to Log - - --#log_destination = 'stderr' # Valid values are combinations of -+log_destination = 'stderr' # Valid values are combinations of - # stderr, csvlog, syslog, and eventlog, - # depending on platform. csvlog - # requires logging_collector to be on. - - # This is used when logging to stderr: --#logging_collector = off # Enable capturing of stderr and csvlog -+logging_collector = on # Enable capturing of stderr and csvlog - # into log files. Required to be on for - # csvlogs. - # (change requires restart) - - # These are only used if logging_collector is on: --#log_directory = 'log' # directory where log files are written, -+log_directory = 'log' # directory where log files are written, - # can be absolute or relative to PGDATA --#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, -+log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, - # can include strftime() escapes - #log_file_mode = 0600 # creation mode for log files, - # begin with 0 to use octal notation --#log_truncate_on_rotation = off # If on, an existing log file with the -+log_truncate_on_rotation = on # If on, an existing log file with the - # same name as the new log file will be - # truncated rather than appended to. - # But such truncation only occurs on -@@ -367,9 +367,9 @@ - # or size-driven rotation. Default is - # off, meaning append to existing files - # in all cases. --#log_rotation_age = 1d # Automatic rotation of logfiles will -+log_rotation_age = 1d # Automatic rotation of logfiles will - # happen after that time. 0 disables. --#log_rotation_size = 10MB # Automatic rotation of logfiles will -+log_rotation_size = 0 # Automatic rotation of logfiles will - # happen after that much log output. - # 0 disables. - -@@ -442,7 +442,7 @@ - #log_duration = off - #log_error_verbosity = default # terse, default, or verbose messages - #log_hostname = off --#log_line_prefix = '%m [%p] ' # special values: -+log_line_prefix = '%m [%p] ' # special values: - # %a = application name - # %u = user name - # %d = database name diff --git a/specs/postgresql-10/SOURCES/postgresql-perl-rpath.patch b/specs/postgresql-10/SOURCES/postgresql-perl-rpath.patch deleted file mode 100644 index 625923899..000000000 --- a/specs/postgresql-10/SOURCES/postgresql-perl-rpath.patch +++ /dev/null @@ -1,20 +0,0 @@ -We configure Postgres with --disable-rpath because for the most part we -want to leave it to ldconfig to determine where libraries are. However, -for some reason the Perl package puts libperl.so in a nonstandard place -and doesn't add that place to the ldconfig search path. I think this -is a Perl packaging bug, myself, but apparently it's not going to change. -So work around it by adding an rpath spec to plperl.so (only). -Per bug #162198. - ---- src/pl/plperl/GNUmakefile.old 2017-08-16 16:41:37.003800819 +0100 -+++ src/pl/plperl/GNUmakefile 2017-08-16 16:43:52.410678880 +0100 -@@ -54,6 +54,9 @@ - - SHLIB_LINK = $(perl_embed_ldflags) - -+# Force rpath to be used even though we disable it everywhere else -+SHLIB_LINK += $(rpath) -+ - REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-extension=plperl --load-extension=plperlu - REGRESS = plperl plperl_lc plperl_trigger plperl_shared plperl_elog plperl_util plperl_init plperlu plperl_array - # if Perl can support two interpreters in one backend, diff --git a/specs/postgresql-10/SOURCES/postgresql-tmpfiles.d.conf b/specs/postgresql-10/SOURCES/postgresql-tmpfiles.d.conf deleted file mode 100644 index 6c48e34ed..000000000 --- a/specs/postgresql-10/SOURCES/postgresql-tmpfiles.d.conf +++ /dev/null @@ -1 +0,0 @@ -d /run/postgresql 0755 postgres postgres - diff --git a/specs/postgresql-10/SOURCES/postgresql-var-run-socket.patch b/specs/postgresql-10/SOURCES/postgresql-var-run-socket.patch deleted file mode 100644 index e8051dc7b..000000000 --- a/specs/postgresql-10/SOURCES/postgresql-var-run-socket.patch +++ /dev/null @@ -1,47 +0,0 @@ -Change the built-in default socket directory to be /var/run/postgresql. -For backwards compatibility with (probably non-libpq-based) clients that -might still expect to find the socket in /tmp, also create a socket in -/tmp. This is to resolve communication problems with clients operating -under systemd's PrivateTmp environment, which won't be using the same -global /tmp directory as the server; see bug #825448. - -Note that we apply the socket directory change at the level of the -hard-wired defaults in the C code, not by just twiddling the setting in -postgresql.conf.sample; this is so that the change will take effect on -server package update, without requiring any existing postgresql.conf -to be updated. (Of course, a user who dislikes this behavior can still -override it via postgresql.conf.) - ---- src/backend/utils/misc/guc.c.old 2017-05-17 10:08:23.919105969 +0300 -+++ src/backend/utils/misc/guc.c 2017-05-17 10:08:45.521877217 +0300 -@@ -3427,7 +3427,7 @@ - }, - &Unix_socket_directories, - #ifdef HAVE_UNIX_SOCKETS -- DEFAULT_PGSOCKET_DIR, -+ DEFAULT_PGSOCKET_DIR ", /tmp", - #else - "", - #endif ---- src/bin/initdb/initdb.c.old 2017-03-25 14:35:56.718372291 +0300 -+++ src/bin/initdb/initdb.c 2017-03-25 14:36:15.612204127 +0300 -@@ -1031,7 +1031,7 @@ - - #ifdef HAVE_UNIX_SOCKETS - snprintf(repltok, sizeof(repltok), "#unix_socket_directories = '%s'", -- DEFAULT_PGSOCKET_DIR); -+ DEFAULT_PGSOCKET_DIR ", /tmp"); - #else - snprintf(repltok, sizeof(repltok), "#unix_socket_directories = ''"); - #endif ---- src/include/pg_config_manual.h.old 2017-03-25 14:36:33.641043661 +0300 -+++ src/include/pg_config_manual.h 2017-03-25 14:37:03.908774263 +0300 -@@ -181,7 +181,7 @@ - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - */ --#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" - - /* - * This is the default event source for Windows event log. diff --git a/specs/postgresql-10/SOURCES/postgresql.init b/specs/postgresql-10/SOURCES/postgresql.init deleted file mode 100644 index dea4cb9de..000000000 --- a/specs/postgresql-10/SOURCES/postgresql.init +++ /dev/null @@ -1,249 +0,0 @@ -#!/bin/bash - -# postgresql This is the init script for starting up the PostgreSQL {{MAJOR_VERSION}} -# server. -# -# chkconfig: - 64 36 -# description: PostgreSQL database server. -# processname: postmaster - -############################################################################### - -source /etc/init.d/kaosv - -############################################################################### - -kv.require "2.16" - -############################################################################### - -INIT_DIR="/etc/init.d" - -############################################################################### - -VERSION="{{VERSION}}" -MAJOR_VERSION="{{MAJOR_VERSION}}" -PKG_VERSION="{{PKG_VERSION}}" -PREV_VERSION="{{PREV_VERSION}}" -USER_NAME="{{USER_NAME}}" -GROUP_NAME="{{GROUP_NAME}}" - -############################################################################### - -short_name="pgsql" - -kv[prog_name]="postgresql-${PKG_VERSION}" - -kv.readSysconfig "postgresql-${MAJOR_VERSION}" - -kv[lock_file]="${kv[lock_dir]}/postgresql${PKG_VERSION}" -kv[pid_file]="${kv[pid_dir]}/postgresql${PKG_VERSION}.pid" - -pg_engine="${PG_ENGINE:-/usr/${short_name}-${MAJOR_VERSION}/bin}" -pg_postmaster="${PG_POSTMASTER:-${pg_engine}/postmaster}" -pg_data="${PG_DATA:-/var/lib/${short_name}/${MAJOR_VERSION}/data}" -pg_log="${PG_LOG:-/var/lib/${short_name}/${MAJOR_VERSION}/pgstartup.log}" -pg_socket_dir="${PG_SOCKET_DIR:-/var/run/postgresql}" -timeout="${TIMEOUT:-300}" -disable_auto_numa="${DISABLE_AUTO_NUMA}" - -pg_ctl="$pg_engine/pg_ctl" -pg_initdb="$pg_engine/initdb" - -export pg_data - -kv[user]="$USER_NAME" -kv[search_pattern]="$pg_engine" - -kv[oom_adj]="$OOM_DISABLE" - -############################################################################### - -kv.addCommand "initdb" "Init new database" "initdb" -kv.addCommand "reload" "Reload configuration files" "reload" - -kv.addHandler "start" "startServiceHandler" -kv.addHandler "start" "preStartServiceHandler" "pre" -kv.addHandler "stop" "stopServiceHandler" - -kv.addCommandArgs "stop" "force" -kv.addCommandArgs "initdb" "locale" - -kv.disableOutputRedirect "start" "pre" - -############################################################################### - -preStartServiceHandler() { - [[ ! -f "$pg_postmaster" ]] && return $ACTION_ERROR - [[ ! -x "$pg_postmaster" ]] && return $ACTION_ERROR - - createLog || return $ACTION_ERROR - checkData || return $ACTION_ERROR - makeSocketDir || return $ACTION_ERROR - - return $ACTION_OK -} - -startServiceHandler() { - kv[log]="$pg_log" - - export PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj - export PG_OOM_ADJUST_VALUE=0 - - if [[ -n "$disable_auto_numa" || $(getNumaNodesCount) == "1" ]] ; then - kv.run "$pg_ctl" start -D "$pg_data" -s -w -t "$timeout" - else - kv.run numactl --interleave=all "$pg_ctl" start -D "$pg_data" -s -w -t "$timeout" - fi - - [[ $? -ne 0 ]] && return $ACTION_ERROR - - if kv.getStartStatus "$pg_data/postmaster.pid" true ; then - local pid=$(head -1 "$pg_data/postmaster.pid" 2>/dev/null) - - kv.createPid "$pid" - - return $ACTION_OK - fi - - return $ACTION_ERROR -} - -stopServiceHandler() { - local pid=$(kv.getPid) - - kv.run "$pg_ctl" stop -D "$pg_data" -s -m fast - - if kv.getStopStatus ; then - return $ACTION_OK - else - if [[ "$1" == "true" || "$1" == "force" ]] ; then - kv.killProcess - return $ACTION_FORCED - else - return $ACTION_ERROR - fi - fi -} - -initdb() { - if [[ -f "$pg_data/PG_VERSION" ]] ; then - kv.error "Error! Data directory is not empty." $ACTION_ERROR - fi - - kv.showProcessMessage "Initializing database" - - initNewDB $@ - - local status=$? - - kv.showStatusMessage "$status" - - return $status -} - -reload() { - kv.showProcessMessage "Reloading configuration" - - kv.run "$pg_ctl" reload -D "$pg_data" -s - - local status=$? - - kv.showStatusMessage "$status" - - return $status -} - -############################################################################### - -initNewDB() { - kv[log]="$pg_log" - - local loc="$1" - - [[ -z "$loc" ]] && loc=$(getLocale) - - if [[ ! -e "$pg_data" && ! -h "$pg_data" ]] ; then - mkdir -p "$pg_data" || return $ACTION_ERROR - kv.chown "$USER_NAME:$GROUP_NAME" "$pg_data" - kv.chmod go-rwx "$pg_data" - fi - - kv.restoreSEContext "$pg_data" - - createLog || return $ACTION_ERROR - - kv.run "$pg_initdb" --pgdata="$pg_data" --auth="ident" --locale="$loc" - - mkdir "$pg_data/pg_log" - kv.chown "$USER_NAME:$GROUP_NAME" "$pg_data/pg_log" - kv.chmod go-rwx "$pg_data/pg_log" - - if [[ -f "$pg_data/PG_VERSION" ]] ; then - return $ACTION_OK - fi - - return $ACTION_ERROR -} - -getLocale() { - local lang=$(locale | head -1 | cut -f2 -d= | sed 's/"//g') - - if [[ -n "$lang" ]] ; then - echo "$lang" - else - echo "en_US.UTF-8" - fi -} - -getNumaNodesCount() { - if [[ ! -x /usr/bin/numactl ]] ; then - echo 1 - fi - - numactl --hardware | head -1 | cut -f2 -d' ' -} - -############################################################################### - -checkData() { - if [[ -f "$pg_data/PG_VERSION" && -d "$pg_data/base" ]] ; then - if [[ $(cat "$pg_data/PG_VERSION") != "$MAJOR_VERSION" ]] ; then - local docdir="(Your System's documentation directory)" - - [[ -d "/usr/doc/postgresql-$VERSION" ]] && docdir=/usr/doc - [[ -d "/usr/share/doc/postgresql-$VERSION" ]] && docdir=/usr/share/doc - [[ -d "/usr/doc/packages/postgresql-$VERSION" ]] && docdir=/usr/doc/packages - [[ -d "/usr/share/doc/packages/postgresql-$VERSION" ]] && docdir=/usr/share/doc/packages - - kv.show "An old version of the database format was found." - kv.show "You need to upgrade the data format before using PostgreSQL." - kv.show "See $docdir/postgresql-$VERSION/README.rpm-dist for more information." - - return $ACTION_ERROR - fi - else - kv.show "Directory <$pg_data> is missing. Use ${CL_BOLD}service ${kv[script]} initdb${CL_NORM} to initialize the cluster first." - return $ACTION_ERROR - fi -} - -createLog() { - if [[ ! -e "$pg_log" && ! -h "$pg_log" ]] ; then - touch "$pg_log" || return 1 - kv.chown "$USER_NAME:$GROUP_NAME" "$pg_log" - kv.chmod go-rwx "$pg_log" - kv.restoreSEContext "$pg_log" - fi -} - -makeSocketDir() { - if [[ ! -e "$pg_socket_dir" ]] ; then - mkdir "$pg_socket_dir" || return $ACTION_ERROR - kv.chown "$USER_NAME:$GROUP_NAME" "$pg_socket_dir" || return $ACTION_ERROR - fi -} - -############################################################################### - -kv.go $@ diff --git a/specs/postgresql-10/SOURCES/postgresql.pam b/specs/postgresql-10/SOURCES/postgresql.pam deleted file mode 100644 index 1d785946d..000000000 --- a/specs/postgresql-10/SOURCES/postgresql.pam +++ /dev/null @@ -1,3 +0,0 @@ -#%PAM-1.0 -auth include password-auth -account include password-auth diff --git a/specs/postgresql-10/SOURCES/postgresql.service b/specs/postgresql-10/SOURCES/postgresql.service deleted file mode 100644 index ed3c426aa..000000000 --- a/specs/postgresql-10/SOURCES/postgresql.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=PostgreSQL {{MAJOR_VERSION}} database server -Documentation=https://www.postgresql.org/docs/{{MAJOR_VERSION}}/static/ -After=syslog.target network-online.target - -[Service] -PIDFile=/var/run/postgresql{{PKG_VERSION}}.pid -ExecStart=/etc/init.d/postgresql-{{MAJOR_VERSION}} start -ExecStop=/etc/init.d/postgresql-{{MAJOR_VERSION}} stop -ExecReload=/etc/init.d/postgresql-{{MAJOR_VERSION}} reload - -[Install] -WantedBy=multi-user.target diff --git a/specs/postgresql-10/SOURCES/postgresql.sysconfig b/specs/postgresql-10/SOURCES/postgresql.sysconfig deleted file mode 100644 index d54914b9e..000000000 --- a/specs/postgresql-10/SOURCES/postgresql.sysconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Sysconfig for postgresql service - -PG_ENGINE="" -PG_POSTMASTER="" -PG_DATA="" -PG_LOG="" -PG_UPLOG="" -PG_SOCKET_DIR="" -TIMEOUT="" -DISABLE_AUTO_NUMA="" diff --git a/specs/postgresql-10/SOURCES/rpm-pgsql.patch b/specs/postgresql-10/SOURCES/rpm-pgsql.patch deleted file mode 100644 index 4770b0931..000000000 --- a/specs/postgresql-10/SOURCES/rpm-pgsql.patch +++ /dev/null @@ -1,55 +0,0 @@ ---- postgresql-9.6.0/src/Makefile.global.in.old 2016-09-28 23:46:41.609287274 +0300 -+++ postgresql-9.6.0/src/Makefile.global.in 2016-09-28 23:47:50.538676965 +0300 -@@ -83,7 +83,7 @@ - # Installation directories - # - # These are set by the equivalent --xxxdir configure options. We --# append "postgresql" to some of them, if the string does not already -+# append "pgsql" to some of them, if the string does not already - # contain "pgsql" or "postgres", in order to avoid directory clutter. - # - # In a PGXS build, we cannot use the values inserted into Makefile.global -@@ -104,14 +104,14 @@ - datadir := @datadir@ - ifeq "$(findstring pgsql, $(datadir))" "" - ifeq "$(findstring postgres, $(datadir))" "" --override datadir := $(datadir)/postgresql -+override datadir := $(datadir)/pgsql - endif - endif - - sysconfdir := @sysconfdir@ - ifeq "$(findstring pgsql, $(sysconfdir))" "" - ifeq "$(findstring postgres, $(sysconfdir))" "" --override sysconfdir := $(sysconfdir)/postgresql -+override sysconfdir := $(sysconfdir)/pgsql - endif - endif - -@@ -120,7 +120,7 @@ - pkglibdir = $(libdir) - ifeq "$(findstring pgsql, $(pkglibdir))" "" - ifeq "$(findstring postgres, $(pkglibdir))" "" --override pkglibdir := $(pkglibdir)/postgresql -+override pkglibdir := $(pkglibdir)/pgsql - endif - endif - -@@ -129,7 +129,7 @@ - pkgincludedir = $(includedir) - ifeq "$(findstring pgsql, $(pkgincludedir))" "" - ifeq "$(findstring postgres, $(pkgincludedir))" "" --override pkgincludedir := $(pkgincludedir)/postgresql -+override pkgincludedir := $(pkgincludedir)/pgsql - endif - endif - -@@ -138,7 +138,7 @@ - docdir := @docdir@ - ifeq "$(findstring pgsql, $(docdir))" "" - ifeq "$(findstring postgres, $(docdir))" "" --override docdir := $(docdir)/postgresql -+override docdir := $(docdir)/pgsql - endif - endif - diff --git a/specs/postgresql-10/SOURCES/slony1.init b/specs/postgresql-10/SOURCES/slony1.init deleted file mode 100644 index f0e2f94bd..000000000 --- a/specs/postgresql-10/SOURCES/slony1.init +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash - -# redis init script for starting up the Slony-I -# -# chkconfig: - 64 36 -# description: Starts and stops the Slon daemon that handles -# Slony-I replication. - -############################################################################### - -source /etc/init.d/kaosv - -############################################################################### - -PG_MAJOR_VERSION="{{PG_MAJOR_VERSION}}" -PG_HIGH_VERSION="{{PG_HIGH_VERSION}}" - -############################################################################### - -kv[prog_name]="slony1" - -kv.readSysconfig "${kv[prog_name]}-${PG_MAJOR_VERSION}" - -binary=${BINARY:-/usr/pgsql-$PG_HIGH_VERSION/bin/slon} -conf_file=${CONF_FILE:-/etc/slony1-$PG_MAJOR_VERSION/slon.conf} -pid_dir=${PID_DIR:-/var/run/slony1-$PG_MAJOR_VERSION} -log_dir=${LOG_DIR:-/var/log/slony1-$PG_MAJOR_VERSION} -user=${USER:-postgres} - -conninfo="${SLONCONNINFO}" -clustername="${SLONCLUSTERNAME:-sloncluster}" - -[[ -z "$conninfo" ]] && conninfo="host=/tmp port=5432 user=slony" - -kv[user]="$user" -kv[pid_file]="$pid_dir/slon_${PG_MAJOR_VERSION}.pid" -kv[log]="$log_dir/slonystartup.log" - -############################################################################### - -kv.addHandler "start" "preStartServiceHandler" "pre" -kv.addHandler "start" "startServiceHandler" -kv.addHandler "stop" "stopServiceHandler" - -kv.disableOutputRedirect "start" "pre" - -############################################################################### - -preStartServiceHandler() { - local has_errors="" - - [[ ! -f $binary ]] && has_errors=true && kv.error "File <$binary> does not exist" - [[ ! -x $binary ]] && has_errors=true && kv.error "File <$binary> is not executable" - - [[ ! -f $conf_file ]] && has_errors=true && kv.error "Configuration file <$conf_file> does not exist." - [[ ! -r $conf_file ]] && has_errors=true && kv.error "Configuration file <$conf_file> is not readable." - - if ! kv.hasUser "$user" ; then - has_errors=true && kv.error "User <$user> not found" - fi - - [[ -n "$has_errors" ]] && kv.exit $ACTION_ERROR - - if kv.isRoot ; then - if [[ ! -d $log_dir ]] ; then - mkdir -p $log_dir - chown $user: $log_dir - fi - fi - - return $ACTION_OK -} - -startServiceHandler() { - kv.run "$binary -f $conf_file -p ${kv[pid_file]} $clustername \"$conninfo\" &" - - [[ $? -ne $ACTION_OK ]] && return $ACTION_ERROR - - kv.getStartStatus - - return $? -} - -stopServiceHandler() { - kv.sendSignal "$SIGNAL_TERM" - - kv.getStopStatus - - return $? -} - -############################################################################### - -kv.go $@ diff --git a/specs/postgresql-10/SOURCES/slony1.service b/specs/postgresql-10/SOURCES/slony1.service deleted file mode 100644 index fc325718e..000000000 --- a/specs/postgresql-10/SOURCES/slony1.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Slony-I -After=syslog.target network.target - -[Service] -PIDFile=/var/run/slony1-{{PG_MAJOR_VERSION}}/slon_{{PG_MAJOR_VERSION}}.pid -ExecStart=/etc/init.d/slony1-{{PG_MAJOR_VERSION}} start -ExecStop=/etc/init.d/slony1-{{PG_MAJOR_VERSION}} stop - -[Install] -WantedBy=multi-user.target diff --git a/specs/postgresql-10/SOURCES/slony1.sysconfig b/specs/postgresql-10/SOURCES/slony1.sysconfig deleted file mode 100644 index ac2c68b1e..000000000 --- a/specs/postgresql-10/SOURCES/slony1.sysconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Sysconfig file for slony - -BINARY="" -CONF_FILE="" -PID_DIR="" -LOG_DIR="" -USER="" -SLONCONNINFO="" -SLONCLUSTERNAME="" diff --git a/specs/postgresql-10/pg_comparator.spec b/specs/postgresql-10/pg_comparator.spec deleted file mode 100644 index a36af90ea..000000000 --- a/specs/postgresql-10/pg_comparator.spec +++ /dev/null @@ -1,86 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%define pg_ver 10 -%define pg_fullver %{pg_ver}.23 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname pg_comparator - -################################################################################ - -Summary: A tool to compare and sync tables in different locations -Name: %{realname}%{pg_ver} -Version: 2.3.2 -Release: 0%{?dist} -License: BSD -Group: Development/Tools -URL: https://www.cri.ensmp.fr/people/coelho/pg_comparator - -Source: https://www.cri.ensmp.fr/people/coelho/pg_comparator/%{realname}-%{version}.tgz - -Patch0: %{realname}-Makefile.patch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: make gcc -BuildRequires: postgresql%{pg_ver}-devel = %{pg_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_fullver} - -Requires: perl(Getopt::Long), perl(Time::HiRes) -Requires: postgresql%{pg_ver} - -Requires(post): chkconfig - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description -pg_comparator is a tool to compare possibly very big tables in -different locations and report differences, with a network and -time-efficient approach. - -################################################################################ - -%prep -%crc_check -%autosetup -p1 -n %{realname}-%{version} - -%build -%{__make} %{?_smp_mflags} PG_CONFIG=%{pg_dir}/bin/pg_config - -%install -rm -rf %{buildroot} - -%{make_install} PG_CONFIG=%{pg_dir}/bin/pg_config - -%post -update-alternatives --install %{_bindir}/pg_comparator pgcomparator %{pg_dir}/bin/pg_comparator %{pg_ver}0 - -%postun -if [[ $1 -eq 0 ]] ; then - update-alternatives --remove pgcomparator %{pg_dir}/bin/pg_comparator -fi - -################################################################################ - -%files -%defattr(-,root,root,-) -%doc LICENSE -%doc %{pg_dir}/doc/extension/README.pg_comparator -%{pg_dir}/bin/pg_comparator -%{pg_dir}/lib/pgcmp.so -%{pg_dir}/share/extension/*.sql -%{pg_dir}/share/extension/pgcmp.control - -################################################################################ - -%changelog -* Thu Sep 21 2023 Anton Novojilov - 2.3.2-0 -- Updated to the latest stable release - -* Thu Oct 12 2017 Anton Novojilov - 2.3.1-0 -- Initial build diff --git a/specs/postgresql-10/pg_repack.spec b/specs/postgresql-10/pg_repack.spec deleted file mode 100644 index 7869de35d..000000000 --- a/specs/postgresql-10/pg_repack.spec +++ /dev/null @@ -1,106 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%define pg_ver 10 -%define pg_fullver %{pg_ver}.23 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname pg_repack - -################################################################################ - -Summary: Reorganize tables in PostgreSQL %{pg_ver} databases without any locks -Name: %{realname}%{pg_ver} -Version: 1.4.8 -Release: 0%{?dist} -License: BSD -Group: Applications/Databases -URL: https://pgxn.org/dist/pg_repack/ - -Source0: https://api.pgxn.org/dist/%{realname}/%{version}/%{realname}-%{version}.zip - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: make gcc openssl-devel readline-devel zlib-devel -BuildRequires: postgresql%{pg_ver}-devel = %{pg_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_fullver} - -Requires: postgresql%{pg_ver} - -Requires(post): chkconfig - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description -pg_repack can re-organize tables on a postgres database without any locks so -that you can retrieve or update rows in tables being reorganized. -The module is developed to be a better alternative of CLUSTER and VACUUM FULL. - -################################################################################ - -%prep -%setup -qn %{realname}-%{version} - -%build -%{__make} %{?_smp_mflags} PG_CONFIG=%{pg_dir}/bin/pg_config - -%install -rm -rf %{buildroot} - -%{make_install} PG_CONFIG=%{pg_dir}/bin/pg_config - -%post -update-alternatives --install %{_bindir}/pg_repack pgrepack %{pg_dir}/bin/pg_repack %{pg_ver}0 - -%postun -if [[ $1 -eq 0 ]] ; then - update-alternatives --remove pgrepack %{pg_dir}/bin/pg_repack -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root,-) -%doc COPYRIGHT doc/pg_repack.rst -%attr(755,root,root) %{pg_dir}/bin/pg_repack -%attr(755,root,root) %{pg_dir}/lib/pg_repack.so -%{pg_dir}/share/extension/%{realname}--%{version}.sql -%{pg_dir}/share/extension/%{realname}.control - -################################################################################ - -%changelog -* Thu Sep 21 2023 Anton Novojilov - 1.4.8-0 -- Added support for PostgreSQL 15 -- Fixed --parent-table on declarative partitioned tables -- Removed connection info from error log - -* Thu Nov 18 2021 Anton Novojilov - 1.4.7-0 -- Added support for PostgreSQL 14 - -* Thu Feb 18 2021 Anton Novojilov - 1.4.6-0 -- Added support for PostgreSQL 13 -- Dropped support for PostgreSQL before 9.4 - -* Tue Jan 21 2020 Anton Novojilov - 1.4.5-0 -- Added support for PostgreSQL 12 -- Fixed parallel processing for indexes with operators from public schema - -* Sat Nov 17 2018 Anton Novojilov - 1.4.4-0 -- Added support for PostgreSQL 11 -- Remove duplicate password prompt - -* Tue Jun 19 2018 Anton Novojilov - 1.4.3-0 -- Fixed possible CVE-2018-1058 attack paths -- Fixed "unexpected index definition" after CVE-2018-1058 changes in PostgreSQL -- Fixed build with recent Ubuntu packages - -* Tue Nov 28 2017 Anton Novojilov - 1.4.2-0 -- Initial build for kaos repo diff --git a/specs/postgresql-10/postgis30.spec b/specs/postgresql-10/postgis30.spec deleted file mode 100644 index 3d1e05b18..000000000 --- a/specs/postgresql-10/postgis30.spec +++ /dev/null @@ -1,262 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?utils:%define utils 1} -%{!?raster:%define raster 1} - -################################################################################ - -%define maj_ver 3.0 -%define lib_ver 3 -%define pg_ver 10 -%define pg_low_fullver %{pg_ver}.23 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname postgis -%define pkgname %{realname}-%{maj_ver} -%define fullname %{realname}30 - -%define min_geos_ver 3.11 - -%define __perl_requires filter-requires-perl-Pg.sh - -################################################################################ - -Summary: Geographic Information Systems Extensions to PostgreSQL %{pg_ver} -Name: %{fullname}_%{pg_ver} -Version: 3.0.9 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/Databases -URL: https://www.postgis.net - -Source0: https://download.osgeo.org/%{realname}/source/%{realname}-%{version}.tar.gz -Source1: filter-requires-perl-Pg.sh - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: postgresql%{pg_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_low_fullver} -BuildRequires: geos-devel >= %{min_geos_ver} -BuildRequires: gcc-c++ chrpath make pcre-devel hdf5-devel -BuildRequires: proj-devel libtool flex json-c-devel libxml2-devel -BuildRequires: sqlite-devel libgeotiff-devel libpng-devel libtiff-devel - -%if %raster -%if 0%{?rhel} == 7 -BuildRequires: gdal3-devel -Requires: gdal3-libs -%else -BuildRequires: gdal-devel >= 3 -Requires: gdal-libs >= 3 -%endif -%endif - -Requires: postgresql%{pg_ver} proj hdf5 json-c pcre -Requires: %{fullname}_%{pg_ver}-client = %{version}-%{release} -Requires: geos >= %{min_geos_ver} - -Requires(post): chkconfig - -Conflicts: %{realname}31 %{realname}32 %{realname}33 %{realname}34 - -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostGIS adds support for geographic objects to the PostgreSQL object-relational -database. In effect, PostGIS "spatially enables" the PostgreSQL server, -allowing it to be used as a backend spatial database for geographic information -systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS -follows the OpenGIS "Simple Features Specification for SQL" and has been -certified as compliant with the "Types and Functions" profile. - -################################################################################ - -%package client -Summary: Client tools and their libraries of PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description client -The postgis-client package contains the client tools and their libraries -of PostGIS. - -################################################################################ - -%package scripts -Summary: Installing and upgrading scripts for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description scripts -This package postgis-scripts contains the SQL scripts for installing PostGIS -in a PostgreSQL database, and for upgrading from earlier PostGIS versions. - -################################################################################ - -%if %utils -%package utils -Summary: The utils for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} perl-DBD-Pg - -%description utils -The postgis-utils package provides the utilities for PostGIS. -%endif - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build -# We need the below for GDAL -export LD_LIBRARY_PATH=%{pg_dir}/lib -export LIBGDAL_CFLAGS="" - -%configure \ - --with-pgconfig=%{pg_dir}/bin/pg_config \ - --with-gdalconfig=%{_bindir}/gdal-config \ -%if !%raster - --without-raster \ -%endif - --disable-rpath \ - --libdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} LPATH=$(%{pg_dir}/bin/pg_config --pkglibdir) shlib="%{name}.so" -%{__make} -C extensions - -%if %utils -%{__make} -C utils -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -%{make_install} -C extensions - -rm -rf %{buildroot}%{pg_dir}/doc - -mkdir -p %{buildroot}%{pg_dir}/bin/%{pkgname} - -chrpath --delete --keepgoing %{buildroot}%{pg_dir}/bin/* || : - -mv %{buildroot}%{pg_dir}/bin/pgsql2shp \ - %{buildroot}%{pg_dir}/bin/shp2pgsql \ - %{buildroot}%{pg_dir}/bin/raster2pgsql \ - %{buildroot}%{pg_dir}/bin/%{pkgname}/ - -%if %utils -install -dm 755 %{buildroot}%{_datadir}/%{name} -install -pm 644 utils/*.pl %{buildroot}%{_datadir}/%{name} -%endif - -%post -/sbin/ldconfig - -update-alternatives --install %{_bindir}/pgsql2shp postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp %{pg_ver}0 -update-alternatives --install %{_bindir}/shp2pgsql postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql %{pg_ver}0 -update-alternatives --install %{_bindir}/raster2pgsql postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql %{pg_ver}0 - -%postun -/sbin/ldconfig - -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system - update-alternatives --remove postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp - update-alternatives --remove postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql - update-alternatives --remove postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root) -%doc COPYING CREDITS NEWS TODO README.%{realname} doc/html loader/README.* doc/%{realname}.xml doc/ZMSgeoms.txt -%{pg_dir}/lib/address_standardizer-%{lib_ver}.so -%{pg_dir}/lib/postgis-%{lib_ver}.so -%{pg_dir}/lib/postgis_topology-%{lib_ver}.so -%if %raster -%{pg_dir}/lib/postgis_raster-%{lib_ver}.so -%endif - -%files client -%defattr(-,root,root) -%{pg_dir}/bin/%{pkgname}/pgsql2shp -%{pg_dir}/bin/%{pkgname}/raster2pgsql -%{pg_dir}/bin/%{pkgname}/shp2pgsql - -%files scripts -%defattr(-,root,root) -%{pg_dir}/share/contrib/%{pkgname}/legacy_gist.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy_minimal.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_proc_set_search_path.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_restore.pl -%{pg_dir}/share/contrib/%{pkgname}/postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/raster_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/sfcgal_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/spatial_ref_sys.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/topology.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_topology.sql -%{pg_dir}/share/extension/address_standardizer*.control -%{pg_dir}/share/extension/address_standardizer*.sql -%{pg_dir}/share/extension/postgis*.control -%{pg_dir}/share/extension/postgis*.sql -%if %raster -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_proc_set_search_path.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_rtpostgis.sql -%endif - -%if %utils -%files utils -%defattr(-,root,root) -%doc utils/README -%attr(755,root,root) %{_datadir}/%{name}/create_extension_unpackage.pl -%attr(755,root,root) %{_datadir}/%{name}/create_spatial_ref_sys_config_dump.pl -%attr(755,root,root) %{_datadir}/%{name}/create_undef.pl -%attr(755,root,root) %{_datadir}/%{name}/create_unpackaged.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_proc_set_search_path.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_proc_upgrade.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_restore.pl -%attr(755,root,root) %{_datadir}/%{name}/profile_intersects.pl -%attr(755,root,root) %{_datadir}/%{name}/read_scripts_version.pl -%attr(755,root,root) %{_datadir}/%{name}/repo_revision.pl -%attr(755,root,root) %{_datadir}/%{name}/test_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_joinestimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_joinestimation.pl -%endif - -################################################################################ - -%changelog -* Wed Nov 08 2023 Anton Novojilov - 3.0.9-1 -- Minimal required version of GEOS set to 3.11 - -* Thu Sep 21 2023 Anton Novojilov - 3.0.9-0 -- https://git.osgeo.org/gitea/postgis/postgis/raw/tag/3.0.9/NEWS diff --git a/specs/postgresql-10/postgis31.spec b/specs/postgresql-10/postgis31.spec deleted file mode 100644 index 409fdb530..000000000 --- a/specs/postgresql-10/postgis31.spec +++ /dev/null @@ -1,260 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?utils:%define utils 1} -%{!?raster:%define raster 1} - -################################################################################ - -%define maj_ver 3.1 -%define lib_ver 3 -%define pg_ver 10 -%define pg_low_fullver %{pg_ver}.23 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname postgis -%define pkgname %{realname}-%{maj_ver} -%define fullname %{realname}31 - -%define min_geos_ver 3.11 - -%define __perl_requires filter-requires-perl-Pg.sh - -################################################################################ - -Summary: Geographic Information Systems Extensions to PostgreSQL %{pg_ver} -Name: %{fullname}_%{pg_ver} -Version: 3.1.9 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/Databases -URL: https://www.postgis.net - -Source0: https://download.osgeo.org/%{realname}/source/%{realname}-%{version}.tar.gz -Source1: filter-requires-perl-Pg.sh - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: postgresql%{pg_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_low_fullver} -BuildRequires: geos-devel >= %{min_geos_ver} -BuildRequires: gcc-c++ chrpath make pcre-devel hdf5-devel -BuildRequires: proj-devel libtool flex json-c-devel libxml2-devel -BuildRequires: sqlite-devel libgeotiff-devel libpng-devel libtiff-devel - -%if %raster -%if 0%{?rhel} == 7 -BuildRequires: gdal3-devel -Requires: gdal3-libs -%else -BuildRequires: gdal-devel >= 3 -Requires: gdal-libs >= 3 -%endif -%endif - -Requires: postgresql%{pg_ver} proj hdf5 json-c pcre -Requires: %{fullname}_%{pg_ver}-client = %{version}-%{release} -Requires: geos >= %{min_geos_ver} - -Requires(post): chkconfig - -Conflicts: %{realname}30 %{realname}32 %{realname}33 %{realname}34 - -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostGIS adds support for geographic objects to the PostgreSQL object-relational -database. In effect, PostGIS "spatially enables" the PostgreSQL server, -allowing it to be used as a backend spatial database for geographic information -systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS -follows the OpenGIS "Simple Features Specification for SQL" and has been -certified as compliant with the "Types and Functions" profile. - -################################################################################ - -%package client -Summary: Client tools and their libraries of PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description client -The postgis-client package contains the client tools and their libraries -of PostGIS. - -################################################################################ - -%package scripts -Summary: Installing and upgrading scripts for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description scripts -This package postgis-scripts contains the SQL scripts for installing PostGIS -in a PostgreSQL database, and for upgrading from earlier PostGIS versions. - -################################################################################ - -%if %utils -%package utils -Summary: The utils for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} perl-DBD-Pg - -%description utils -The postgis-utils package provides the utilities for PostGIS. -%endif - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build -# We need the below for GDAL -export LD_LIBRARY_PATH=%{pg_dir}/lib -export LIBGDAL_CFLAGS="" - -%configure \ - --with-pgconfig=%{pg_dir}/bin/pg_config \ - --with-gdalconfig=%{_bindir}/gdal-config \ -%if !%raster - --without-raster \ -%endif - --without-protobuf \ - --disable-rpath \ - --libdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} LPATH=$(%{pg_dir}/bin/pg_config --pkglibdir) shlib="%{name}.so" -%{__make} -C extensions - -%if %utils -%{__make} -C utils -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -%{make_install} -C extensions - -rm -rf %{buildroot}%{pg_dir}/doc - -mkdir -p %{buildroot}%{pg_dir}/bin/%{pkgname} - -chrpath --delete --keepgoing %{buildroot}%{pg_dir}/bin/* || : - -mv %{buildroot}%{pg_dir}/bin/pgsql2shp \ - %{buildroot}%{pg_dir}/bin/shp2pgsql \ - %{buildroot}%{pg_dir}/bin/raster2pgsql \ - %{buildroot}%{pg_dir}/bin/%{pkgname}/ - -%if %utils -install -dm 755 %{buildroot}%{_datadir}/%{name} -install -pm 644 utils/*.pl %{buildroot}%{_datadir}/%{name} -%endif - -%post -/sbin/ldconfig - -update-alternatives --install %{_bindir}/pgsql2shp postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp %{pg_ver}0 -update-alternatives --install %{_bindir}/shp2pgsql postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql %{pg_ver}0 -update-alternatives --install %{_bindir}/raster2pgsql postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql %{pg_ver}0 - -%postun -/sbin/ldconfig - -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system - update-alternatives --remove postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp - update-alternatives --remove postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql - update-alternatives --remove postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root) -%doc COPYING CREDITS NEWS TODO README.%{realname} doc/html loader/README.* doc/%{realname}.xml doc/ZMSgeoms.txt -%{pg_dir}/lib/address_standardizer-%{lib_ver}.so -%{pg_dir}/lib/postgis-%{lib_ver}.so -%{pg_dir}/lib/postgis_topology-%{lib_ver}.so -%if %raster -%{pg_dir}/lib/postgis_raster-%{lib_ver}.so -%endif - -%files client -%defattr(-,root,root) -%{pg_dir}/bin/%{pkgname}/pgsql2shp -%{pg_dir}/bin/%{pkgname}/raster2pgsql -%{pg_dir}/bin/%{pkgname}/shp2pgsql - -%files scripts -%defattr(-,root,root) -%{pg_dir}/share/contrib/%{pkgname}/legacy_gist.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy_minimal.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_restore.pl -%{pg_dir}/share/contrib/%{pkgname}/postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/raster_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/sfcgal_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/spatial_ref_sys.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/topology.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_topology.sql -%{pg_dir}/share/extension/address_standardizer*.control -%{pg_dir}/share/extension/address_standardizer*.sql -%{pg_dir}/share/extension/postgis*.control -%{pg_dir}/share/extension/postgis*.sql -%if %raster -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_rtpostgis.sql -%endif - -%if %utils -%files utils -%defattr(-,root,root) -%doc utils/README -%attr(755,root,root) %{_datadir}/%{name}/create_extension_unpackage.pl -%attr(755,root,root) %{_datadir}/%{name}/create_spatial_ref_sys_config_dump.pl -%attr(755,root,root) %{_datadir}/%{name}/create_undef.pl -%attr(755,root,root) %{_datadir}/%{name}/create_unpackaged.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_proc_upgrade.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_restore.pl -%attr(755,root,root) %{_datadir}/%{name}/profile_intersects.pl -%attr(755,root,root) %{_datadir}/%{name}/read_scripts_version.pl -%attr(755,root,root) %{_datadir}/%{name}/repo_revision.pl -%attr(755,root,root) %{_datadir}/%{name}/test_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_joinestimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_joinestimation.pl -%endif - -################################################################################ - -%changelog -* Wed Nov 08 2023 Anton Novojilov - 3.1.9-1 -- Minimal required version of GEOS set to 3.11 - -* Thu Sep 21 2023 Anton Novojilov - 3.1.9-0 -- https://git.osgeo.org/gitea/postgis/postgis/raw/tag/3.1.9/NEWS diff --git a/specs/postgresql-10/postgis32.spec b/specs/postgresql-10/postgis32.spec deleted file mode 100644 index 858fbcba8..000000000 --- a/specs/postgresql-10/postgis32.spec +++ /dev/null @@ -1,260 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?utils:%define utils 1} -%{!?raster:%define raster 1} - -################################################################################ - -%define maj_ver 3.2 -%define lib_ver 3 -%define pg_ver 10 -%define pg_low_fullver %{pg_ver}.23 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname postgis -%define pkgname %{realname}-%{maj_ver} -%define fullname %{realname}32 - -%define min_geos_ver 3.11 - -%define __perl_requires filter-requires-perl-Pg.sh - -################################################################################ - -Summary: Geographic Information Systems Extensions to PostgreSQL %{pg_ver} -Name: %{fullname}_%{pg_ver} -Version: 3.2.5 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/Databases -URL: https://www.postgis.net - -Source0: https://download.osgeo.org/%{realname}/source/%{realname}-%{version}.tar.gz -Source1: filter-requires-perl-Pg.sh - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: postgresql%{pg_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_low_fullver} -BuildRequires: geos-devel >= %{min_geos_ver} -BuildRequires: gcc-c++ chrpath make pcre-devel hdf5-devel -BuildRequires: proj-devel libtool flex json-c-devel libxml2-devel -BuildRequires: sqlite-devel libgeotiff-devel libpng-devel libtiff-devel - -%if %raster -%if 0%{?rhel} == 7 -BuildRequires: gdal3-devel -Requires: gdal3-libs -%else -BuildRequires: gdal-devel >= 3 -Requires: gdal-libs >= 3 -%endif -%endif - -Requires: postgresql%{pg_ver} proj hdf5 json-c pcre -Requires: %{fullname}_%{pg_ver}-client = %{version}-%{release} -Requires: geos >= %{min_geos_ver} - -Requires(post): chkconfig - -Conflicts: %{realname}30 %{realname}31 %{realname}33 %{realname}34 - -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostGIS adds support for geographic objects to the PostgreSQL object-relational -database. In effect, PostGIS "spatially enables" the PostgreSQL server, -allowing it to be used as a backend spatial database for geographic information -systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS -follows the OpenGIS "Simple Features Specification for SQL" and has been -certified as compliant with the "Types and Functions" profile. - -################################################################################ - -%package client -Summary: Client tools and their libraries of PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description client -The postgis-client package contains the client tools and their libraries -of PostGIS. - -################################################################################ - -%package scripts -Summary: Installing and upgrading scripts for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description scripts -This package postgis-scripts contains the SQL scripts for installing PostGIS -in a PostgreSQL database, and for upgrading from earlier PostGIS versions. - -################################################################################ - -%if %utils -%package utils -Summary: The utils for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} perl-DBD-Pg - -%description utils -The postgis-utils package provides the utilities for PostGIS. -%endif - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build -# We need the below for GDAL -export LD_LIBRARY_PATH=%{pg_dir}/lib -export LIBGDAL_CFLAGS="" - -%configure \ - --with-pgconfig=%{pg_dir}/bin/pg_config \ - --with-gdalconfig=%{_bindir}/gdal-config \ -%if !%raster - --without-raster \ -%endif - --without-protobuf \ - --disable-rpath \ - --libdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} LPATH=$(%{pg_dir}/bin/pg_config --pkglibdir) shlib="%{name}.so" -%{__make} -C extensions - -%if %utils -%{__make} -C utils -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -%{make_install} -C extensions - -rm -rf %{buildroot}%{pg_dir}/doc - -mkdir -p %{buildroot}%{pg_dir}/bin/%{pkgname} - -chrpath --delete --keepgoing %{buildroot}%{pg_dir}/bin/* || : - -mv %{buildroot}%{pg_dir}/bin/pgsql2shp \ - %{buildroot}%{pg_dir}/bin/shp2pgsql \ - %{buildroot}%{pg_dir}/bin/raster2pgsql \ - %{buildroot}%{pg_dir}/bin/%{pkgname}/ - -%if %utils -install -dm 755 %{buildroot}%{_datadir}/%{name} -install -pm 644 utils/*.pl %{buildroot}%{_datadir}/%{name} -%endif - -%post -/sbin/ldconfig - -update-alternatives --install %{_bindir}/pgsql2shp postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp %{pg_ver}0 -update-alternatives --install %{_bindir}/shp2pgsql postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql %{pg_ver}0 -update-alternatives --install %{_bindir}/raster2pgsql postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql %{pg_ver}0 - -%postun -/sbin/ldconfig - -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system - update-alternatives --remove postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp - update-alternatives --remove postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql - update-alternatives --remove postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root) -%doc COPYING CREDITS NEWS TODO README.%{realname} doc/html loader/README.* doc/%{realname}.xml doc/ZMSgeoms.txt -%{pg_dir}/lib/address_standardizer-%{lib_ver}.so -%{pg_dir}/lib/postgis-%{lib_ver}.so -%{pg_dir}/lib/postgis_topology-%{lib_ver}.so -%if %raster -%{pg_dir}/lib/postgis_raster-%{lib_ver}.so -%endif - -%files client -%defattr(-,root,root) -%{pg_dir}/bin/%{pkgname}/pgsql2shp -%{pg_dir}/bin/%{pkgname}/raster2pgsql -%{pg_dir}/bin/%{pkgname}/shp2pgsql - -%files scripts -%defattr(-,root,root) -%{pg_dir}/share/contrib/%{pkgname}/legacy_gist.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy_minimal.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_restore.pl -%{pg_dir}/share/contrib/%{pkgname}/postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/raster_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/sfcgal_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/spatial_ref_sys.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/topology.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_topology.sql -%{pg_dir}/share/extension/address_standardizer*.control -%{pg_dir}/share/extension/address_standardizer*.sql -%{pg_dir}/share/extension/postgis*.control -%{pg_dir}/share/extension/postgis*.sql -%if %raster -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_rtpostgis.sql -%endif - -%if %utils -%files utils -%defattr(-,root,root) -%doc utils/README -%attr(755,root,root) %{_datadir}/%{name}/create_extension_unpackage.pl -%attr(755,root,root) %{_datadir}/%{name}/create_spatial_ref_sys_config_dump.pl -%attr(755,root,root) %{_datadir}/%{name}/create_undef.pl -%attr(755,root,root) %{_datadir}/%{name}/create_unpackaged.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_proc_upgrade.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_restore.pl -%attr(755,root,root) %{_datadir}/%{name}/profile_intersects.pl -%attr(755,root,root) %{_datadir}/%{name}/read_scripts_version.pl -%attr(755,root,root) %{_datadir}/%{name}/repo_revision.pl -%attr(755,root,root) %{_datadir}/%{name}/test_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_joinestimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_joinestimation.pl -%endif - -################################################################################ - -%changelog -* Wed Nov 08 2023 Anton Novojilov - 3.2.5-1 -- Minimal required version of GEOS set to 3.11 - -* Thu Sep 21 2023 Anton Novojilov - 3.2.5-0 -- https://git.osgeo.org/gitea/postgis/postgis/raw/tag/3.2.5/NEWS diff --git a/specs/postgresql-10/postgresql-10.spec b/specs/postgresql-10/postgresql-10.spec deleted file mode 100644 index b77a33f58..000000000 --- a/specs/postgresql-10/postgresql-10.spec +++ /dev/null @@ -1,1156 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?kerbdir:%define kerbdir "/usr"} -%{!?test:%define test 1} -%{!?plpython:%define plpython 1} -%{!?pltcl:%define pltcl 1} -%{!?plperl:%define plperl 1} -%{!?ssl:%define ssl 1} -%{!?intdatetimes:%define intdatetimes 1} -%{!?icu:%define icu 1} -%{!?kerberos:%define kerberos 1} -%{!?nls:%define nls 1} -%{!?xml:%define xml 1} -%{!?pam:%define pam 1} -%{!?disablepgfts:%define disablepgfts 0} -%{!?runselftest:%define runselftest 0} -%{!?uuid:%define uuid 1} -%{!?ldap:%define ldap 1} - -%define majorver 10 -%define minorver 23 -%define rel 1 -%define fullver %{majorver}.%{minorver} -%define pkgver 10 -%define realname postgresql -%define shortname pgsql -%define tinyname pg -%define service_name %{realname}-%{majorver} -%define install_dir %{_usr}/%{shortname}-%{majorver} - -%define prev_version 9.6 - -%define username postgres -%define groupname postgres -%define gid 26 - -%define __perl_requires %{SOURCE9} - -################################################################################ - -Summary: PostgreSQL %{majorver} client programs and libraries -Name: %{realname}%{majorver} -Version: %{fullver} -Release: %{rel}%{?dist} -License: PostgreSQL -Group: Applications/Databases -URL: https://www.postgresql.org - -Source0: https://download.postgresql.org/pub/source/v%{version}/%{realname}-%{version}.tar.bz2 -Source1: %{realname}.init -Source2: Makefile.regress -Source3: pg_config.h -Source4: README.rpm-dist -Source5: ecpg_config.h -Source6: %{realname}-%{majorver}-libs.conf -Source7: https://www.postgresql.org/files/documentation/pdf/%{majorver}/%{realname}-%{majorver}-A4.pdf -Source8: %{realname}.pam -Source9: filter-requires-perl-Pg.sh -Source10: %{realname}.sysconfig -Source11: %{realname}.service -Source12: bash_profile -Source13: %{realname}-tmpfiles.d.conf - -Source100: checksum.sha512 - -Patch1: rpm-%{shortname}.patch -Patch2: %{realname}-logging.patch -Patch3: %{realname}-perl-rpath.patch -Patch4: %{realname}-var-run-socket.patch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: make gcc perl glibc-devel bison flex -BuildRequires: readline-devel zlib-devel >= 1.0.4 - -%if %plperl -BuildRequires: perl-ExtUtils-Embed perl-ExtUtils-MakeMaker -%endif - -%if %plpython -BuildRequires: python3-devel -%endif - -%if %pltcl -BuildRequires: tcl-devel -%endif - -%if %ssl -BuildRequires: openssl-devel -%endif - -%if %kerberos -BuildRequires: krb5-devel e2fsprogs-devel -%endif - -%if %icu -BuildRequires: libicu-devel -Requires: libicu -%endif - -%if %nls -BuildRequires: gettext >= 0.10.35 -%endif - -%if %xml -BuildRequires: libxml2-devel libxslt-devel -%endif - -%if %pam -BuildRequires: pam-devel -%endif - -%if %uuid -BuildRequires: libuuid-devel -%endif - -%if %ldap -BuildRequires: openldap-devel -%endif - -BuildRequires: systemd systemd-devel - -Requires: glibc initscripts -Requires: %{name}-libs = %{version} - -Requires(post): systemd chkconfig -Requires(preun): systemd -Requires(postun): systemd chkconfig - -Provides: %{name} = %{version}-%{release} -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostgreSQL is an advanced Object-Relational database management system -(DBMS) that supports almost all SQL constructs (including -transactions, subselects and user-defined types and functions). The -postgresql package includes the client programs and libraries that -you'll need to access a PostgreSQL DBMS server. These PostgreSQL -client programs are programs that directly manipulate the internal -structure of PostgreSQL databases on a PostgreSQL server. These client -programs can be located on the same machine with the PostgreSQL -server, or may be on a remote machine which accesses a PostgreSQL -server over a network connection. This package contains the command-line -utilities for managing PostgreSQL databases on a PostgreSQL server. - -If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL -server, you need this package. You also need to install this package -if you're installing the postgresql%{pkgver}-server package. - -################################################################################ - -%package libs -Summary: The shared libraries required for any PostgreSQL clients -Group: Applications/Databases - -Provides: %{realname}-libs = %{version}-%{release} - -%description libs -The postgresql%{pkgver}-libs package provides the essential shared libraries -for any PostgreSQL client program or interface. You will need to install this -package to use any other PostgreSQL package or any clients that need to connect -to a PostgreSQL server. - -################################################################################ - -%package server -Summary: The programs needed to create and run a PostgreSQL server -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} -Requires: %{name}-libs = %{version}-%{release} -Requires: glibc kaosv >= 2.16 numactl -Requires: %{_sbindir}/useradd %{_sbindir}/chkconfig - -Provides: %{realname}-server = %{version}-%{release} - -%description server -The postgresql%{pkgver}-server package includes the programs needed to create -and run a PostgreSQL server, which will in turn allow you to create -and maintain PostgreSQL databases. PostgreSQL is an advanced -Object-Relational database management system (DBMS) that supports -almost all SQL constructs (including transactions, subselects and -user-defined types and functions). You should install -postgresql%{pkgver}-server if you want to create and maintain your own -PostgreSQL databases and/or your own PostgreSQL server. You also need -to install the postgresql package. - -################################################################################ - -%package docs -Summary: Extra documentation for PostgreSQL -Group: Applications/Databases - -Provides: %{realname}-docs = %{version}-%{release} - -%description docs -The postgresql%{pkgver}-docs package includes the SGML source for the -documentation as well as the documentation in PDF format and some extra -documentation. Install this package if you want to help with the PostgreSQL -documentation project, or if you want to generate printed documentation. This -package also includes HTML version of the documentation. - -################################################################################ - -%package contrib -Summary: Contributed source and binaries distributed with PostgreSQL -Group: Applications/Databases - -Requires: %{name} = %{version} -Provides: %{realname}-contrib = %{version}-%{release} - -%description contrib -The postgresql%{pkgver}-contrib package contains contributed packages that are -included in the PostgreSQL distribution. - -################################################################################ - -%package devel -Summary: PostgreSQL development header files and libraries -Group: Development/Libraries - -%if %icu -Requires: libicu-devel -%endif - -%if %ssl -Requires: openssl-devel -%endif - -AutoReq: no -Requires: %{name} = %{version}-%{release} -Requires: %{name}-libs = %{version}-%{release} -Provides: %{realname}-devel = %{version}-%{release} - -%description devel -The postgresql%{pkgver}-devel package contains the header files and libraries -needed to compile C or C++ applications which will directly interact -with a PostgreSQL database management server and the ecpg Embedded C -Postgres preprocessor. You need to install this package if you want to -develop applications which will interact with a PostgreSQL server. - -################################################################################ - -%if %plperl -%package plperl -Summary: The Perl procedural language for PostgreSQL -Group: Applications/Databases - -Requires: %{name}-server = %{version} - -Obsoletes: %{realname}-pl = %{version} -Provides: %{realname}-plperl = %{version}-%{release} - -%description plperl -PostgreSQL is an advanced Object-Relational database management -system. The postgresql%{pkgver}-plperl package contains the PL/Perl language -for the backend. -%endif - -################################################################################ - -%if %plpython -%package plpython3 -Summary: The Python procedural language for PostgreSQL -Group: Applications/Databases - -Requires: %{name} = %{version} -Requires: %{name}-server = %{version} -Requires: python3 python3-libs - -Obsoletes: %{realname}-pl = %{version} -Provides: %{realname}-plpython = %{version}-%{release} - -%description plpython3 -PostgreSQL is an advanced Object-Relational database management -system. The postgresql%{pkgver}-plpython package contains the PL/Python language -for the backend. -%endif - -################################################################################ - -%if %pltcl -%package pltcl -Summary: The Tcl procedural language for PostgreSQL -Group: Applications/Databases - -Requires: %{name} = %{version} -Requires: %{name}-server = %{version} - -Obsoletes: %{realname}-pl = %{version} -Provides: %{realname}-pltcl = %{version}-%{release} - -%description pltcl -PostgreSQL is an advanced Object-Relational database management -system. The postgresql%{pkgver}-pltcl package contains the PL/Tcl language -for the backend. -%endif - -################################################################################ - -%if %test -%package test -Summary: The test suite distributed with PostgreSQL -Group: Applications/Databases - -Requires: %{name}-server = %{version} -Provides: %{realname}-test = %{version}-%{release} - -%description test -PostgreSQL is an advanced Object-Relational database management -system. 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. -%endif - -################################################################################ - -%prep -%crc_check -%autosetup -p0 -n %{realname}-%{version} - -# Copy pdf with documentation to build directory -cp -p %{SOURCE7} . - -%build -CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS -CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS - -%if %kerberos -CPPFLAGS="${CPPFLAGS} -I%{_includedir}/et" ; export CPPFLAGS -CFLAGS="${CFLAGS} -I%{_includedir}/et" ; export CFLAGS -%endif - -# Strip out -ffast-math from CFLAGS.... -CFLAGS=$(echo "$CFLAGS" | xargs -n 1 | grep -v ffast-math | xargs -n 100) -CFLAGS="$CFLAGS -DLINUX_OOM_SCORE_ADJ=0" -LDFLAGS="-Wl,--as-needed" ; export LDFLAGS - -export CFLAGS -export LIBNAME=%{_lib} -export PYTHON=/usr/bin/python3 - -%{_configure} --disable-rpath \ - --prefix=%{install_dir} \ - --includedir=%{install_dir}/include \ - --mandir=%{install_dir}/share/man \ - --datadir=%{install_dir}/share \ -%if %icu - --with-icu \ -%endif -%if %plperl - --with-perl \ -%endif -%if %plpython - --with-python \ -%endif -%if %pltcl - --with-tcl \ - --with-tclconfig=%{_libdir} \ -%endif -%if %ssl - --with-openssl \ -%endif -%if %pam - --with-pam \ -%endif -%if %kerberos - --with-gssapi \ - --with-includes=%{kerbdir}/include \ - --with-libraries=%{kerbdir}/%{_lib} \ -%endif -%if %nls - --enable-nls \ -%endif -%if !%intdatetimes - --disable-integer-datetimes \ -%endif -%if %disablepgfts - --disable-thread-safety \ -%endif -%if %uuid - --with-uuid=e2fs \ -%endif -%if %xml - --with-libxml \ - --with-libxslt \ -%endif -%if %ldap - --with-ldap \ -%endif - --with-system-tzdata=%{_datadir}/zoneinfo \ - --sysconfdir=%{_sysconfdir}/sysconfig/%{shortname} \ - --docdir=%{install_dir}/doc \ - --htmldir=%{install_dir}/doc/html - -%{__make} %{?_smp_mflags} all -%{__make} %{?_smp_mflags} -C contrib all -%if %uuid -%{__make} %{?_smp_mflags} -C contrib/uuid-ossp all -%endif - -# Have to hack makefile to put correct path into tutorial scripts -sed "s|C=\`pwd\`;|C=%{install_dir}/lib/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile -%{__make} %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all -rm -f src/tutorial/GNUmakefile - -# run_testsuite WHERE -# ------------------- -# Run 'make check' in WHERE path. When that command fails, return the logs -# given by PostgreSQL build system and set 'test_failure=1'. - -run_testsuite() -{ - %{__make} -C "$1" MAX_CONNECTIONS=5 check && return 0 - - test_failure=1 - - ( - set +x - echo "=== trying to find all regression.diffs files in build directory ===" - find -name 'regression.diffs' | \ - while read line; do - echo "=== make failure: $line ===" - cat "$line" - done - ) -} - -%if %runselftest - run_testsuite "src/test/regress" - %{__make} %{?_smp_mflags} clean -C "src/test/regress" - run_testsuite "src/pl" - run_testsuite "contrib" -%endif - -%if %test - pushd src/test/regress - %{__make} %{?_smp_mflags} all - popd -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -mkdir -p %{buildroot}%{install_dir}/share/extensions/ -%{make_install} -C contrib - -# multilib header hack; note pg_config.h is installed in two places! -# we only apply this to known Red Hat multilib arches, per bug #177564 -case `uname -i` in - i386 | x86_64) - mv %{buildroot}%{install_dir}/include/pg_config.h %{buildroot}%{install_dir}/include/pg_config_`uname -i`.h - install -pm 644 %{SOURCE3} %{buildroot}%{install_dir}/include/ - mv %{buildroot}%{install_dir}/include/server/pg_config.h %{buildroot}%{install_dir}/include/server/pg_config_`uname -i`.h - install -pm 644 %{SOURCE3} %{buildroot}%{install_dir}/include/server/ - mv %{buildroot}%{install_dir}/include/ecpg_config.h %{buildroot}%{install_dir}/include/ecpg_config_`uname -i`.h - install -pm 644 %{SOURCE5} %{buildroot}%{install_dir}/include/ - ;; - *) - ;; -esac - -# Installing and updating sysv init script -install -d %{buildroot}%{_initddir} -install -d %{buildroot}%{_sysconfdir}/sysconfig - -install -pm 755 %{SOURCE1} %{buildroot}%{_initddir}/%{service_name} -install -pm 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/sysconfig/%{service_name} - -sed -i 's/{{VERSION}}/%{version}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{MAJOR_VERSION}}/%{majorver}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{PKG_VERSION}}/%{majorver}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{PREV_VERSION}}/%{prev_version}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{USER_NAME}}/%{username}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{GROUP_NAME}}/%{groupname}/g' %{buildroot}%{_initddir}/%{service_name} - -# Installing and updating systemd config -install -d %{buildroot}%{_unitdir} -install -pm 644 %{SOURCE11} %{buildroot}%{_unitdir}/postgresql-%{majorver}.service - -sed -i 's/{{VERSION}}/%{version}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{MAJOR_VERSION}}/%{majorver}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{PKG_VERSION}}/%{majorver}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{PREV_VERSION}}/%{prev_version}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{USER_NAME}}/%{username}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{GROUP_NAME}}/%{groupname}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service - -ln -sf %{service_name} %{buildroot}%{_initddir}/%{tinyname}%{majorver} - -%if %pam -install -d %{buildroot}%{_sysconfdir}/pam.d -install -pm 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/%{realname}%{majorver} -%endif - -install -dm 755 %{buildroot}%{_tmpfilesdir} -install -pm 644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/%{realname}-%{majorver}.conf - -# Create the directory for sockets -install -dm 755 %{buildroot}%{_localstatedir}/run/%{realname} - -# PGDATA needs removal of group and world permissions due to pg_pwd hole. -install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/data - -# backups of data go here... -install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/backups - -# Create the multiple postmaster startup directory -install -dm 700 %{buildroot}%{_sysconfdir}/sysconfig/%{shortname}/%{majorver} - -# Install linker conf file under postgresql installation directory. -# We will install the latest version via alternatives. -install -dm 755 %{buildroot}%{install_dir}/share/ -install -pm 700 %{SOURCE6} %{buildroot}%{install_dir}/share/ - -%if %test - # Tests. There are many files included here that are unnecessary, - # but include them anyway for completeness. We replace the original - # Makefiles, however. - mkdir -p %{buildroot}%{install_dir}/lib/test - cp -a src/test/regress %{buildroot}%{install_dir}/lib/test - install -pm 0755 contrib/spi/refint.so %{buildroot}%{install_dir}/lib/test/regress - install -pm 0755 contrib/spi/autoinc.so %{buildroot}%{install_dir}/lib/test/regress - pushd %{buildroot}%{install_dir}/lib/test/regress - strip *.so - rm -f GNUmakefile Makefile *.o - chmod 0755 pg_regress regress.so - popd - cp %{SOURCE2} %{buildroot}%{install_dir}/lib/test/regress/Makefile - chmod 0644 %{buildroot}%{install_dir}/lib/test/regress/Makefile -%endif - -# Fix some more documentation -# gzip doc/internals.ps -cp %{SOURCE4} README.rpm-dist -mkdir -p %{buildroot}%{install_dir}/share/doc/html -mv doc/src/sgml/html doc -mkdir -p %{buildroot}%{install_dir}/share/man/ -mv doc/src/sgml/man1 doc/src/sgml/man3 doc/src/sgml/man7 %{buildroot}%{install_dir}/share/man/ -rm -rf %{buildroot}%{_docdir}/%{shortname} - -# initialize file lists -cp /dev/null main.lst -cp /dev/null libs.lst -cp /dev/null server.lst -cp /dev/null devel.lst -cp /dev/null plperl.lst -cp /dev/null pltcl.lst -cp /dev/null plpython.lst - -%if %nls - %find_lang ecpg-%{majorver} - %find_lang ecpglib6-%{majorver} - %find_lang initdb-%{majorver} - %find_lang libpq5-%{majorver} - %find_lang pg_archivecleanup-%{majorver} - %find_lang pg_basebackup-%{majorver} - %find_lang pg_config-%{majorver} - %find_lang pg_controldata-%{majorver} - %find_lang pg_ctl-%{majorver} - %find_lang pg_dump-%{majorver} - %find_lang pg_resetwal-%{majorver} - %find_lang pg_rewind-%{majorver} - %find_lang pg_test_fsync-%{majorver} - %find_lang pg_test_timing-%{majorver} - %find_lang pg_upgrade-%{majorver} - %find_lang pg_waldump-%{majorver} - %find_lang pgscripts-%{majorver} - - %if %plperl - %find_lang plperl-%{majorver} - cat plperl-%{majorver}.lang > pg_plperl.lst - %endif - - %find_lang plpgsql-%{majorver} - - %if %plpython - %find_lang plpython-%{majorver} - cat plpython-%{majorver}.lang > pg_plpython.lst - %endif - - %if %pltcl - %find_lang pltcl-%{majorver} - cat pltcl-%{majorver}.lang > pg_pltcl.lst - %endif - - %find_lang postgres-%{majorver} - %find_lang psql-%{majorver} -%endif - -cat libpq5-%{majorver}.lang > pg_libpq5.lst - -cat pg_config-%{majorver}.lang \ - ecpg-%{majorver}.lang \ - ecpglib6-%{majorver}.lang > pg_devel.lst - -cat initdb-%{majorver}.lang \ - pg_ctl-%{majorver}.lang \ - psql-%{majorver}.lang \ - pg_dump-%{majorver}.lang \ - pg_basebackup-%{majorver}.lang \ - pg_rewind-%{majorver}.lang \ - pg_upgrade-%{majorver}.lang \ - pg_test_timing-%{majorver}.lang \ - pg_test_fsync-%{majorver}.lang \ - pg_archivecleanup-%{majorver}.lang \ - pg_waldump-%{majorver}.lang \ - pgscripts-%{majorver}.lang > pg_main.lst - -cat postgres-%{majorver}.lang \ - pg_resetwal-%{majorver}.lang \ - pg_controldata-%{majorver}.lang \ - plpgsql-%{majorver}.lang > pg_server.lst - -# Install bash profile -install -pm 700 %{SOURCE12} %{buildroot}%{install_dir}/share/ -sed -i "s#{{PGDATA}}#%{_sharedstatedir}/%{shortname}/%{majorver}/data/#" \ - %{buildroot}%{install_dir}/share/bash_profile - -################################################################################ - -%pre server -if [[ $1 -eq 1 ]] ; then - getent group %{groupname} >/dev/null || groupadd -g %{gid} -o -r %{groupname} - getent passwd %{username} >/dev/null || \ - useradd -M -n -g %{username} -o -r -d %{_sharedstatedir}/%{shortname} -s /bin/bash -u %{gid} %{username} -fi - -%post server -if [[ $1 -eq 1 ]] ; then - systemctl daemon-reload %{service_name}.service &>/dev/null || : - systemctl preset %{service_name}.service &>/dev/null || : - - /sbin/ldconfig -fi - -# Removing bash_profile generated by previous versions of packages -if [[ ! -L %{_sharedstatedir}/%{shortname}/.bash_profile ]] ; then - rm -f %{_sharedstatedir}/%{shortname}/.bash_profile -fi - -update-alternatives --install %{_sharedstatedir}/%{shortname}/.bash_profile %{shortname}-bash_profile %{install_dir}/share/bash_profile %{pkgver}00 - -%preun server -if [[ $1 -eq 0 ]] ; then - update-alternatives --remove %{shortname}-bash_profile %{install_dir}/share/bash_profile - systemctl --no-reload disable %{service_name}.service &>/dev/null || : - systemctl stop %{service_name}.service &>/dev/null || : -fi - -%postun server -systemctl daemon-reload &>/dev/null || : -/sbin/ldconfig - -%if %plperl -%post plperl -/sbin/ldconfig - -%postun plperl -/sbin/ldconfig -%endif - -%if %plpython -%post plpython3 -/sbin/ldconfig - -%postun plpython3 -/sbin/ldconfig -%endif - -%if %pltcl -%post pltcl -/sbin/ldconfig - -%postun pltcl -/sbin/ldconfig -%endif - -%if %test -%post test -chown -R -h %{username}:%{groupname} %{_datarootdir}/%{shortname}/test &>/dev/null || : -%endif - -# Create alternatives entries for common binaries and man files -%post -update-alternatives --install %{_bindir}/psql %{shortname}-psql %{install_dir}/bin/psql %{pkgver}00 -update-alternatives --install %{_bindir}/clusterdb %{shortname}-clusterdb %{install_dir}/bin/clusterdb %{pkgver}00 -update-alternatives --install %{_bindir}/createdb %{shortname}-createdb %{install_dir}/bin/createdb %{pkgver}00 -update-alternatives --install %{_bindir}/createuser %{shortname}-createuser %{install_dir}/bin/createuser %{pkgver}00 -update-alternatives --install %{_bindir}/dropdb %{shortname}-dropdb %{install_dir}/bin/dropdb %{pkgver}00 -update-alternatives --install %{_bindir}/dropuser %{shortname}-dropuser %{install_dir}/bin/dropuser %{pkgver}00 -update-alternatives --install %{_bindir}/pg_basebackup %{shortname}-pg_basebackup %{install_dir}/bin/pg_basebackup %{pkgver}00 -update-alternatives --install %{_bindir}/pg_config %{shortname}-pg_config %{install_dir}/bin/pg_config %{pkgver}00 -update-alternatives --install %{_bindir}/pg_dump %{shortname}-pg_dump %{install_dir}/bin/pg_dump %{pkgver}00 -update-alternatives --install %{_bindir}/pg_dumpall %{shortname}-pg_dumpall %{install_dir}/bin/pg_dumpall %{pkgver}00 -update-alternatives --install %{_bindir}/pg_restore %{shortname}-pg_restore %{install_dir}/bin/pg_restore %{pkgver}00 -update-alternatives --install %{_bindir}/reindexdb %{shortname}-reindexdb %{install_dir}/bin/reindexdb %{pkgver}00 -update-alternatives --install %{_bindir}/vacuumdb %{shortname}-vacuumdb %{install_dir}/bin/vacuumdb %{pkgver}00 - -update-alternatives --install %{_mandir}/man1/clusterdb.1 %{shortname}-clusterdbman %{install_dir}/share/man/man1/clusterdb.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/createdb.1 %{shortname}-createdbman %{install_dir}/share/man/man1/createdb.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/createuser.1 %{shortname}-createuserman %{install_dir}/share/man/man1/createuser.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/dropdb.1 %{shortname}-dropdbman %{install_dir}/share/man/man1/dropdb.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/dropuser.1 %{shortname}-dropuserman %{install_dir}/share/man/man1/dropuser.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/pg_basebackup.1 %{shortname}-pg_basebackupman %{install_dir}/share/man/man1/pg_basebackup.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/pg_dump.1 %{shortname}-pg_dumpman %{install_dir}/share/man/man1/pg_dump.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/pg_dumpall.1 %{shortname}-pg_dumpallman %{install_dir}/share/man/man1/pg_dumpall.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/pg_restore.1 %{shortname}-pg_restoreman %{install_dir}/share/man/man1/pg_restore.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/psql.1 %{shortname}-psqlman %{install_dir}/share/man/man1/psql.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/reindexdb.1 %{shortname}-reindexdbman %{install_dir}/share/man/man1/reindexdb.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/vacuumdb.1 %{shortname}-vacuumdbman %{install_dir}/share/man/man1/vacuumdb.1 %{pkgver}00 - -%post libs -# Create link to linker configuration file -update-alternatives --install %{_sysconfdir}/ld.so.conf.d/%{realname}-pgdg-libs.conf %{shortname}-ld-conf %{install_dir}/share/%{service_name}-libs.conf %{pkgver}00 -# Update shared libs cache -/sbin/ldconfig - -%post devel -# Create links to pkgconfig configuration files -update-alternatives --install %{_libdir}/pkgconfig/libpq.pc %{shortname}-pkgconfig-libpq %{install_dir}/lib/pkgconfig/libpq.pc %{pkgver}00 -update-alternatives --install %{_libdir}/pkgconfig/libpgtypes.pc %{shortname}-pkgconfig-libpgtypes %{install_dir}/lib/pkgconfig/libpgtypes.pc %{pkgver}00 -update-alternatives --install %{_libdir}/pkgconfig/libecpg.pc %{shortname}-pkgconfig-libecpg %{install_dir}/lib/pkgconfig/libecpg.pc %{pkgver}00 -update-alternatives --install %{_libdir}/pkgconfig/libecpg_compat.pc %{shortname}-pkgconfig-libecpg_compat %{install_dir}/lib/pkgconfig/libecpg_compat.pc %{pkgver}00 - -# Drop alternatives entries for common binaries and man files -%postun -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system (vs. just being upgraded) - update-alternatives --remove %{shortname}-psql %{install_dir}/bin/psql - update-alternatives --remove %{shortname}-clusterdb %{install_dir}/bin/clusterdb - update-alternatives --remove %{shortname}-createdb %{install_dir}/bin/createdb - update-alternatives --remove %{shortname}-createuser %{install_dir}/bin/createuser - update-alternatives --remove %{shortname}-dropdb %{install_dir}/bin/dropdb - update-alternatives --remove %{shortname}-dropuser %{install_dir}/bin/dropuser - update-alternatives --remove %{shortname}-pg_basebackup %{install_dir}/bin/pg_basebackup - update-alternatives --remove %{shortname}-pg_config %{install_dir}/bin/pg_config - update-alternatives --remove %{shortname}-pg_dump %{install_dir}/bin/pg_dump - update-alternatives --remove %{shortname}-pg_dumpall %{install_dir}/bin/pg_dumpall - update-alternatives --remove %{shortname}-pg_restore %{install_dir}/bin/pg_restore - update-alternatives --remove %{shortname}-reindexdb %{install_dir}/bin/reindexdb - update-alternatives --remove %{shortname}-vacuumdb %{install_dir}/bin/vacuumdb - - update-alternatives --remove %{shortname}-clusterdbman %{install_dir}/share/man/man1/clusterdb.1 - update-alternatives --remove %{shortname}-createdbman %{install_dir}/share/man/man1/createdb.1 - update-alternatives --remove %{shortname}-createuserman %{install_dir}/share/man/man1/createuser.1 - update-alternatives --remove %{shortname}-dropdbman %{install_dir}/share/man/man1/dropdb.1 - update-alternatives --remove %{shortname}-dropuserman %{install_dir}/share/man/man1/dropuser.1 - update-alternatives --remove %{shortname}-pg_basebackupman %{install_dir}/share/man/man1/pg_basebackup.1 - update-alternatives --remove %{shortname}-pg_dumpallman %{install_dir}/share/man/man1/pg_dumpall.1 - update-alternatives --remove %{shortname}-pg_dumpman %{install_dir}/share/man/man1/pg_dump.1 - update-alternatives --remove %{shortname}-pg_restoreman %{install_dir}/share/man/man1/pg_restore.1 - update-alternatives --remove %{shortname}-psqlman %{install_dir}/share/man/man1/psql.1 - update-alternatives --remove %{shortname}-reindexdbman %{install_dir}/share/man/man1/reindexdb.1 - update-alternatives --remove %{shortname}-vacuumdbman %{install_dir}/share/man/man1/vacuumdb.1 -fi - -%postun libs -if [[ $1 -eq 0 ]] ; then - # Remove link to linker configuration file - update-alternatives --remove %{shortname}-ld-conf %{install_dir}/share/%{service_name}-libs.conf - # Update shared libs cache - /sbin/ldconfig -fi - -%postun devel -if [[ $1 -eq 0 ]] ; then - # Remove links to pkgconfig configuration files - update-alternatives --remove %{shortname}-pkgconfig-libpq %{install_dir}/lib/pkgconfig/libpq.pc - update-alternatives --remove %{shortname}-pkgconfig-libpgtypes %{install_dir}/lib/pkgconfig/libpgtypes.pc - update-alternatives --remove %{shortname}-pkgconfig-libecpg %{install_dir}/lib/pkgconfig/libecpg.pc - update-alternatives --remove %{shortname}-pkgconfig-libecpg_compat %{install_dir}/lib/pkgconfig/libecpg_compat.pc -fi - -################################################################################ - -%files -f pg_main.lst -%defattr(-,root,root) -%doc doc/KNOWN_BUGS doc/MISSING_FEATURES -%doc COPYRIGHT doc/bug.template -%doc README.rpm-dist -%{install_dir}/bin/pgbench -%{install_dir}/bin/clusterdb -%{install_dir}/bin/createdb -%{install_dir}/bin/createuser -%{install_dir}/bin/dropdb -%{install_dir}/bin/dropuser -%{install_dir}/bin/pg_archivecleanup -%{install_dir}/bin/pg_basebackup -%{install_dir}/bin/pg_config -%{install_dir}/bin/pg_dump -%{install_dir}/bin/pg_dumpall -%{install_dir}/bin/pg_isready -%{install_dir}/bin/pg_restore -%{install_dir}/bin/pg_rewind -%{install_dir}/bin/pg_test_fsync -%{install_dir}/bin/pg_test_timing -%{install_dir}/bin/pg_receivewal -%{install_dir}/bin/pg_upgrade -%{install_dir}/bin/pg_waldump -%{install_dir}/bin/psql -%{install_dir}/bin/reindexdb -%{install_dir}/bin/vacuumdb -%{install_dir}/share/man/man1/clusterdb.* -%{install_dir}/share/man/man1/createdb.* -%{install_dir}/share/man/man1/createuser.* -%{install_dir}/share/man/man1/dropdb.* -%{install_dir}/share/man/man1/dropuser.* -%{install_dir}/share/man/man1/pg_archivecleanup.1 -%{install_dir}/share/man/man1/pg_basebackup.* -%{install_dir}/share/man/man1/pg_config.* -%{install_dir}/share/man/man1/pg_dump.* -%{install_dir}/share/man/man1/pg_dumpall.* -%{install_dir}/share/man/man1/pg_isready.* -%{install_dir}/share/man/man1/pg_receivewal.* -%{install_dir}/share/man/man1/pg_restore.* -%{install_dir}/share/man/man1/pg_rewind.* -%{install_dir}/share/man/man1/pg_test_fsync.1 -%{install_dir}/share/man/man1/pg_test_timing.1 -%{install_dir}/share/man/man1/pg_upgrade.1 -%{install_dir}/share/man/man1/pg_waldump.1 -%{install_dir}/share/man/man1/pgbench.1 -%{install_dir}/share/man/man1/psql.* -%{install_dir}/share/man/man1/reindexdb.* -%{install_dir}/share/man/man1/vacuumdb.* -%{install_dir}/share/man/man3/* -%{install_dir}/share/man/man7/* - -%files docs -%defattr(-,root,root) -%doc doc/src/* -%doc *-A4.pdf -%doc src/tutorial -%doc doc/html - -%files contrib -%defattr(-,root,root) -%doc %{install_dir}/doc/extension/*.example -%{install_dir}/lib/_int.so -%{install_dir}/lib/adminpack.so -%{install_dir}/lib/amcheck.so -%{install_dir}/lib/auth_delay.so -%{install_dir}/lib/autoinc.so -%{install_dir}/lib/auto_explain.so -%{install_dir}/lib/bloom.so -%{install_dir}/lib/btree_gin.so -%{install_dir}/lib/btree_gist.so -%{install_dir}/lib/chkpass.so -%{install_dir}/lib/citext.so -%{install_dir}/lib/cube.so -%{install_dir}/lib/dblink.so -%{install_dir}/lib/earthdistance.so -%{install_dir}/lib/file_fdw.so* -%{install_dir}/lib/fuzzystrmatch.so -%{install_dir}/lib/insert_username.so -%{install_dir}/lib/isn.so -%{install_dir}/lib/hstore.so -%if %plperl -%{install_dir}/lib/hstore_plperl.so -%endif -%{install_dir}/lib/passwordcheck.so -%{install_dir}/lib/pg_freespacemap.so -%{install_dir}/lib/pg_stat_statements.so -%{install_dir}/lib/pgrowlocks.so -%{install_dir}/lib/postgres_fdw.so -%{install_dir}/lib/sslinfo.so -%{install_dir}/lib/lo.so -%{install_dir}/lib/ltree.so -%{install_dir}/lib/moddatetime.so -%{install_dir}/lib/pageinspect.so -%{install_dir}/lib/pgcrypto.so -%{install_dir}/lib/pgstattuple.so -%{install_dir}/lib/pg_buffercache.so -%{install_dir}/lib/pg_prewarm.so -%{install_dir}/lib/pg_trgm.so -%{install_dir}/lib/pg_visibility.so -%{install_dir}/lib/refint.so -%{install_dir}/lib/seg.so -%{install_dir}/lib/tablefunc.so -%{install_dir}/lib/tcn.so -%{install_dir}/lib/test_decoding.so -%{install_dir}/lib/timetravel.so -%{install_dir}/lib/tsm_system_rows.so -%{install_dir}/lib/tsm_system_time.so -%{install_dir}/lib/unaccent.so -%if %xml -%{install_dir}/lib/pgxml.so -%endif -%if %uuid -%{install_dir}/lib/uuid-ossp.so -%endif -%{install_dir}/share/extension/adminpack* -%{install_dir}/share/extension/amcheck* -%{install_dir}/share/extension/autoinc* -%{install_dir}/share/extension/bloom* -%{install_dir}/share/extension/btree_gin* -%{install_dir}/share/extension/btree_gist* -%{install_dir}/share/extension/chkpass* -%{install_dir}/share/extension/citext* -%{install_dir}/share/extension/cube* -%{install_dir}/share/extension/dblink* -%{install_dir}/share/extension/dict_int* -%{install_dir}/share/extension/dict_xsyn* -%{install_dir}/share/extension/earthdistance* -%{install_dir}/share/extension/file_fdw* -%{install_dir}/share/extension/fuzzystrmatch* -%{install_dir}/share/extension/hstore* -%{install_dir}/share/extension/insert_username* -%{install_dir}/share/extension/intagg* -%{install_dir}/share/extension/intarray* -%{install_dir}/share/extension/isn* -%{install_dir}/share/extension/lo* -%{install_dir}/share/extension/ltree* -%{install_dir}/share/extension/moddatetime* -%{install_dir}/share/extension/pageinspect* -%{install_dir}/share/extension/pg_buffercache* -%{install_dir}/share/extension/pg_freespacemap* -%{install_dir}/share/extension/pg_prewarm* -%{install_dir}/share/extension/pg_stat_statements* -%{install_dir}/share/extension/pg_trgm* -%{install_dir}/share/extension/pg_visibility* -%{install_dir}/share/extension/pgcrypto* -%{install_dir}/share/extension/pgrowlocks* -%{install_dir}/share/extension/pgstattuple* -%{install_dir}/share/extension/postgres_fdw* -%{install_dir}/share/extension/refint* -%{install_dir}/share/extension/seg* -%{install_dir}/share/extension/sslinfo* -%{install_dir}/share/extension/tablefunc* -%{install_dir}/share/extension/tcn* -%{install_dir}/share/extension/timetravel* -%{install_dir}/share/extension/tsm_system* -%{install_dir}/share/extension/unaccent* -%if %uuid -%{install_dir}/share/extension/uuid-ossp* -%endif -%{install_dir}/share/extension/xml2* -%{install_dir}/bin/oid2name -%{install_dir}/bin/vacuumlo -%{install_dir}/bin/pg_recvlogical -%{install_dir}/bin/pg_standby -%{install_dir}/share/man/man1/oid2name.1 -%{install_dir}/share/man/man1/pg_recvlogical.1 -%{install_dir}/share/man/man1/pg_standby.1 -%{install_dir}/share/man/man1/vacuumlo.1 - -%files libs -f pg_libpq5.lst -%defattr(-,root,root) -%{install_dir}/lib/libpq.so.* -%{install_dir}/lib/libecpg.so* -%{install_dir}/lib/libpgfeutils.a -%{install_dir}/lib/libpgtypes.so.* -%{install_dir}/lib/libecpg_compat.so.* -%{install_dir}/lib/libpqwalreceiver.so -%config(noreplace) %{install_dir}/share/%{service_name}-libs.conf - -%files server -f pg_server.lst -%defattr(-,root,root) -%config(noreplace) %{_initddir}/%{service_name} -%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name} -%config(noreplace) %{_unitdir}/%{realname}-%{majorver}.service -%config(noreplace) %{_tmpfilesdir}/%{realname}-%{majorver}.conf -%attr(755,%{username},%{groupname}) %dir %{_localstatedir}/run/%{realname} -%{_initddir}/%{tinyname}%{majorver} -%if %pam -%config(noreplace) %{_sysconfdir}/pam.d/%{realname}%{majorver} -%endif -%{install_dir}/bin/initdb -%{install_dir}/bin/pg_controldata -%{install_dir}/bin/pg_ctl -%{install_dir}/bin/pg_resetwal -%{install_dir}/bin/postgres -%{install_dir}/bin/postmaster -%{install_dir}/share/man/man1/initdb.* -%{install_dir}/share/man/man1/pg_controldata.* -%{install_dir}/share/man/man1/pg_ctl.* -%{install_dir}/share/man/man1/pg_resetwal.* -%{install_dir}/share/man/man1/postgres.* -%{install_dir}/share/man/man1/postmaster.* -%{install_dir}/share/postgres.bki -%{install_dir}/share/postgres.description -%{install_dir}/share/postgres.shdescription -%{install_dir}/share/system_views.sql -%{install_dir}/share/*.sample -%{install_dir}/share/timezonesets/* -%{install_dir}/share/tsearch_data/*.affix -%{install_dir}/share/tsearch_data/*.dict -%{install_dir}/share/tsearch_data/*.ths -%{install_dir}/share/tsearch_data/*.rules -%{install_dir}/share/tsearch_data/*.stop -%{install_dir}/share/tsearch_data/*.syn -%{install_dir}/lib/dict_int.so -%{install_dir}/lib/dict_snowball.so -%{install_dir}/lib/dict_xsyn.so -%{install_dir}/lib/euc2004_sjis2004.so -%{install_dir}/lib/pgoutput.so -%{install_dir}/lib/plpgsql.so -%dir %{install_dir}/share/extension -%{install_dir}/share/extension/plpgsql* - -%config(noreplace) %attr(700,%{username},%{groupname}) %{install_dir}/share/bash_profile - -%dir %{install_dir}/lib -%dir %{install_dir}/share -%attr(700,%{username},%{groupname}) %dir %{_sharedstatedir}/%{shortname} -%attr(700,%{username},%{groupname}) %dir %{_sharedstatedir}/%{shortname}/%{majorver} -%attr(700,%{username},%{groupname}) %dir %{_sharedstatedir}/%{shortname}/%{majorver}/data -%attr(700,%{username},%{groupname}) %dir %{_sharedstatedir}/%{shortname}/%{majorver}/backups -%{install_dir}/lib/*_and_*.so -%{install_dir}/share/conversion_create.sql -%{install_dir}/share/information_schema.sql -%{install_dir}/share/snowball_create.sql -%{install_dir}/share/sql_features.txt - -%files devel -f pg_devel.lst -%defattr(-,root,root) -%{install_dir}/include/* -%{install_dir}/bin/ecpg -%{install_dir}/lib/libpq.so -%{install_dir}/lib/libecpg.so -%{install_dir}/lib/libpq.a -%{install_dir}/lib/libpgcommon.a -%{install_dir}/lib/libecpg.a -%{install_dir}/lib/libecpg_compat.so -%{install_dir}/lib/libecpg_compat.a -%{install_dir}/lib/libpgport.a -%{install_dir}/lib/libpgtypes.so -%{install_dir}/lib/libpgtypes.a -%{install_dir}/lib/pgxs/* -%{install_dir}/lib/pkgconfig/* -%{install_dir}/share/man/man1/ecpg.* - -%if %plperl -%files plperl -f pg_plperl.lst -%defattr(-,root,root) -%{install_dir}/lib/plperl.so -%{install_dir}/lib/hstore_plperl.so -%{install_dir}/share/extension/plperl* -%endif - -%if %pltcl -%files pltcl -f pg_pltcl.lst -%defattr(-,root,root) -%{install_dir}/lib/pltcl.so -%{install_dir}/share/extension/pltcl* -%endif - -%if %plpython -%files plpython3 -f pg_plpython.lst -%defattr(-,root,root) -%{install_dir}/lib/plpython*.so -%{install_dir}/lib/hstore_plpython3.so -%{install_dir}/lib/ltree_plpython3.so -%{install_dir}/share/extension/plpython3u* -%endif - -%if %test -%files test -%defattr(-,%{username},%{groupname}) -%attr(-,%{username},%{groupname}) %{install_dir}/lib/test/* -%attr(-,%{username},%{groupname}) %dir %{install_dir}/lib/test -%endif - -################################################################################ - -%changelog -* Sun Oct 29 2023 Anton Novojilov - 10.23-1 -- Improved init script compatibility with systemd - -* Thu Feb 09 2023 Anton Novojilov - 10.23-0 -- https://www.postgresql.org/docs/10/release-10-23.html - -* Thu Aug 18 2022 Anton Novojilov - 10.22-0 -- https://www.postgresql.org/docs/10/release-10-22.html - -* Thu May 19 2022 Anton Novojilov - 10.21-0 -- https://www.postgresql.org/docs/10/release-10-21.html - -* Thu Apr 07 2022 Anton Novojilov - 10.20-0 -- https://www.postgresql.org/docs/10/release-10-20.html - -* Wed Nov 17 2021 Anton Novojilov - 10.19-0 -- https://www.postgresql.org/docs/10/release-10-19.html - -* Sat Sep 04 2021 Anton Novojilov - 10.18-0 -- https://www.postgresql.org/docs/10/release-10-18.html - -* Sat Sep 04 2021 Anton Novojilov - 10.17-0 -- https://www.postgresql.org/docs/10/release-10-17.html - -* Thu Apr 01 2021 Anton Novojilov - 10.16-1 -- Changed bash_profile installation routine - -* Mon Feb 15 2021 Anton Novojilov - 10.16-0 -- Updated to the latest stable release - -* Tue Dec 29 2020 Anton Novojilov - 10.15-0 -- Updated to the latest stable release - -* Thu Aug 13 2020 Anton Novojilov - 10.14-0 -- Updated to the latest stable release - -* Sat May 23 2020 Anton Novojilov - 10.13-0 -- Updated to the latest stable release -- Spec improvements - -* Sat Mar 07 2020 Anton Novojilov - 10.11-1 -- Fixed bug in init script - -* Mon Jan 20 2020 Anton Novojilov - 10.11-0 -- Updated to the latest stable release - -* Sun Aug 18 2019 Anton Novojilov - 10.10-0 -- Updated to the latest stable release - -* Sun Aug 18 2019 Anton Novojilov - 10.9-0 -- Updated to the latest stable release - -* Tue May 14 2019 Anton Novojilov - 10.8-0 -- Updated to the latest stable release - -* Tue Feb 26 2019 Anton Novojilov - 10.7-0 -- Updated to the latest stable release - -* Sat Nov 17 2018 Anton Novojilov - 10.6-0 -- Updated to the latest stable release - -* Fri Oct 26 2018 Anton Novojilov - 10.5-1 -- Fixed minor bug using pkgver macro in description's - -* Wed Sep 12 2018 Anton Novojilov - 10.5-0 -- Updated to the latest stable release - -* Tue Jun 19 2018 Anton Novojilov - 10.4-0 -- Updated to the latest stable release - -* Sat Mar 03 2018 Anton Novojilov - 10.3-0 -- Updated to the latest stable release - -* Sat Mar 03 2018 Anton Novojilov - 10.2-0 -- Updated to the latest stable release - -* Sat Jan 27 2018 Anton Novojilov - 10.1-1 -- Improved spec - -* Sun Nov 12 2017 Anton Novojilov - 10.1-0 -- Updated to the latest stable release - -* Thu Oct 12 2017 Anton Novojilov - 10.0-0 -- Initial build diff --git a/specs/postgresql-10/slony1.spec b/specs/postgresql-10/slony1.spec deleted file mode 100644 index 569757d0a..000000000 --- a/specs/postgresql-10/slony1.spec +++ /dev/null @@ -1,184 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%global __perl_requires %{SOURCE2} - -%define maj_ver 2.2 -%define pg_maj_ver 10 -%define pg_high_ver 10 -%define pg_low_fullver 10.23 -%define pg_dir %{_prefix}/pgsql-%{pg_high_ver} -%define realname slony1 -%define username postgres -%define groupname postgres - -################################################################################ - -Summary: Master to multiple slaves replication system for PostgreSQL -Name: %{realname}-%{pg_maj_ver} -Version: 2.2.11 -Release: 0%{?dist} -License: BSD -Group: Applications/Databases -URL: https://www.slony.info - -Source0: https://www.slony.info/downloads/%{maj_ver}/source/%{realname}-%{version}.tar.bz2 -Source2: filter-requires-perl-Pg.sh -Source3: %{realname}.init -Source4: %{realname}.sysconfig -Source5: %{realname}.service - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: make gcc byacc flex chrpath -BuildRequires: postgresql%{pg_maj_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_maj_ver}-server = %{pg_low_fullver} -BuildRequires: postgresql%{pg_maj_ver}-libs = %{pg_low_fullver} - -Requires: postgresql%{pg_maj_ver}-server perl-DBD-Pg kaosv >= 2.16 -Requires: systemd - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description -Slony-I is a "master to multiple slaves" replication system for PostgreSQL with -cascading and failover. - -The big picture for the development of Slony-I is to build a master-slave system -that includes all features and capabilities needed to replicate large databases -to a reasonably limited number of slave systems. - -Slony-I is a system for data centers and backup sites, where the normal mode of -operation is that all nodes are available. - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build - -CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS -CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS -CPPFLAGS="${CPPFLAGS} -I%{_includedir}/et -I%{_includedir}" ; export CPPFLAGS -CFLAGS="${CFLAGS} -I%{_includedir}/et -I%{_includedir}" ; export CFLAGS - -export LIBNAME=%{_lib} - -%configure --prefix=%{pg_dir} \ - --includedir %{pg_dir}/include \ - --with-pgconfigdir=%{pg_dir}/bin \ - --libdir=%{pg_dir}/lib \ - --with-perltools=%{pg_dir}/bin \ - --sysconfdir=%{_sysconfdir}/%{realname}-%{pg_maj_ver} \ - --datadir=%{pg_dir}/share \ - --with-pglibdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} -%{__make} %{?_smp_mflags} -C tools - -%install -rm -rf %{buildroot} - -%{make_install} - -install -dm 755 %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver} -install -pm 644 share/slon.conf-sample %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon.conf -install -pm 644 tools/altperl/slon_tools.conf-sample %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon_tools.conf - -# Fix the log path -sed "s:\([$]LOGDIR = '/var/log/slony1\):\1-%{pg_maj_ver}:" -i %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon_tools.conf - -install -dm 755 %{buildroot}%{_sysconfdir}/sysconfig -install -pm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{realname}-%{pg_maj_ver} - -chmod 644 COPYRIGHT UPGRADING SAMPLE RELEASE - -install -dm 755 %{buildroot}%{_initrddir} -install -pm 755 %{SOURCE3} %{buildroot}%{_initrddir}/%{realname}-%{pg_maj_ver} - -install -dm 755 %{buildroot}%{_unitdir} -install -pm 644 %{SOURCE5} %{buildroot}%{_unitdir}/%{realname}-%{pg_maj_ver}.service - -sed -i 's/{{PG_MAJOR_VERSION}}/%{pg_maj_ver}/g' %{buildroot}%{_unitdir}/%{realname}-%{pg_maj_ver}.service -sed -i 's/{{PG_MAJOR_VERSION}}/%{pg_maj_ver}/g' %{buildroot}%{_initddir}/%{realname}-%{pg_maj_ver} -sed -i 's/{{PG_HIGH_VERSION}}/%{pg_high_ver}/g' %{buildroot}%{_initddir}/%{realname}-%{pg_maj_ver} - -pushd tools - %{make_install} - - rm -f %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon_tools.conf-sample - rm -f %{buildroot}%{_datadir}/pgsql/*.sql - rm -f %{buildroot}%{_libdir}/%{realname}_funcs.so - - chrpath --delete %{buildroot}%{pg_dir}/bin/slonik - chrpath --delete %{buildroot}%{pg_dir}/bin/slon - chrpath --delete %{buildroot}%{pg_dir}/bin/slony_logshipper - chrpath --delete %{buildroot}%{pg_dir}/lib/slony1_funcs.%{version}.so -popd - -install -dm 755 %{buildroot}%{_localstatedir}/log/%{realname}-%{pg_maj_ver} - -%clean -rm -rf %{buildroot} - -%post -if [[ $1 -eq 1 ]] ; then - systemctl enable %{realname}-%{pg_maj_ver}.service &>/dev/null || : -fi - -%preun -if [[ $1 -eq 0 ]] ; then - systemctl --no-reload disable %{realname}-%{pg_maj_ver}.service &>/dev/null || : - systemctl stop %{realname}-%{pg_maj_ver}.service &>/dev/null || : -fi - -%postun -if [[ $1 -ge 1 ]] ; then - systemctl daemon-reload &>/dev/null || : -fi - -################################################################################ - -%files -%defattr(-,root,root,-) -%doc COPYRIGHT UPGRADING INSTALL SAMPLE RELEASE -%{pg_dir}/bin/slon* -%{pg_dir}/lib/slon* -%{pg_dir}/share/slon* -%dir %{_localstatedir}/log/%{realname}-%{pg_maj_ver} -%config(noreplace) %{_sysconfdir}/sysconfig/%{realname}-%{pg_maj_ver} -%config(noreplace) %{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon.conf -%config(noreplace) %{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon_tools.conf -%attr(755,root,root) %{_initrddir}/%{realname}-%{pg_maj_ver} -%attr(755,root,root) %{_unitdir}/%{realname}-%{pg_maj_ver}.service - -################################################################################ - -%changelog -* Thu Sep 21 2023 Anton Novojilov - 2.2.11-0 -- Add support for PG 15 -- Remove unused autoconf check -- Fix typo in admin guide - -* Thu Feb 18 2021 Anton Novojilov - 2.2.10-0 -- Remove unsupported warning with PG13 - -* Wed May 29 2019 Anton Novojilov - 2.2.6-2 -- Improved init script -- Improved systemd unit - -* Sat Jan 27 2018 Anton Novojilov - 2.2.6-1 -- Improved spec - -* Thu Oct 12 2017 Anton Novojilov - 2.2.6-0 -- Initial build diff --git a/specs/postgresql-11/SOURCES/Makefile.regress b/specs/postgresql-11/SOURCES/Makefile.regress deleted file mode 100644 index 43c7ba446..000000000 --- a/specs/postgresql-11/SOURCES/Makefile.regress +++ /dev/null @@ -1,67 +0,0 @@ -# -# Simplified makefile for running the PostgreSQL regression tests -# in an RPM installation -# - -# maximum simultaneous connections for parallel tests -MAXCONNOPT = -ifdef MAX_CONNECTIONS -MAXCONNOPT += --max-connections=$(MAX_CONNECTIONS) -endif - -# locale -NOLOCALE = -ifdef NO_LOCALE -NOLOCALE += --no-locale -endif - -srcdir := . - -REGRESS_OPTS += --dlpath=. - -pg_regress_locale_flags = $(if $(ENCODING),--encoding=$(ENCODING)) $(NOLOCALE) - -pg_regress_installcheck = ./pg_regress --inputdir=$(srcdir) --psqldir='/usr/bin' $(pg_regress_locale_flags) - -# Test input and expected files. These are created by pg_regress itself, so we -# don't have a rule to create them. We do need rules to clean them however. -ifile_list := $(subst .source,, $(notdir $(wildcard $(srcdir)/input/*.source))) -input_files := $(foreach file, $(ifile_list), sql/$(file).sql) -ofile_list := $(subst .source,, $(notdir $(wildcard $(srcdir)/output/*.source))) -output_files := $(foreach file, $(ofile_list), expected/$(file).out) - -abs_srcdir := $(shell pwd) -abs_builddir := $(shell pwd) - -check: installcheck-parallel - -installcheck: cleandirs - $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule $(EXTRA_TESTS) - -installcheck-parallel: cleandirs - $(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS) - -# The tests command the server to write into testtablespace and results. -# On a SELinux-enabled system this will fail unless we mark those directories -# as writable by the server. -cleandirs: - -rm -rf testtablespace results - mkdir testtablespace results - [ -x /usr/bin/chcon ] && /usr/bin/chcon -u system_u -r object_r -t postgresql_db_t testtablespace results - -# old interfaces follow... - -runcheck: check -runtest: installcheck -runtest-parallel: installcheck-parallel - - -## -## Clean up -## - -clean distclean maintainer-clean: - rm -f $(output_files) $(input_files) - rm -rf testtablespace - rm -rf results tmp_check log - rm -f regression.diffs regression.out regress.out run_check.out diff --git a/specs/postgresql-11/SOURCES/README.rpm-dist b/specs/postgresql-11/SOURCES/README.rpm-dist deleted file mode 100644 index e32b0777b..000000000 --- a/specs/postgresql-11/SOURCES/README.rpm-dist +++ /dev/null @@ -1,353 +0,0 @@ -README.rpm-dist ------------------------------------------------------------------------------ -Version 11, for the PostgreSQL 11 RPM set. -Devrim Gündüz ------------------------------------------------------------------------------ - -Contents: - 1.) Introduction and QuickStart - 2.) Upgrading an installation - 3.) PostgreSQL RPM packages and rationale - 4.) Starting multiple postmasters - 5.) Regression Testing - 6.) Starting postmaster automatically on startup - 7.) Grand Unified Configuration(GUC) File - 8.) Logging set up - 9.) Rebuilding from the source RPM -10.) Contrib files -11.) Further Information Resource - -INTRODUCTION ------------------------------------------------------------------------------ -This document exists to explain the layout of the RPMs for PostgreSQL, to -describe various RPM specifics, and to document special features found -in the RPMset. - -This document is written to be applicable to version 11 of PostgreSQL, -which is the current version of the RPMs as of this writing. More to the -point, versions prior to 11 are not documented here. - -Official PostgreSQL Global Development Group RPMs carry a 'PGDG after the -release number. Other RPMsets as distributed with Linux distributions may -have a different release number and initials. - -If you want to stay up-to-date on the PostgreSQL core itself, you may -want to use PGDG set, instead of the binaries supplied by distribution. - -These RPMs do not support any sort of major version upgrading process -other than that documented in the regular documentation. That is, you -must dump, upgrade, initdb, and restore your data if you are -performing a major version update. This is not needed for minor version -updates. - -QUICKSTART (note that this requires postgresql11-server installed) ------------------------------------------------------------------------------ -For a fresh installation, you will need to initialize the cluster first. Run: - - /usr/pgsql-11/bin/postgresql11-setup initdb - -as root, and it will prepare a new database cluster for you. Then you will -need to start PostgreSQL. Again as root, run: - - systemctl start postgresql-11.service - -You will probably also want to do - - systemctl enable postgresql-11.service - -so that the postmaster is automatically started during future reboots. - -These commands will start a postmaster that will listen on localhost and Unix -socket 5432 only. Edit /var/lib/pgsql/11/data/postgresql.conf and pg_hba.conf -if you want to allow remote access -- see the section on Grand Unified -Configuration. - -The file /var/lib/pgsql/11/.bash_profile is packaged to help with the -setting of environment variables. Users should not edit this file, because -it may be overwritten during every new installation. However, you can create -~/.pgsql_profile file, and add your customizations there. - -The user 'postgres' is created during installation of the server subpackage. -This user by default is UID and GID 26. The user has the default shell set to -bash, and the home directory set to /var/lib/pgsql. This user also has no -default password. If you want to be able to su to it from a non-root account -or login as 'postgres' you will need to set a password using passwd. - -In the default installation, only postgres user is allowed to access to -the database server, because initdb in the RPMs pick up "peer" auth -method in the RPMs. - -All the binaries are installed under /usr/pgsql-11/bin. However, the -tools that are compatible with the previous releases are symlinked under -/usr/bin directory. Please note that RPMs are using alternatives method -in here, so whenever a newer major version is installed, symlinks will -point to the new version. Here is the current list of the binaries that -are under $PATH: - -- clusterdb -- createdb -- createlang -- createuser -- dropdb -- droplang -- dropuser -- pg_dump -- pg_dumpall -- pg_restore -- psql -- reindexdb - -You may want to add /usr/pgsql-11/bin to your $PATH variable in -/etc/profile, if you want to use them easily. However, please note that -this may lead to some unintentional side effects, so be careful. - - -UPGRADING AN INSTALLATION ------------------------------------------------------------------------------ -For a minor-version upgrade (such as 11.1 to 11.2), just install the -new RPMs; there's usually nothing more to it than that. Upgrading -across a major release of PostgreSQL (for example, from 9.2.x to 11.x) -requires more effort. - -If you are upgrading across more than one major release of PostgreSQL -(for example, from 9.1.x to 11.x), you will need to follow the "traditional" -dump and reload process to bring your data into the new version. That is: -*before* upgrading, run pg_dumpall to extract all your data into a SQL file. -Shut down the old postmaster, upgrade to the new version RPMs, initdb, -and run the dump file through psql to restore your data. - -In 9.1+, the RPMs also support in-place upgrade from the immediately -previous major release. Currently, you can upgrade in-place -from 9.2.x to 11.x. Just run: -$ /usr/pgsql-11/bin/postgresql11-setup upgrade - -Please note that 9.2 and 11 contrib RPMs needs to be installed for this -feature to work. - -POSTGRESQL RPM PACKAGES AND RATIONALE. ------------------------------------------------------------------------------ -PostgreSQL is split up into multiple packages so that users can 'pick and -choose' what pieces are needed, and what dependencies are required. - -The RPMset is packaged in the following subpackages: - -postgresql11: Key clients and libraries, and documentation -postgresql11-server: Server executables and data files -postgresql11-devel: Development libraries and include files -postgresql11-test: The regression tests and associated files -postgresql11-libs: Client shared libraries -postgresql11-docs: Extra documentation, such as the tutorial files -postgresql11-contrib: The contrib source tree, as well as selected binaries -postgresql11-plperl: PL/Perl procedural language -postgresql11-plpython: PL/Python procedural language -postgresql11-pltcl: PL/Tcl procedural language - -postgresql11-jdbc, postgresql11-python, postgresql11-tcl and postgresql11-odbc have -been splitted into seperate (s)rpms. - -You have to install postgresql and postgresql11-libs to do anything. -postgresql11-server is needed unless you only plan to use the clients to work -with a remote PostgreSQL server. The others are optional. - -postgresql11-python package includes PyGreSQL, and Pgtcl is distributed -via postgresql11-tcl package. - -RPM FILE LOCATIONS. ------------------------------------------------------------------------------ -To be in compliance with the Linux FHS, the PostgreSQL RPMs install files in -a manner not consistent with most of the PostgreSQL documentation. According -to the standard PostgreSQL documentation, PostgreSQL is installed under the -directory /usr/local/pgsql, with executables, source, and data existing in -various subdirectories. - -Different distributions have different ideas of some of these file locations. -In particular, the documentation directory can be /usr/doc, /usr/doc/packages, -/usr/share/doc, /usr/share/doc/packages, or some other similar path. - -However, the Red Hat / Scientific Linux ( CentOS / Fedora RPM's install -the files like this: - -Executables: /usr/bin and /usr/pgsql-11/bin -Libraries: /usr/pgsql-11/lib -Documentation: /usr/pgsql-11/doc -Contrib documentation: /usr/pgsql-11/doc -Source: not installed -Data: /var/lib/pgsql/11/data -Backup area: /var/lib/pgsql/11/backups -Templates: /usr/pgsql-11/share -Procedural Languages: /usr/pgsql-11/lib -Development Headers: /usr/pgsql-11/include -Other shared data: /usr/pgsql-11/share -Regression tests: /usr/pgsql-11/lib/test - -While it may seem gratuitous to place these files in different locations, the -FHS requires it -- distributions should not ever touch /usr/local. It may -also seem like more work to keep track of where everything is -- but, that's -the beauty of RPM -- you don't have to keep track of the files, RPM does it -for you. - -These RPMs are designed to be LSB-compliant -- if you find this not to be the -case, please let us know by way of the pgsql-pkg-yum@postgresql.org -mailing list. - -------------------------------------------------------------------------------- -MULTIPLE POSTMASTERS (For the same PostgreSQL version) -------------------------------------------------------------------------------- -The postgresql-server RPM contains a 'unit file' that is used to start the -postmaster. The current version of this script has logic to be able to start -multiple postmasters, with different data areas, listening on different ports, -etc. To use this functionality requires root access. - -Here are the steps: - -1.) First, you will need to create a new unit file for the new cluster. - You can give any name in here. To distinguish the cluster, you can - add the service name or port value to the unit file name: - - cp /lib/systemd/system/postgresql-11.service /etc/systemd/system/postgresql-11-secondary.service - -2.) Edit this file, and change PGDATA. Please note that you can give - any directory name in here that postgres can access. You don't - have to create this directory now, it will be created in the next step: - - Environment=PGDATA=/var/lib/pgsql/11/data-secondary - -3.) Initialize the cluster: - - /usr/pgsql-11/bin/postgresql11-setup initdb postgresql-11-secondary - -4.) Edit postgresql.conf to change the port, address, tcpip settings, etc. - -5.) Start the postmaster with 'systemctl start postgresql-11-secondary.service' - -When doing a major-version upgrade of a secondary postmaster, mention the -service name in the postgresql11-setup command, for example 'postgresql11-setup -upgrade secondary'. This will let postgresql11-setup find the correct data -directory from the service file. - -REGRESSION TESTING -------------------------------------------------------------------------------- -If you install the postgresql-test RPM then you can run the PostgreSQL -regression tests. These tests stress your database installation and produce -results that give you assurances that the installation is complete, and that -your database machine is up to the task. - -To run the regression tests under the RPM installation, make sure that the -postmaster has been started (if not, su to root and do "systemctl start -postgresql-11.service"), cd to /usr/pgsql-11/lib/test/regress, su to -postgres, and execute "make check". This command will start the -regression tests and will both show the results to the screen and store -the results in the file regress.out. - -If any tests fail, see the file regression.diffs in that directory for details, -and read the "Regression Tests" section of the PostgreSQL documentation to -find out whether the differences are actually significant. If you need help -interpreting the results, contact the pgsql-general list at -postgresql.org. - -After testing, say "make clean" to remove the files generated by the test -script. - -STARTING POSTMASTER AUTOMATICALLY AT SYSTEM STARTUP -------------------------------------------------------------------------------- -Fedora / Red Hat / CentOS use the systemd package to manage server startup. -A systemd unit file for PostgreSQL is provided in the server package, as -/lib/systemd/system/postgresql-11.service. To start the postmaster manually, -as root run - systemctl start postgresql-11.service -To shut the postmaster down, - systemctl stop postgresql-11.service -These two commands only change the postmaster's current status. If you -want the postmaster to be started automatically during future system startups, -run - systemctl enable postgresql-11.service -To undo that again, - systemctl disable postgresql-11.service -See "man systemctl" for other possible subcommands. - -GRAND UNIFIED CONFIGURATION (GUC) FILE -------------------------------------------------------------------------------- -The PostgreSQL server has many tunable parameters -- the file -/var/lib/pgsql/11/data/postgresql.conf is the master configuration file for the -whole system. - -The RPM ships with a mostly-default file -- you will need to tune the -parameters for your installation. In particular, you might want to allow -nonlocal TCP/IP socket connections -- in order to allow these, you will need -to edit the postgresql.conf file. The line in question contains the string -'listen_addresses' -- you need to both uncomment the line and set the value -to '*' to get the postmaster to accept nonlocal connections. You'll also need -to adjust pg_hba.conf appropriately. - -LOGGING SET UP -------------------------------------------------------------------------------- -By default, the postmaster's stderr log is directed into files placed in a -log subdirectory of the data directory (ie, /var/lib/pgsql/11/data/log). -The out-of-the-box configuration rotates among seven files, one for each -day of the week. You can adjust this by changing postgresql.conf settings. - -REBUILDING FROM SOURCE RPM -------------------------------------------------------------------------------- -If your distribution is not supported by the binary RPMs from PostgreSQL.org, -you will need to rebuild from the source RPM. Download the .src.rpm for this -release. You will need to be root to rebuild, unless you have set up -a non-root build environment (which is the recommended method anyway). - -Install the source RPM with rpm -i, then cd to the rpm building area -(which is /usr/src/redhat by default). You will have to have a full -development environment to rebuild the full RPM set. - -This release of the RPMset includes the ability to conditionally build -sets of packages. The parameters, their defaults, and the meanings are: - -beta 0 #build with cassert and do not strip the binaries -python 1 #build the postgresql-python package. -tcl 1 #build the postgresql-tcl package. -test 1 #build the postgresql-test package. -plpython 1 #build the PL/Python procedural language package. -pltcl 1 #build the PL/Tcl procedural language package. -plperl 1 #build the PL/Perl procedural language package. -ssl 1 #use OpenSSL support. -kerberos 1 #use Kerberos 5 support. -nls 1 #build with national language support. -ldap 1 #build with LDAP support. -pam 1 #build with PAM support. -runselftest 1 #do "make check" during the build. -sdt 1 #build with SystemTap support. -xml 1 #build with XML support -pgfts 1 #build with --enable-thread-safety -uuid 1 #build contrib/uuid-ossp - -To use these defines, invoke a rebuild like this: -rpmbuild --rebuild --define 'python 0' --define 'tcl 0' \ - --define 'test 0' --define 'runselftest 0' --define 'kerberos 0' \ - postgresql11-11.3-1PGDG.rhel7.src.rpm -This line would disable the python, tcl, and test subpackages, disable -the regression test run during build, and disable kerberos support. - -You might need to disable runselftest if there is an installed version of -PostgreSQL that is a different major version from what you are trying to -build. The self test tends to pick up the installed libpq.so shared library -in place of the one being built :-(, so if that isn't compatible the test will -fail. Also, you can't use runselftest when doing the build as root. - -More of these conditionals will be added in the future. - -CONTRIB FILES -------------------------------------------------------------------------------- -The contents of the contrib tree are packaged into the -contrib subpackage -and are processed with make and make install. Most of the modules are in -/usr/pgsql-11/lib for loadable modules, and binaries are in -/usr/pgsql-11/bin. In the future these files may be split out, -depending upon function and dependencies. - - -MORE INFORMATION -------------------------------------------------------------------------------- -You can get more information at http://www.postgresql.org and -https://yum.postgresql.org - -Please help make this packaging better -- let us know if you find problems, or -better ways of doing things. You can reach us by e-mail at -pgsql-pkg-yum@postgresql.org -------------------------------------------------------------------------------- diff --git a/specs/postgresql-11/SOURCES/bash_profile b/specs/postgresql-11/SOURCES/bash_profile deleted file mode 100644 index d05024928..000000000 --- a/specs/postgresql-11/SOURCES/bash_profile +++ /dev/null @@ -1,12 +0,0 @@ -if [[ -f /etc/profile ]] ; then - source /etc/profile -fi - -export PGDATA={{PGDATA}} - -# If you want to customize your settings use the file below. -# This file is not overridden by PostgreSQL packages. - -if [[ -f /var/lib/pgsql/.pgsql_profile ]] ; then - source /var/lib/pgsql/.pgsql_profile -fi diff --git a/specs/postgresql-11/SOURCES/ecpg_config.h b/specs/postgresql-11/SOURCES/ecpg_config.h deleted file mode 100644 index 6fecfcb51..000000000 --- a/specs/postgresql-11/SOURCES/ecpg_config.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Kluge to support multilib installation of both 32- and 64-bit RPMS: - * we need to arrange that header files that appear in both RPMs are - * identical. Hence, this file is architecture-independent and calls - * in an arch-dependent file that will appear in just one RPM. - * - * To avoid breaking arches not explicitly supported by Red Hat, we - * use this indirection file *only* on known multilib arches. - * - * Note: this may well fail if user tries to use gcc's -I- option. - * But that option is deprecated anyway. - */ -#if defined(__x86_64__) -#include "ecpg_config_x86_64.h" -#elif defined(__i386__) -#include "ecpg_config_i386.h" -#elif defined(__ppc64__) || defined(__powerpc64__) -#include "ecpg_config_ppc64.h" -#elif defined(__ppc__) || defined(__powerpc__) -#include "ecpg_config_ppc.h" -#elif defined(__s390x__) -#include "ecpg_config_s390x.h" -#elif defined(__s390__) -#include "ecpg_config_s390.h" -#elif defined(__sparc__) && defined(__arch64__) -#include "ecpg_config_sparc64.h" -#elif defined(__sparc__) -#include "ecpg_config_sparc.h" -#endif diff --git a/specs/postgresql-11/SOURCES/filter-requires-perl-Pg.sh b/specs/postgresql-11/SOURCES/filter-requires-perl-Pg.sh deleted file mode 100755 index f37557f2d..000000000 --- a/specs/postgresql-11/SOURCES/filter-requires-perl-Pg.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/usr/lib/rpm/perl.req $* | grep -v 'perl(Pg' diff --git a/specs/postgresql-11/SOURCES/pg_comparator-Makefile.patch b/specs/postgresql-11/SOURCES/pg_comparator-Makefile.patch deleted file mode 100644 index b73120521..000000000 --- a/specs/postgresql-11/SOURCES/pg_comparator-Makefile.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN pg_comparator-2.3.1-orig/Makefile pg_comparator-2.3.1/Makefile ---- pg_comparator-2.3.1-orig/Makefile 2017-09-18 00:42:12.653308101 +0200 -+++ pg_comparator-2.3.1/Makefile 2017-09-18 00:42:46.000000000 +0200 -@@ -16,7 +16,7 @@ - EXTRA_CLEAN = $(name).1 $(name).html pod2htm?.tmp $(EXTENSION).control - - # get postgresql extension infrastructure --PG_CONFIG = pg_config -+PG_CONFIG ?= pg_config - PGXS := $(shell $(PG_CONFIG) --pgxs) - include $(PGXS) - diff --git a/specs/postgresql-11/SOURCES/pg_config.h b/specs/postgresql-11/SOURCES/pg_config.h deleted file mode 100644 index 97ef2baa0..000000000 --- a/specs/postgresql-11/SOURCES/pg_config.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Kluge to support multilib installation of both 32- and 64-bit RPMS: - * we need to arrange that header files that appear in both RPMs are - * identical. Hence, this file is architecture-independent and calls - * in an arch-dependent file that will appear in just one RPM. - * - * To avoid breaking arches not explicitly supported by Red Hat, we - * use this indirection file *only* on known multilib arches. - * - * Note: this may well fail if user tries to use gcc's -I- option. - * But that option is deprecated anyway. - */ -#if defined(__x86_64__) -#include "pg_config_x86_64.h" -#elif defined(__i386__) -#include "pg_config_i386.h" -#elif defined(__ppc64__) || defined(__powerpc64__) -#include "pg_config_ppc64.h" -#elif defined(__ppc__) || defined(__powerpc__) -#include "pg_config_ppc.h" -#elif defined(__s390x__) -#include "pg_config_s390x.h" -#elif defined(__s390__) -#include "pg_config_s390.h" -#elif defined(__sparc__) && defined(__arch64__) -#include "pg_config_sparc64.h" -#elif defined(__sparc__) -#include "pg_config_sparc.h" -#endif diff --git a/specs/postgresql-11/SOURCES/postgis24-gdalfpic.patch b/specs/postgresql-11/SOURCES/postgis24-gdalfpic.patch deleted file mode 100644 index 378c10ad0..000000000 --- a/specs/postgresql-11/SOURCES/postgis24-gdalfpic.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.old 2017-05-28 09:41:00.123550140 +0300 -+++ configure 2017-05-28 09:41:15.925586108 +0300 -@@ -17171,7 +17171,7 @@ - LIBGDAL_CFLAGS=`$GDAL_CONFIG --cflags` - - CPPFLAGS_SAVE="$CPPFLAGS" -- CPPFLAGS="$LIBGDAL_CFLAGS" -+ CPPFLAGS="$LIBGDAL_CFLAGS -fPIC" - CFLAGS_SAVE="$CFLAGS" - CFLAGS="" - LIBS_SAVE="$LIBS" diff --git a/specs/postgresql-11/SOURCES/postgis24-llvm.patch b/specs/postgresql-11/SOURCES/postgis24-llvm.patch deleted file mode 100644 index f0ab1dc9f..000000000 --- a/specs/postgresql-11/SOURCES/postgis24-llvm.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN postgis-2.4.5-orig/raster/rt_pg/Makefile.in postgis-2.4.5/raster/rt_pg/Makefile.in ---- postgis-2.4.5-orig/raster/rt_pg/Makefile.in 2018-09-12 19:46:37.000000000 +0300 -+++ postgis-2.4.5/raster/rt_pg/Makefile.in 2018-11-18 02:30:14.000000000 +0300 -@@ -66,7 +66,7 @@ - LIBPROJ_CFLAGS=@PROJ_CPPFLAGS@ - - override CFLAGS := $(LIBLWGEOM_CFLAGS) @CFLAGS@ --PG_CPPFLAGS+= @CPPFLAGS@ $(LIBGDAL_CFLAGS) $(LIBPGCOMMON_CFLAGS) $(LIBPROJ_CFLAGS) -I../rt_core -+ PG_CPPFLAGS+= @CPPFLAGS@ $(LIBGDAL_CFLAGS) $(LIBLWGEOM_CFLAGS) $(LIBPGCOMMON_CFLAGS) $(LIBPROJ_CFLAGS) -I../rt_core - SHLIB_LINK_F = ../rt_core/librtcore.a $(LIBLWGEOM_LDFLAGS) $(LIBPGCOMMON_LDFLAGS) $(LIBGDAL_LDFLAGS) @SHLIB_LINK@ - - # Extra files to remove during 'make clean' diff --git a/specs/postgresql-11/SOURCES/postgis25-gdalfpic.patch b/specs/postgresql-11/SOURCES/postgis25-gdalfpic.patch deleted file mode 100644 index 15a0687d9..000000000 --- a/specs/postgresql-11/SOURCES/postgis25-gdalfpic.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.old 2017-05-28 09:41:00.123550140 +0300 -+++ configure 2017-05-28 09:41:15.925586108 +0300 -@@ -17171,7 +17171,7 @@ - LIBGDAL_CFLAGS=`$GDAL_CONFIG --cflags` - - CPPFLAGS_SAVE="$CPPFLAGS" -- CPPFLAGS="$LIBGDAL_CFLAGS" -+ CPPFLAGS="$LIBGDAL_CFLAGS -fPIC" - CFLAGS_SAVE="$CFLAGS" - CFLAGS=`"$PG_CONFIG" --cflags` - CC_SAVE="$CC" diff --git a/specs/postgresql-11/SOURCES/postgresql-11-libs.conf b/specs/postgresql-11/SOURCES/postgresql-11-libs.conf deleted file mode 100644 index ddbe2d617..000000000 --- a/specs/postgresql-11/SOURCES/postgresql-11-libs.conf +++ /dev/null @@ -1 +0,0 @@ -/usr/pgsql-11/lib/ diff --git a/specs/postgresql-11/SOURCES/postgresql-logging.patch b/specs/postgresql-11/SOURCES/postgresql-logging.patch deleted file mode 100644 index f01d3af97..000000000 --- a/specs/postgresql-11/SOURCES/postgresql-logging.patch +++ /dev/null @@ -1,54 +0,0 @@ ---- src/backend/utils/misc/postgresql.conf.sample.old 2018-06-27 00:25:50.289570862 +0100 -+++ src/backend/utils/misc/postgresql.conf.sample 2018-06-27 00:26:02.151635283 +0100 -@@ -359,25 +359,25 @@ - - # - Where to Log - - --#log_destination = 'stderr' # Valid values are combinations of -+log_destination = 'stderr' # Valid values are combinations of - # stderr, csvlog, syslog, and eventlog, - # depending on platform. csvlog - # requires logging_collector to be on. - - # This is used when logging to stderr: --#logging_collector = off # Enable capturing of stderr and csvlog -+logging_collector = on # Enable capturing of stderr and csvlog - # into log files. Required to be on for - # csvlogs. - # (change requires restart) - - # These are only used if logging_collector is on: --#log_directory = 'log' # directory where log files are written, -+log_directory = 'log' # directory where log files are written, - # can be absolute or relative to PGDATA --#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, -+log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, - # can include strftime() escapes - #log_file_mode = 0600 # creation mode for log files, - # begin with 0 to use octal notation --#log_truncate_on_rotation = off # If on, an existing log file with the -+log_truncate_on_rotation = on # If on, an existing log file with the - # same name as the new log file will be - # truncated rather than appended to. - # But such truncation only occurs on -@@ -385,9 +385,9 @@ - # or size-driven rotation. Default is - # off, meaning append to existing files - # in all cases. --#log_rotation_age = 1d # Automatic rotation of logfiles will -+log_rotation_age = 1d # Automatic rotation of logfiles will - # happen after that time. 0 disables. --#log_rotation_size = 10MB # Automatic rotation of logfiles will -+log_rotation_size = 0 # Automatic rotation of logfiles will - # happen after that much log output. - # 0 disables. - -@@ -460,7 +460,7 @@ - #log_duration = off - #log_error_verbosity = default # terse, default, or verbose messages - #log_hostname = off --#log_line_prefix = '%m [%p] ' # special values: -+log_line_prefix = '%m [%p] ' # special values: - # %a = application name - # %u = user name - # %d = database name diff --git a/specs/postgresql-11/SOURCES/postgresql-perl-rpath.patch b/specs/postgresql-11/SOURCES/postgresql-perl-rpath.patch deleted file mode 100644 index 5ca28f5cf..000000000 --- a/specs/postgresql-11/SOURCES/postgresql-perl-rpath.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- src/pl/plperl/GNUmakefile.old 2018-06-27 00:27:01.614958217 +0100 -+++ src/pl/plperl/GNUmakefile 2018-06-27 00:27:15.660034493 +0100 -@@ -54,6 +54,9 @@ - - SHLIB_LINK = $(perl_embed_ldflags) - -+# Force rpath to be used even though we disable it everywhere else -+SHLIB_LINK += $(rpath) -+ - REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-extension=plperl --load-extension=plperlu - REGRESS = plperl plperl_lc plperl_trigger plperl_shared plperl_elog plperl_util plperl_init plperlu plperl_array plperl_call plperl_transaction - # if Perl can support two interpreters in one backend, diff --git a/specs/postgresql-11/SOURCES/postgresql-tmpfiles.d.conf b/specs/postgresql-11/SOURCES/postgresql-tmpfiles.d.conf deleted file mode 100644 index 6c48e34ed..000000000 --- a/specs/postgresql-11/SOURCES/postgresql-tmpfiles.d.conf +++ /dev/null @@ -1 +0,0 @@ -d /run/postgresql 0755 postgres postgres - diff --git a/specs/postgresql-11/SOURCES/postgresql-var-run-socket.patch b/specs/postgresql-11/SOURCES/postgresql-var-run-socket.patch deleted file mode 100644 index d0e41f64a..000000000 --- a/specs/postgresql-11/SOURCES/postgresql-var-run-socket.patch +++ /dev/null @@ -1,47 +0,0 @@ -Change the built-in default socket directory to be /var/run/postgresql. -For backwards compatibility with (probably non-libpq-based) clients that -might still expect to find the socket in /tmp, also create a socket in -/tmp. This is to resolve communication problems with clients operating -under systemd's PrivateTmp environment, which won't be using the same -global /tmp directory as the server; see bug #825448. - -Note that we apply the socket directory change at the level of the -hard-wired defaults in the C code, not by just twiddling the setting in -postgresql.conf.sample; this is so that the change will take effect on -server package update, without requiring any existing postgresql.conf -to be updated. (Of course, a user who dislikes this behavior can still -override it via postgresql.conf.) - ---- src/backend/utils/misc/guc.c.old 2018-03-11 21:29:26.190708175 +0000 -+++ src/backend/utils/misc/guc.c 2018-03-11 21:29:55.083851034 +0000 -@@ -3465,7 +3465,7 @@ - }, - &Unix_socket_directories, - #ifdef HAVE_UNIX_SOCKETS -- DEFAULT_PGSOCKET_DIR, -+ DEFAULT_PGSOCKET_DIR ", /tmp", - #else - "", - #endif ---- src/bin/initdb/initdb.c.old 2018-03-11 21:30:10.752928508 +0000 -+++ src/bin/initdb/initdb.c 2018-03-11 21:30:30.605026665 +0000 -@@ -1051,7 +1051,7 @@ - - #ifdef HAVE_UNIX_SOCKETS - snprintf(repltok, sizeof(repltok), "#unix_socket_directories = '%s'", -- DEFAULT_PGSOCKET_DIR); -+ DEFAULT_PGSOCKET_DIR ", /tmp"); - #else - snprintf(repltok, sizeof(repltok), "#unix_socket_directories = ''"); - #endif ---- src/include/pg_config_manual.h.old 2018-03-11 21:30:50.401124544 +0000 -+++ src/include/pg_config_manual.h 2018-03-11 21:31:08.775215393 +0000 -@@ -177,7 +177,7 @@ - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - */ --#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" - - /* - * This is the default event source for Windows event log. diff --git a/specs/postgresql-11/SOURCES/postgresql.init b/specs/postgresql-11/SOURCES/postgresql.init deleted file mode 100644 index dea4cb9de..000000000 --- a/specs/postgresql-11/SOURCES/postgresql.init +++ /dev/null @@ -1,249 +0,0 @@ -#!/bin/bash - -# postgresql This is the init script for starting up the PostgreSQL {{MAJOR_VERSION}} -# server. -# -# chkconfig: - 64 36 -# description: PostgreSQL database server. -# processname: postmaster - -############################################################################### - -source /etc/init.d/kaosv - -############################################################################### - -kv.require "2.16" - -############################################################################### - -INIT_DIR="/etc/init.d" - -############################################################################### - -VERSION="{{VERSION}}" -MAJOR_VERSION="{{MAJOR_VERSION}}" -PKG_VERSION="{{PKG_VERSION}}" -PREV_VERSION="{{PREV_VERSION}}" -USER_NAME="{{USER_NAME}}" -GROUP_NAME="{{GROUP_NAME}}" - -############################################################################### - -short_name="pgsql" - -kv[prog_name]="postgresql-${PKG_VERSION}" - -kv.readSysconfig "postgresql-${MAJOR_VERSION}" - -kv[lock_file]="${kv[lock_dir]}/postgresql${PKG_VERSION}" -kv[pid_file]="${kv[pid_dir]}/postgresql${PKG_VERSION}.pid" - -pg_engine="${PG_ENGINE:-/usr/${short_name}-${MAJOR_VERSION}/bin}" -pg_postmaster="${PG_POSTMASTER:-${pg_engine}/postmaster}" -pg_data="${PG_DATA:-/var/lib/${short_name}/${MAJOR_VERSION}/data}" -pg_log="${PG_LOG:-/var/lib/${short_name}/${MAJOR_VERSION}/pgstartup.log}" -pg_socket_dir="${PG_SOCKET_DIR:-/var/run/postgresql}" -timeout="${TIMEOUT:-300}" -disable_auto_numa="${DISABLE_AUTO_NUMA}" - -pg_ctl="$pg_engine/pg_ctl" -pg_initdb="$pg_engine/initdb" - -export pg_data - -kv[user]="$USER_NAME" -kv[search_pattern]="$pg_engine" - -kv[oom_adj]="$OOM_DISABLE" - -############################################################################### - -kv.addCommand "initdb" "Init new database" "initdb" -kv.addCommand "reload" "Reload configuration files" "reload" - -kv.addHandler "start" "startServiceHandler" -kv.addHandler "start" "preStartServiceHandler" "pre" -kv.addHandler "stop" "stopServiceHandler" - -kv.addCommandArgs "stop" "force" -kv.addCommandArgs "initdb" "locale" - -kv.disableOutputRedirect "start" "pre" - -############################################################################### - -preStartServiceHandler() { - [[ ! -f "$pg_postmaster" ]] && return $ACTION_ERROR - [[ ! -x "$pg_postmaster" ]] && return $ACTION_ERROR - - createLog || return $ACTION_ERROR - checkData || return $ACTION_ERROR - makeSocketDir || return $ACTION_ERROR - - return $ACTION_OK -} - -startServiceHandler() { - kv[log]="$pg_log" - - export PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj - export PG_OOM_ADJUST_VALUE=0 - - if [[ -n "$disable_auto_numa" || $(getNumaNodesCount) == "1" ]] ; then - kv.run "$pg_ctl" start -D "$pg_data" -s -w -t "$timeout" - else - kv.run numactl --interleave=all "$pg_ctl" start -D "$pg_data" -s -w -t "$timeout" - fi - - [[ $? -ne 0 ]] && return $ACTION_ERROR - - if kv.getStartStatus "$pg_data/postmaster.pid" true ; then - local pid=$(head -1 "$pg_data/postmaster.pid" 2>/dev/null) - - kv.createPid "$pid" - - return $ACTION_OK - fi - - return $ACTION_ERROR -} - -stopServiceHandler() { - local pid=$(kv.getPid) - - kv.run "$pg_ctl" stop -D "$pg_data" -s -m fast - - if kv.getStopStatus ; then - return $ACTION_OK - else - if [[ "$1" == "true" || "$1" == "force" ]] ; then - kv.killProcess - return $ACTION_FORCED - else - return $ACTION_ERROR - fi - fi -} - -initdb() { - if [[ -f "$pg_data/PG_VERSION" ]] ; then - kv.error "Error! Data directory is not empty." $ACTION_ERROR - fi - - kv.showProcessMessage "Initializing database" - - initNewDB $@ - - local status=$? - - kv.showStatusMessage "$status" - - return $status -} - -reload() { - kv.showProcessMessage "Reloading configuration" - - kv.run "$pg_ctl" reload -D "$pg_data" -s - - local status=$? - - kv.showStatusMessage "$status" - - return $status -} - -############################################################################### - -initNewDB() { - kv[log]="$pg_log" - - local loc="$1" - - [[ -z "$loc" ]] && loc=$(getLocale) - - if [[ ! -e "$pg_data" && ! -h "$pg_data" ]] ; then - mkdir -p "$pg_data" || return $ACTION_ERROR - kv.chown "$USER_NAME:$GROUP_NAME" "$pg_data" - kv.chmod go-rwx "$pg_data" - fi - - kv.restoreSEContext "$pg_data" - - createLog || return $ACTION_ERROR - - kv.run "$pg_initdb" --pgdata="$pg_data" --auth="ident" --locale="$loc" - - mkdir "$pg_data/pg_log" - kv.chown "$USER_NAME:$GROUP_NAME" "$pg_data/pg_log" - kv.chmod go-rwx "$pg_data/pg_log" - - if [[ -f "$pg_data/PG_VERSION" ]] ; then - return $ACTION_OK - fi - - return $ACTION_ERROR -} - -getLocale() { - local lang=$(locale | head -1 | cut -f2 -d= | sed 's/"//g') - - if [[ -n "$lang" ]] ; then - echo "$lang" - else - echo "en_US.UTF-8" - fi -} - -getNumaNodesCount() { - if [[ ! -x /usr/bin/numactl ]] ; then - echo 1 - fi - - numactl --hardware | head -1 | cut -f2 -d' ' -} - -############################################################################### - -checkData() { - if [[ -f "$pg_data/PG_VERSION" && -d "$pg_data/base" ]] ; then - if [[ $(cat "$pg_data/PG_VERSION") != "$MAJOR_VERSION" ]] ; then - local docdir="(Your System's documentation directory)" - - [[ -d "/usr/doc/postgresql-$VERSION" ]] && docdir=/usr/doc - [[ -d "/usr/share/doc/postgresql-$VERSION" ]] && docdir=/usr/share/doc - [[ -d "/usr/doc/packages/postgresql-$VERSION" ]] && docdir=/usr/doc/packages - [[ -d "/usr/share/doc/packages/postgresql-$VERSION" ]] && docdir=/usr/share/doc/packages - - kv.show "An old version of the database format was found." - kv.show "You need to upgrade the data format before using PostgreSQL." - kv.show "See $docdir/postgresql-$VERSION/README.rpm-dist for more information." - - return $ACTION_ERROR - fi - else - kv.show "Directory <$pg_data> is missing. Use ${CL_BOLD}service ${kv[script]} initdb${CL_NORM} to initialize the cluster first." - return $ACTION_ERROR - fi -} - -createLog() { - if [[ ! -e "$pg_log" && ! -h "$pg_log" ]] ; then - touch "$pg_log" || return 1 - kv.chown "$USER_NAME:$GROUP_NAME" "$pg_log" - kv.chmod go-rwx "$pg_log" - kv.restoreSEContext "$pg_log" - fi -} - -makeSocketDir() { - if [[ ! -e "$pg_socket_dir" ]] ; then - mkdir "$pg_socket_dir" || return $ACTION_ERROR - kv.chown "$USER_NAME:$GROUP_NAME" "$pg_socket_dir" || return $ACTION_ERROR - fi -} - -############################################################################### - -kv.go $@ diff --git a/specs/postgresql-11/SOURCES/postgresql.pam b/specs/postgresql-11/SOURCES/postgresql.pam deleted file mode 100644 index 1d785946d..000000000 --- a/specs/postgresql-11/SOURCES/postgresql.pam +++ /dev/null @@ -1,3 +0,0 @@ -#%PAM-1.0 -auth include password-auth -account include password-auth diff --git a/specs/postgresql-11/SOURCES/postgresql.service b/specs/postgresql-11/SOURCES/postgresql.service deleted file mode 100644 index ed3c426aa..000000000 --- a/specs/postgresql-11/SOURCES/postgresql.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=PostgreSQL {{MAJOR_VERSION}} database server -Documentation=https://www.postgresql.org/docs/{{MAJOR_VERSION}}/static/ -After=syslog.target network-online.target - -[Service] -PIDFile=/var/run/postgresql{{PKG_VERSION}}.pid -ExecStart=/etc/init.d/postgresql-{{MAJOR_VERSION}} start -ExecStop=/etc/init.d/postgresql-{{MAJOR_VERSION}} stop -ExecReload=/etc/init.d/postgresql-{{MAJOR_VERSION}} reload - -[Install] -WantedBy=multi-user.target diff --git a/specs/postgresql-11/SOURCES/postgresql.sysconfig b/specs/postgresql-11/SOURCES/postgresql.sysconfig deleted file mode 100644 index d54914b9e..000000000 --- a/specs/postgresql-11/SOURCES/postgresql.sysconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Sysconfig for postgresql service - -PG_ENGINE="" -PG_POSTMASTER="" -PG_DATA="" -PG_LOG="" -PG_UPLOG="" -PG_SOCKET_DIR="" -TIMEOUT="" -DISABLE_AUTO_NUMA="" diff --git a/specs/postgresql-11/SOURCES/rpm-pgsql.patch b/specs/postgresql-11/SOURCES/rpm-pgsql.patch deleted file mode 100644 index 276da8e82..000000000 --- a/specs/postgresql-11/SOURCES/rpm-pgsql.patch +++ /dev/null @@ -1,55 +0,0 @@ ---- src/Makefile.global.in.old 2018-03-11 21:25:30.148541091 +0000 -+++ src/Makefile.global.in 2018-03-11 21:26:00.365690496 +0000 -@@ -83,7 +83,7 @@ - # Installation directories - # - # These are set by the equivalent --xxxdir configure options. We --# append "postgresql" to some of them, if the string does not already -+# append "pgsql" to some of them, if the string does not already - # contain "pgsql" or "postgres", in order to avoid directory clutter. - # - # In a PGXS build, we cannot use the values inserted into Makefile.global -@@ -104,14 +104,14 @@ - datadir := @datadir@ - ifeq "$(findstring pgsql, $(datadir))" "" - ifeq "$(findstring postgres, $(datadir))" "" --override datadir := $(datadir)/postgresql -+override datadir := $(datadir)/pgsql - endif - endif - - sysconfdir := @sysconfdir@ - ifeq "$(findstring pgsql, $(sysconfdir))" "" - ifeq "$(findstring postgres, $(sysconfdir))" "" --override sysconfdir := $(sysconfdir)/postgresql -+override sysconfdir := $(sysconfdir)/pgsql - endif - endif - -@@ -120,7 +120,7 @@ - pkglibdir = $(libdir) - ifeq "$(findstring pgsql, $(pkglibdir))" "" - ifeq "$(findstring postgres, $(pkglibdir))" "" --override pkglibdir := $(pkglibdir)/postgresql -+override pkglibdir := $(pkglibdir)/pgsql - endif - endif - -@@ -129,7 +129,7 @@ - pkgincludedir = $(includedir) - ifeq "$(findstring pgsql, $(pkgincludedir))" "" - ifeq "$(findstring postgres, $(pkgincludedir))" "" --override pkgincludedir := $(pkgincludedir)/postgresql -+override pkgincludedir := $(pkgincludedir)/pgsql - endif - endif - -@@ -138,7 +138,7 @@ - docdir := @docdir@ - ifeq "$(findstring pgsql, $(docdir))" "" - ifeq "$(findstring postgres, $(docdir))" "" --override docdir := $(docdir)/postgresql -+override docdir := $(docdir)/pgsql - endif - endif - diff --git a/specs/postgresql-11/SOURCES/slony1.init b/specs/postgresql-11/SOURCES/slony1.init deleted file mode 100644 index f0e2f94bd..000000000 --- a/specs/postgresql-11/SOURCES/slony1.init +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash - -# redis init script for starting up the Slony-I -# -# chkconfig: - 64 36 -# description: Starts and stops the Slon daemon that handles -# Slony-I replication. - -############################################################################### - -source /etc/init.d/kaosv - -############################################################################### - -PG_MAJOR_VERSION="{{PG_MAJOR_VERSION}}" -PG_HIGH_VERSION="{{PG_HIGH_VERSION}}" - -############################################################################### - -kv[prog_name]="slony1" - -kv.readSysconfig "${kv[prog_name]}-${PG_MAJOR_VERSION}" - -binary=${BINARY:-/usr/pgsql-$PG_HIGH_VERSION/bin/slon} -conf_file=${CONF_FILE:-/etc/slony1-$PG_MAJOR_VERSION/slon.conf} -pid_dir=${PID_DIR:-/var/run/slony1-$PG_MAJOR_VERSION} -log_dir=${LOG_DIR:-/var/log/slony1-$PG_MAJOR_VERSION} -user=${USER:-postgres} - -conninfo="${SLONCONNINFO}" -clustername="${SLONCLUSTERNAME:-sloncluster}" - -[[ -z "$conninfo" ]] && conninfo="host=/tmp port=5432 user=slony" - -kv[user]="$user" -kv[pid_file]="$pid_dir/slon_${PG_MAJOR_VERSION}.pid" -kv[log]="$log_dir/slonystartup.log" - -############################################################################### - -kv.addHandler "start" "preStartServiceHandler" "pre" -kv.addHandler "start" "startServiceHandler" -kv.addHandler "stop" "stopServiceHandler" - -kv.disableOutputRedirect "start" "pre" - -############################################################################### - -preStartServiceHandler() { - local has_errors="" - - [[ ! -f $binary ]] && has_errors=true && kv.error "File <$binary> does not exist" - [[ ! -x $binary ]] && has_errors=true && kv.error "File <$binary> is not executable" - - [[ ! -f $conf_file ]] && has_errors=true && kv.error "Configuration file <$conf_file> does not exist." - [[ ! -r $conf_file ]] && has_errors=true && kv.error "Configuration file <$conf_file> is not readable." - - if ! kv.hasUser "$user" ; then - has_errors=true && kv.error "User <$user> not found" - fi - - [[ -n "$has_errors" ]] && kv.exit $ACTION_ERROR - - if kv.isRoot ; then - if [[ ! -d $log_dir ]] ; then - mkdir -p $log_dir - chown $user: $log_dir - fi - fi - - return $ACTION_OK -} - -startServiceHandler() { - kv.run "$binary -f $conf_file -p ${kv[pid_file]} $clustername \"$conninfo\" &" - - [[ $? -ne $ACTION_OK ]] && return $ACTION_ERROR - - kv.getStartStatus - - return $? -} - -stopServiceHandler() { - kv.sendSignal "$SIGNAL_TERM" - - kv.getStopStatus - - return $? -} - -############################################################################### - -kv.go $@ diff --git a/specs/postgresql-11/SOURCES/slony1.service b/specs/postgresql-11/SOURCES/slony1.service deleted file mode 100644 index fc325718e..000000000 --- a/specs/postgresql-11/SOURCES/slony1.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Slony-I -After=syslog.target network.target - -[Service] -PIDFile=/var/run/slony1-{{PG_MAJOR_VERSION}}/slon_{{PG_MAJOR_VERSION}}.pid -ExecStart=/etc/init.d/slony1-{{PG_MAJOR_VERSION}} start -ExecStop=/etc/init.d/slony1-{{PG_MAJOR_VERSION}} stop - -[Install] -WantedBy=multi-user.target diff --git a/specs/postgresql-11/SOURCES/slony1.sysconfig b/specs/postgresql-11/SOURCES/slony1.sysconfig deleted file mode 100644 index ac2c68b1e..000000000 --- a/specs/postgresql-11/SOURCES/slony1.sysconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Sysconfig file for slony - -BINARY="" -CONF_FILE="" -PID_DIR="" -LOG_DIR="" -USER="" -SLONCONNINFO="" -SLONCLUSTERNAME="" diff --git a/specs/postgresql-11/pg_comparator.spec b/specs/postgresql-11/pg_comparator.spec deleted file mode 100644 index 1123dff91..000000000 --- a/specs/postgresql-11/pg_comparator.spec +++ /dev/null @@ -1,97 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?llvm:%global llvm 1} - -################################################################################ - -%define pg_ver 11 -%define pg_fullver %{pg_ver}.18 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname pg_comparator - -################################################################################ - -Summary: A tool to compare and sync tables in different locations -Name: %{realname}%{pg_ver} -Version: 2.3.2 -Release: 0%{?dist} -License: BSD -Group: Development/Tools -URL: https://www.cri.ensmp.fr/people/coelho/pg_comparator - -Source: https://www.cri.ensmp.fr/people/coelho/pg_comparator/%{realname}-%{version}.tgz - -Patch0: %{realname}-Makefile.patch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: make gcc -BuildRequires: postgresql%{pg_ver}-devel = %{pg_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_fullver} - -%if %llvm -BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0 -%endif - -Requires: perl(Getopt::Long), perl(Time::HiRes) -Requires: postgresql%{pg_ver} - -Requires(post): chkconfig - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description -pg_comparator is a tool to compare possibly very big tables in -different locations and report differences, with a network and -time-efficient approach. - -################################################################################ - -%prep -%crc_check -%autosetup -p1 -n %{realname}-%{version} - -%build -%{__make} %{?_smp_mflags} PG_CONFIG=%{pg_dir}/bin/pg_config - -%install -rm -rf %{buildroot} - -%{make_install} PG_CONFIG=%{pg_dir}/bin/pg_config - -%post -update-alternatives --install %{_bindir}/pg_comparator pgcomparator %{pg_dir}/bin/pg_comparator %{pg_ver}0 - -%postun -if [[ $1 -eq 0 ]] ; then - update-alternatives --remove pgcomparator %{pg_dir}/bin/pg_comparator -fi - -################################################################################ - -%files -%defattr(-,root,root,-) -%doc LICENSE -%doc %{pg_dir}/doc/extension/README.pg_comparator -%{pg_dir}/bin/pg_comparator -%{pg_dir}/lib/pgcmp.so -%{pg_dir}/share/extension/*.sql -%{pg_dir}/share/extension/pgcmp.control -%if %llvm -%{pg_dir}/lib/bitcode/* -%endif - -################################################################################ - -%changelog -* Thu Sep 21 2023 Anton Novojilov - 2.3.2-0 -- Updated to the latest stable release - -* Thu Oct 12 2017 Anton Novojilov - 2.3.1-0 -- Initial build diff --git a/specs/postgresql-11/pg_repack.spec b/specs/postgresql-11/pg_repack.spec deleted file mode 100644 index fdc1f112b..000000000 --- a/specs/postgresql-11/pg_repack.spec +++ /dev/null @@ -1,122 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?llvm:%global llvm 1} - -################################################################################ - -%define pg_ver 11 -%define pg_fullver %{pg_ver}.18 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname pg_repack - -################################################################################ - -Summary: Reorganize tables in PostgreSQL %{pg_ver} databases without any locks -Name: %{realname}%{pg_ver} -Version: 1.4.8 -Release: 0%{?dist} -License: BSD -Group: Applications/Databases -URL: https://pgxn.org/dist/pg_repack/ - -Source0: https://api.pgxn.org/dist/%{realname}/%{version}/%{realname}-%{version}.zip - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: make gcc openssl-devel readline-devel zlib-devel -BuildRequires: postgresql%{pg_ver}-devel = %{pg_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_fullver} - -%if %llvm -%if 0%{?rhel} >= 8 -BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0 -%endif -%if 0%{?rhel} == 7 -BuildRequires: llvm5.0-devel >= 5.0 llvm-toolset-7-clang >= 4.0.1 -%endif -%endif - -Requires: postgresql%{pg_ver} - -Requires(post): chkconfig - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description -pg_repack can re-organize tables on a postgres database without any locks so -that you can retrieve or update rows in tables being reorganized. -The module is developed to be a better alternative of CLUSTER and VACUUM FULL. - -################################################################################ - -%prep -%setup -qn %{realname}-%{version} - -%build -%if %llvm -%if 0%{?rhel} == 7 -# perfecto:ignore -export CLANG=/opt/rh/llvm-toolset-7/root/usr/bin/clang -export LLVM_CONFIG=%{_libdir}/llvm5.0/bin/llvm-config -%endif -%endif - -%{__make} %{?_smp_mflags} PG_CONFIG=%{pg_dir}/bin/pg_config - -%install -rm -rf %{buildroot} - -%{make_install} PG_CONFIG=%{pg_dir}/bin/pg_config - -%post -update-alternatives --install %{_bindir}/pg_repack pgrepack %{pg_dir}/bin/pg_repack %{pg_ver}0 - -%postun -if [[ $1 -eq 0 ]] ; then - update-alternatives --remove pgrepack %{pg_dir}/bin/pg_repack -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root,-) -%doc COPYRIGHT doc/pg_repack.rst -%attr(755,root,root) %{pg_dir}/bin/pg_repack -%attr(755,root,root) %{pg_dir}/lib/pg_repack.so -%{pg_dir}/share/extension/%{realname}--%{version}.sql -%{pg_dir}/share/extension/%{realname}.control -%if %llvm -%{pg_dir}/lib/bitcode/* -%endif - -################################################################################ - -%changelog -* Thu Sep 21 2023 Anton Novojilov - 1.4.8-0 -- Added support for PostgreSQL 15 -- Fixed --parent-table on declarative partitioned tables -- Removed connection info from error log - -* Thu Nov 18 2021 Anton Novojilov - 1.4.7-0 -- Added support for PostgreSQL 14 - -* Thu Feb 18 2021 Anton Novojilov - 1.4.6-0 -- Added support for PostgreSQL 13 -- Dropped support for PostgreSQL before 9.4 - -* Tue Jan 21 2020 Anton Novojilov - 1.4.5-0 -- Added support for PostgreSQL 12 -- Fixed parallel processing for indexes with operators from public schema - -* Sat Nov 17 2018 Anton Novojilov - 1.4.4-0 -- Added support for PostgreSQL 11 -- Remove duplicate password prompt diff --git a/specs/postgresql-11/postgis30.spec b/specs/postgresql-11/postgis30.spec deleted file mode 100644 index c0bf066d4..000000000 --- a/specs/postgresql-11/postgis30.spec +++ /dev/null @@ -1,275 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?utils:%global utils 1} -%{!?raster:%global raster 1} -%{!?llvm:%global llvm 1} - -################################################################################ - -%define maj_ver 3.0 -%define lib_ver 3 -%define pg_ver 11 -%define pg_low_fullver %{pg_ver}.18 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname postgis -%define pkgname %{realname}-%{maj_ver} -%define fullname %{realname}30 - -%define min_geos_ver 3.11 - -%define __perl_requires filter-requires-perl-Pg.sh - -################################################################################ - -Summary: Geographic Information Systems Extensions to PostgreSQL %{pg_ver} -Name: %{fullname}_%{pg_ver} -Version: 3.0.9 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/Databases -URL: https://www.postgis.net - -Source0: https://download.osgeo.org/%{realname}/source/%{realname}-%{version}.tar.gz -Source1: filter-requires-perl-Pg.sh - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: postgresql%{pg_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_low_fullver} -BuildRequires: geos-devel >= %{min_geos_ver} -BuildRequires: gcc-c++ chrpath make pcre-devel hdf5-devel -BuildRequires: proj-devel libtool flex json-c-devel libxml2-devel -BuildRequires: sqlite-devel libgeotiff-devel libpng-devel libtiff-devel - -%if %llvm -%if 0%{?rhel} >= 8 -BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0 -%endif -%if 0%{?rhel} == 7 -BuildRequires: llvm5.0-devel >= 5.0 llvm-toolset-7-clang >= 4.0.1 -%endif -%endif - -%if %raster -%if 0%{?rhel} == 7 -BuildRequires: gdal3-devel -Requires: gdal3-libs -%else -BuildRequires: gdal-devel >= 3 -Requires: gdal-libs >= 3 -%endif -%endif - -Requires: postgresql%{pg_ver} proj hdf5 json-c pcre -Requires: %{fullname}_%{pg_ver}-client = %{version}-%{release} -Requires: geos >= %{min_geos_ver} - -Requires(post): chkconfig - -Conflicts: %{realname}31 %{realname}32 %{realname}33 %{realname}34 - -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostGIS adds support for geographic objects to the PostgreSQL object-relational -database. In effect, PostGIS "spatially enables" the PostgreSQL server, -allowing it to be used as a backend spatial database for geographic information -systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS -follows the OpenGIS "Simple Features Specification for SQL" and has been -certified as compliant with the "Types and Functions" profile. - -################################################################################ - -%package client -Summary: Client tools and their libraries of PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description client -The postgis-client package contains the client tools and their libraries -of PostGIS. - -################################################################################ - -%package scripts -Summary: Installing and upgrading scripts for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description scripts -This package postgis-scripts contains the SQL scripts for installing PostGIS -in a PostgreSQL database, and for upgrading from earlier PostGIS versions. - -################################################################################ - -%if %utils -%package utils -Summary: The utils for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} perl-DBD-Pg - -%description utils -The postgis-utils package provides the utilities for PostGIS. -%endif - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build -# We need the below for GDAL -export LD_LIBRARY_PATH=%{pg_dir}/lib -export LIBGDAL_CFLAGS="" - -%configure \ - --with-pgconfig=%{pg_dir}/bin/pg_config \ - --with-gdalconfig=%{_bindir}/gdal-config \ -%if !%raster - --without-raster \ -%endif - --disable-rpath \ - --libdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} LPATH=$(%{pg_dir}/bin/pg_config --pkglibdir) shlib="%{name}.so" -%{__make} -C extensions - -%if %utils -%{__make} -C utils -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -%{make_install} -C extensions - -rm -rf %{buildroot}%{pg_dir}/doc - -mkdir -p %{buildroot}%{pg_dir}/bin/%{pkgname} - -chrpath --delete %{buildroot}%{pg_dir}/bin/pgsql2shp -chrpath --delete %{buildroot}%{pg_dir}/bin/shp2pgsql -chrpath --delete %{buildroot}%{pg_dir}/bin/raster2pgsql - -mv %{buildroot}%{pg_dir}/bin/pgsql2shp \ - %{buildroot}%{pg_dir}/bin/shp2pgsql \ - %{buildroot}%{pg_dir}/bin/raster2pgsql \ - %{buildroot}%{pg_dir}/bin/%{pkgname}/ - -%if %utils -install -dm 755 %{buildroot}%{_datadir}/%{name} -install -pm 644 utils/*.pl %{buildroot}%{_datadir}/%{name} -%endif - -%post -/sbin/ldconfig - -update-alternatives --install %{_bindir}/pgsql2shp postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp %{pg_ver}0 -update-alternatives --install %{_bindir}/shp2pgsql postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql %{pg_ver}0 -update-alternatives --install %{_bindir}/raster2pgsql postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql %{pg_ver}0 - -%postun -/sbin/ldconfig - -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system - update-alternatives --remove postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp - update-alternatives --remove postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql - update-alternatives --remove postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root) -%doc COPYING CREDITS NEWS TODO README.%{realname} doc/html loader/README.* doc/%{realname}.xml doc/ZMSgeoms.txt -%{pg_dir}/lib/address_standardizer-%{lib_ver}.so -%{pg_dir}/lib/postgis-%{lib_ver}.so -%{pg_dir}/lib/postgis_topology-%{lib_ver}.so -%if %raster -%{pg_dir}/lib/postgis_raster-%{lib_ver}.so -%endif - -%files client -%defattr(-,root,root) -%{pg_dir}/bin/%{pkgname}/pgsql2shp -%{pg_dir}/bin/%{pkgname}/raster2pgsql -%{pg_dir}/bin/%{pkgname}/shp2pgsql - -%files scripts -%defattr(-,root,root) -%{pg_dir}/share/contrib/%{pkgname}/legacy_gist.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy_minimal.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_proc_set_search_path.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_restore.pl -%{pg_dir}/share/contrib/%{pkgname}/postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/raster_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/sfcgal_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/spatial_ref_sys.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/topology.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_topology.sql -%{pg_dir}/share/extension/address_standardizer*.control -%{pg_dir}/share/extension/address_standardizer*.sql -%{pg_dir}/share/extension/postgis*.control -%{pg_dir}/share/extension/postgis*.sql -%if %raster -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_proc_set_search_path.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_rtpostgis.sql -%endif -%{pg_dir}/lib/bitcode/* - -%if %utils -%files utils -%defattr(-,root,root) -%doc utils/README -%attr(755,root,root) %{_datadir}/%{name}/create_extension_unpackage.pl -%attr(755,root,root) %{_datadir}/%{name}/create_spatial_ref_sys_config_dump.pl -%attr(755,root,root) %{_datadir}/%{name}/create_undef.pl -%attr(755,root,root) %{_datadir}/%{name}/create_unpackaged.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_proc_set_search_path.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_proc_upgrade.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_restore.pl -%attr(755,root,root) %{_datadir}/%{name}/profile_intersects.pl -%attr(755,root,root) %{_datadir}/%{name}/read_scripts_version.pl -%attr(755,root,root) %{_datadir}/%{name}/repo_revision.pl -%attr(755,root,root) %{_datadir}/%{name}/test_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_joinestimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_joinestimation.pl -%endif - -################################################################################ - -%changelog -* Wed Nov 08 2023 Anton Novojilov - 3.0.9-1 -- Minimal required version of GEOS set to 3.11 - -* Thu Sep 21 2023 Anton Novojilov - 3.0.9-0 -- https://git.osgeo.org/gitea/postgis/postgis/raw/tag/3.0.9/NEWS diff --git a/specs/postgresql-11/postgis31.spec b/specs/postgresql-11/postgis31.spec deleted file mode 100644 index 81ccb52fb..000000000 --- a/specs/postgresql-11/postgis31.spec +++ /dev/null @@ -1,273 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?utils:%global utils 1} -%{!?raster:%global raster 1} -%{!?llvm:%global llvm 1} - -################################################################################ - -%define maj_ver 3.1 -%define lib_ver 3 -%define pg_ver 11 -%define pg_low_fullver %{pg_ver}.18 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname postgis -%define pkgname %{realname}-%{maj_ver} -%define fullname %{realname}31 - -%define min_geos_ver 3.11 - -%define __perl_requires filter-requires-perl-Pg.sh - -################################################################################ - -Summary: Geographic Information Systems Extensions to PostgreSQL %{pg_ver} -Name: %{fullname}_%{pg_ver} -Version: 3.1.9 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/Databases -URL: https://www.postgis.net - -Source0: https://download.osgeo.org/%{realname}/source/%{realname}-%{version}.tar.gz -Source1: filter-requires-perl-Pg.sh - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: postgresql%{pg_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_low_fullver} -BuildRequires: geos-devel >= %{min_geos_ver} -BuildRequires: gcc-c++ chrpath make pcre-devel hdf5-devel -BuildRequires: proj-devel libtool flex json-c-devel libxml2-devel -BuildRequires: sqlite-devel libgeotiff-devel libpng-devel libtiff-devel - -%if %llvm -%if 0%{?rhel} >= 8 -BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0 -%endif -%if 0%{?rhel} == 7 -BuildRequires: llvm5.0-devel >= 5.0 llvm-toolset-7-clang >= 4.0.1 -%endif -%endif - -%if %raster -%if 0%{?rhel} == 7 -BuildRequires: gdal3-devel -Requires: gdal3-libs -%else -BuildRequires: gdal-devel >= 3 -Requires: gdal-libs >= 3 -%endif -%endif - -Requires: postgresql%{pg_ver} proj hdf5 json-c pcre -Requires: %{fullname}_%{pg_ver}-client = %{version}-%{release} -Requires: geos >= %{min_geos_ver} - -Requires(post): chkconfig - -Conflicts: %{realname}30 %{realname}32 %{realname}33 %{realname}34 - -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostGIS adds support for geographic objects to the PostgreSQL object-relational -database. In effect, PostGIS "spatially enables" the PostgreSQL server, -allowing it to be used as a backend spatial database for geographic information -systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS -follows the OpenGIS "Simple Features Specification for SQL" and has been -certified as compliant with the "Types and Functions" profile. - -################################################################################ - -%package client -Summary: Client tools and their libraries of PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description client -The postgis-client package contains the client tools and their libraries -of PostGIS. - -################################################################################ - -%package scripts -Summary: Installing and upgrading scripts for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description scripts -This package postgis-scripts contains the SQL scripts for installing PostGIS -in a PostgreSQL database, and for upgrading from earlier PostGIS versions. - -################################################################################ - -%if %utils -%package utils -Summary: The utils for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} perl-DBD-Pg - -%description utils -The postgis-utils package provides the utilities for PostGIS. -%endif - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build -# We need the below for GDAL -export LD_LIBRARY_PATH=%{pg_dir}/lib -export LIBGDAL_CFLAGS="" - -%configure \ - --with-pgconfig=%{pg_dir}/bin/pg_config \ - --with-gdalconfig=%{_bindir}/gdal-config \ -%if !%raster - --without-raster \ -%endif - --without-protobuf \ - --disable-rpath \ - --libdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} LPATH=$(%{pg_dir}/bin/pg_config --pkglibdir) shlib="%{name}.so" -%{__make} -C extensions - -%if %utils -%{__make} -C utils -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -%{make_install} -C extensions - -rm -rf %{buildroot}%{pg_dir}/doc - -mkdir -p %{buildroot}%{pg_dir}/bin/%{pkgname} - -chrpath --delete %{buildroot}%{pg_dir}/bin/pgsql2shp -chrpath --delete %{buildroot}%{pg_dir}/bin/shp2pgsql -chrpath --delete %{buildroot}%{pg_dir}/bin/raster2pgsql - -mv %{buildroot}%{pg_dir}/bin/pgsql2shp \ - %{buildroot}%{pg_dir}/bin/shp2pgsql \ - %{buildroot}%{pg_dir}/bin/raster2pgsql \ - %{buildroot}%{pg_dir}/bin/%{pkgname}/ - -%if %utils -install -dm 755 %{buildroot}%{_datadir}/%{name} -install -pm 644 utils/*.pl %{buildroot}%{_datadir}/%{name} -%endif - -%post -/sbin/ldconfig - -update-alternatives --install %{_bindir}/pgsql2shp postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp %{pg_ver}0 -update-alternatives --install %{_bindir}/shp2pgsql postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql %{pg_ver}0 -update-alternatives --install %{_bindir}/raster2pgsql postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql %{pg_ver}0 - -%postun -/sbin/ldconfig - -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system - update-alternatives --remove postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp - update-alternatives --remove postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql - update-alternatives --remove postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root) -%doc COPYING CREDITS NEWS TODO README.%{realname} doc/html loader/README.* doc/%{realname}.xml doc/ZMSgeoms.txt -%{pg_dir}/lib/address_standardizer-%{lib_ver}.so -%{pg_dir}/lib/postgis-%{lib_ver}.so -%{pg_dir}/lib/postgis_topology-%{lib_ver}.so -%if %raster -%{pg_dir}/lib/postgis_raster-%{lib_ver}.so -%endif - -%files client -%defattr(-,root,root) -%{pg_dir}/bin/%{pkgname}/pgsql2shp -%{pg_dir}/bin/%{pkgname}/raster2pgsql -%{pg_dir}/bin/%{pkgname}/shp2pgsql - -%files scripts -%defattr(-,root,root) -%{pg_dir}/share/contrib/%{pkgname}/legacy_gist.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy_minimal.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_restore.pl -%{pg_dir}/share/contrib/%{pkgname}/postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/raster_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/sfcgal_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/spatial_ref_sys.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/topology.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_topology.sql -%{pg_dir}/share/extension/address_standardizer*.control -%{pg_dir}/share/extension/address_standardizer*.sql -%{pg_dir}/share/extension/postgis*.control -%{pg_dir}/share/extension/postgis*.sql -%if %raster -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_rtpostgis.sql -%endif -%{pg_dir}/lib/bitcode/* - -%if %utils -%files utils -%defattr(-,root,root) -%doc utils/README -%attr(755,root,root) %{_datadir}/%{name}/create_extension_unpackage.pl -%attr(755,root,root) %{_datadir}/%{name}/create_spatial_ref_sys_config_dump.pl -%attr(755,root,root) %{_datadir}/%{name}/create_undef.pl -%attr(755,root,root) %{_datadir}/%{name}/create_unpackaged.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_proc_upgrade.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_restore.pl -%attr(755,root,root) %{_datadir}/%{name}/profile_intersects.pl -%attr(755,root,root) %{_datadir}/%{name}/read_scripts_version.pl -%attr(755,root,root) %{_datadir}/%{name}/repo_revision.pl -%attr(755,root,root) %{_datadir}/%{name}/test_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_joinestimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_joinestimation.pl -%endif - -################################################################################ - -%changelog -* Wed Nov 08 2023 Anton Novojilov - 3.1.9-1 -- Minimal required version of GEOS set to 3.11 - -* Thu Sep 21 2023 Anton Novojilov - 3.1.9-0 -- https://git.osgeo.org/gitea/postgis/postgis/raw/tag/3.1.9/NEWS diff --git a/specs/postgresql-11/postgis32.spec b/specs/postgresql-11/postgis32.spec deleted file mode 100644 index ebfd73505..000000000 --- a/specs/postgresql-11/postgis32.spec +++ /dev/null @@ -1,276 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?utils:%global utils 1} -%{!?raster:%global raster 1} -%{!?llvm:%global llvm 1} - -################################################################################ - -%define maj_ver 3.2 -%define lib_ver 3 -%define pg_ver 11 -%define pg_low_fullver %{pg_ver}.18 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname postgis -%define pkgname %{realname}-%{maj_ver} -%define fullname %{realname}32 - -%define min_geos_ver 3.11 - -%define __perl_requires filter-requires-perl-Pg.sh - -################################################################################ - -Summary: Geographic Information Systems Extensions to PostgreSQL %{pg_ver} -Name: %{fullname}_%{pg_ver} -Version: 3.2.5 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/Databases -URL: https://www.postgis.net - -Source0: https://download.osgeo.org/%{realname}/source/%{realname}-%{version}.tar.gz -Source1: filter-requires-perl-Pg.sh - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: postgresql%{pg_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_low_fullver} - -BuildRequires: postgresql%{pg_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_low_fullver} -BuildRequires: geos-devel >= %{min_geos_ver} -BuildRequires: gcc-c++ chrpath make pcre-devel hdf5-devel -BuildRequires: proj-devel libtool flex json-c-devel libxml2-devel -BuildRequires: sqlite-devel libgeotiff-devel libpng-devel libtiff-devel - -%if %llvm -%if 0%{?rhel} >= 8 -BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0 -%endif -%if 0%{?rhel} == 7 -BuildRequires: llvm5.0-devel >= 5.0 llvm-toolset-7-clang >= 4.0.1 -%endif -%endif - -%if %raster -%if 0%{?rhel} == 7 -BuildRequires: gdal3-devel -Requires: gdal3-libs -%else -BuildRequires: gdal-devel >= 3 -Requires: gdal-libs >= 3 -%endif -%endif - -Requires: postgresql%{pg_ver} proj hdf5 json-c pcre -Requires: %{fullname}_%{pg_ver}-client = %{version}-%{release} -Requires: geos >= %{min_geos_ver} - -Requires(post): chkconfig - -Conflicts: %{realname}30 %{realname}31 %{realname}33 %{realname}34 - -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostGIS adds support for geographic objects to the PostgreSQL object-relational -database. In effect, PostGIS "spatially enables" the PostgreSQL server, -allowing it to be used as a backend spatial database for geographic information -systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS -follows the OpenGIS "Simple Features Specification for SQL" and has been -certified as compliant with the "Types and Functions" profile. - -################################################################################ - -%package client -Summary: Client tools and their libraries of PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description client -The postgis-client package contains the client tools and their libraries -of PostGIS. - -################################################################################ - -%package scripts -Summary: Installing and upgrading scripts for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description scripts -This package postgis-scripts contains the SQL scripts for installing PostGIS -in a PostgreSQL database, and for upgrading from earlier PostGIS versions. - -################################################################################ - -%if %utils -%package utils -Summary: The utils for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} perl-DBD-Pg - -%description utils -The postgis-utils package provides the utilities for PostGIS. -%endif - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build -# We need the below for GDAL -export LD_LIBRARY_PATH=%{pg_dir}/lib -export LIBGDAL_CFLAGS="" - -%configure \ - --with-pgconfig=%{pg_dir}/bin/pg_config \ - --with-gdalconfig=%{_bindir}/gdal-config \ -%if !%raster - --without-raster \ -%endif - --without-protobuf \ - --disable-rpath \ - --libdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} LPATH=$(%{pg_dir}/bin/pg_config --pkglibdir) shlib="%{name}.so" -%{__make} -C extensions - -%if %utils -%{__make} -C utils -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -%{make_install} -C extensions - -rm -rf %{buildroot}%{pg_dir}/doc - -mkdir -p %{buildroot}%{pg_dir}/bin/%{pkgname} - -chrpath --delete %{buildroot}%{pg_dir}/bin/pgsql2shp -chrpath --delete %{buildroot}%{pg_dir}/bin/shp2pgsql -chrpath --delete %{buildroot}%{pg_dir}/bin/raster2pgsql - -mv %{buildroot}%{pg_dir}/bin/pgsql2shp \ - %{buildroot}%{pg_dir}/bin/shp2pgsql \ - %{buildroot}%{pg_dir}/bin/raster2pgsql \ - %{buildroot}%{pg_dir}/bin/%{pkgname}/ - -%if %utils -install -dm 755 %{buildroot}%{_datadir}/%{name} -install -pm 644 utils/*.pl %{buildroot}%{_datadir}/%{name} -%endif - -%post -/sbin/ldconfig - -update-alternatives --install %{_bindir}/pgsql2shp postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp %{pg_ver}0 -update-alternatives --install %{_bindir}/shp2pgsql postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql %{pg_ver}0 -update-alternatives --install %{_bindir}/raster2pgsql postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql %{pg_ver}0 - -%postun -/sbin/ldconfig - -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system - update-alternatives --remove postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp - update-alternatives --remove postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql - update-alternatives --remove postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root) -%doc COPYING CREDITS NEWS TODO README.%{realname} doc/html loader/README.* doc/%{realname}.xml doc/ZMSgeoms.txt -%{pg_dir}/lib/address_standardizer-%{lib_ver}.so -%{pg_dir}/lib/postgis-%{lib_ver}.so -%{pg_dir}/lib/postgis_topology-%{lib_ver}.so -%if %raster -%{pg_dir}/lib/postgis_raster-%{lib_ver}.so -%endif - -%files client -%defattr(-,root,root) -%{pg_dir}/bin/%{pkgname}/pgsql2shp -%{pg_dir}/bin/%{pkgname}/raster2pgsql -%{pg_dir}/bin/%{pkgname}/shp2pgsql - -%files scripts -%defattr(-,root,root) -%{pg_dir}/share/contrib/%{pkgname}/legacy_gist.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy_minimal.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_restore.pl -%{pg_dir}/share/contrib/%{pkgname}/postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/raster_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/sfcgal_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/spatial_ref_sys.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/topology.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_topology.sql -%{pg_dir}/share/extension/address_standardizer*.control -%{pg_dir}/share/extension/address_standardizer*.sql -%{pg_dir}/share/extension/postgis*.control -%{pg_dir}/share/extension/postgis*.sql -%if %raster -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_rtpostgis.sql -%endif -%{pg_dir}/lib/bitcode/* - -%if %utils -%files utils -%defattr(-,root,root) -%doc utils/README -%attr(755,root,root) %{_datadir}/%{name}/create_extension_unpackage.pl -%attr(755,root,root) %{_datadir}/%{name}/create_spatial_ref_sys_config_dump.pl -%attr(755,root,root) %{_datadir}/%{name}/create_undef.pl -%attr(755,root,root) %{_datadir}/%{name}/create_unpackaged.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_proc_upgrade.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_restore.pl -%attr(755,root,root) %{_datadir}/%{name}/profile_intersects.pl -%attr(755,root,root) %{_datadir}/%{name}/read_scripts_version.pl -%attr(755,root,root) %{_datadir}/%{name}/repo_revision.pl -%attr(755,root,root) %{_datadir}/%{name}/test_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_joinestimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_joinestimation.pl -%endif - -################################################################################ - -%changelog -* Wed Nov 08 2023 Anton Novojilov - 3.2.5-1 -- Minimal required version of GEOS set to 3.11 - -* Thu Sep 21 2023 Anton Novojilov - 3.2.5-0 -- https://git.osgeo.org/gitea/postgis/postgis/raw/tag/3.2.5/NEWS diff --git a/specs/postgresql-11/postgis33.spec b/specs/postgresql-11/postgis33.spec deleted file mode 100644 index 66540b054..000000000 --- a/specs/postgresql-11/postgis33.spec +++ /dev/null @@ -1,282 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?utils:%global utils 1} -%{!?raster:%global raster 1} -%{!?llvm:%global llvm 1} - -################################################################################ - -%define maj_ver 3.3 -%define lib_ver 3 -%define pg_ver 11 -%define pg_low_fullver %{pg_ver}.18 -%define pg_dir %{_prefix}/pgsql-%{pg_ver} -%define realname postgis -%define pkgname %{realname}-%{maj_ver} -%define fullname %{realname}33 - -%define min_geos_ver 3.11 - -%define __perl_requires filter-requires-perl-Pg.sh - -################################################################################ - -Summary: Geographic Information Systems Extensions to PostgreSQL %{pg_ver} -Name: %{fullname}_%{pg_ver} -Version: 3.3.4 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/Databases -URL: https://www.postgis.net - -Source0: https://download.osgeo.org/%{realname}/source/%{realname}-%{version}.tar.gz -Source1: filter-requires-perl-Pg.sh - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: postgresql%{pg_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_ver}-libs = %{pg_low_fullver} -BuildRequires: geos-devel >= %{min_geos_ver} -BuildRequires: gcc-c++ chrpath make pcre-devel hdf5-devel -BuildRequires: proj-devel libtool flex json-c-devel libxml2-devel -BuildRequires: sqlite-devel libgeotiff-devel libpng-devel libtiff-devel - -%if %llvm -%if 0%{?rhel} >= 8 -BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0 -%endif -%if 0%{?rhel} == 7 -BuildRequires: llvm5.0-devel >= 5.0 llvm-toolset-7-clang >= 4.0.1 -%endif -%endif - -%if %raster -%if 0%{?rhel} == 7 -BuildRequires: gdal3-devel -Requires: gdal3-libs -%else -BuildRequires: gdal-devel >= 3 -Requires: gdal-libs >= 3 -%endif -%endif - -Requires: postgresql%{pg_ver} proj hdf5 json-c pcre -Requires: %{fullname}_%{pg_ver}-client = %{version}-%{release} -Requires: geos >= %{min_geos_ver} - -Requires(post): chkconfig - -Conflicts: %{realname}30 %{realname}31 %{realname}32 %{realname}34 - -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostGIS adds support for geographic objects to the PostgreSQL object-relational -database. In effect, PostGIS "spatially enables" the PostgreSQL server, -allowing it to be used as a backend spatial database for geographic information -systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS -follows the OpenGIS "Simple Features Specification for SQL" and has been -certified as compliant with the "Types and Functions" profile. - -################################################################################ - -%package client -Summary: Client tools and their libraries of PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description client -The postgis-client package contains the client tools and their libraries -of PostGIS. - -################################################################################ - -%package scripts -Summary: Installing and upgrading scripts for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} - -%description scripts -This package postgis-scripts contains the SQL scripts for installing PostGIS -in a PostgreSQL database, and for upgrading from earlier PostGIS versions. - -################################################################################ - -%if %utils -%package utils -Summary: The utils for PostGIS -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} perl-DBD-Pg - -%description utils -The postgis-utils package provides the utilities for PostGIS. -%endif - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build -# We need the below for GDAL -export LD_LIBRARY_PATH=%{pg_dir}/lib -export LIBGDAL_CFLAGS="" - -%configure \ - --with-pgconfig=%{pg_dir}/bin/pg_config \ - --with-gdalconfig=%{_bindir}/gdal-config \ -%if !%raster - --without-raster \ -%endif - --without-protobuf \ - --disable-rpath \ - --libdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} LPATH=$(%{pg_dir}/bin/pg_config --pkglibdir) shlib="%{name}.so" -%{__make} -C extensions - -%if %utils -%{__make} -C utils -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -%{make_install} -C extensions - -rm -rf %{buildroot}%{pg_dir}/doc - -mkdir -p %{buildroot}%{pg_dir}/bin/%{pkgname} - -chrpath --delete %{buildroot}%{pg_dir}/bin/pgsql2shp -chrpath --delete %{buildroot}%{pg_dir}/bin/raster2pgsql -chrpath --delete %{buildroot}%{pg_dir}/bin/shp2pgsql - -mv %{buildroot}%{pg_dir}/bin/pgsql2shp \ - %{buildroot}%{pg_dir}/bin/pgtopo_export \ - %{buildroot}%{pg_dir}/bin/pgtopo_import \ - %{buildroot}%{pg_dir}/bin/raster2pgsql \ - %{buildroot}%{pg_dir}/bin/shp2pgsql \ - %{buildroot}%{pg_dir}/bin/%{pkgname}/ - -%if %utils -install -dm 755 %{buildroot}%{_datadir}/%{name} -install -pm 644 utils/*.pl %{buildroot}%{_datadir}/%{name} -%endif - -%post -/sbin/ldconfig - -update-alternatives --install %{_bindir}/pgsql2shp postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp %{pg_ver}0 -update-alternatives --install %{_bindir}/pgtopo_export postgis-pgtopo_export %{pg_dir}/bin/%{pkgname}/pgtopo_export %{pg_ver}0 -update-alternatives --install %{_bindir}/pgtopo_import postgis-pgtopo_import %{pg_dir}/bin/%{pkgname}/pgtopo_import %{pg_ver}0 -update-alternatives --install %{_bindir}/raster2pgsql postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql %{pg_ver}0 -update-alternatives --install %{_bindir}/shp2pgsql postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql %{pg_ver}0 - -%postun -/sbin/ldconfig - -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system - update-alternatives --remove postgis-pgsql2shp %{pg_dir}/bin/%{pkgname}/pgsql2shp - update-alternatives --remove postgis-pgtopo_export %{pg_dir}/bin/%{pkgname}/pgtopo_export - update-alternatives --remove postgis-pgtopo_import %{pg_dir}/bin/%{pkgname}/pgtopo_import - update-alternatives --remove postgis-raster2pgsql %{pg_dir}/bin/%{pkgname}/raster2pgsql - update-alternatives --remove postgis-shp2pgsql %{pg_dir}/bin/%{pkgname}/shp2pgsql -fi - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root) -%doc COPYING CREDITS NEWS TODO README.%{realname} doc/html loader/README.* doc/%{realname}.xml doc/ZMSgeoms.txt -%{pg_dir}/lib/address_standardizer-%{lib_ver}.so -%{pg_dir}/lib/postgis-%{lib_ver}.so -%{pg_dir}/lib/postgis_topology-%{lib_ver}.so -%if %raster -%{pg_dir}/lib/postgis_raster-%{lib_ver}.so -%endif - -%files client -%defattr(-,root,root) -%{pg_dir}/bin/%{pkgname}/pgsql2shp -%{pg_dir}/bin/%{pkgname}/pgtopo_export -%{pg_dir}/bin/%{pkgname}/pgtopo_import -%{pg_dir}/bin/%{pkgname}/raster2pgsql -%{pg_dir}/bin/%{pkgname}/shp2pgsql - -%files scripts -%defattr(-,root,root) -%{pg_dir}/share/contrib/%{pkgname}/legacy_gist.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy_minimal.sql -%{pg_dir}/share/contrib/%{pkgname}/legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_restore.pl -%{pg_dir}/share/contrib/%{pkgname}/postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/postgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/raster_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/sfcgal_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/spatial_ref_sys.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_comments.sql -%{pg_dir}/share/contrib/%{pkgname}/topology.sql -%{pg_dir}/share/contrib/%{pkgname}/topology_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_postgis.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_topology.sql -%{pg_dir}/share/extension/address_standardizer*.control -%{pg_dir}/share/extension/address_standardizer*.sql -%{pg_dir}/share/extension/postgis*.control -%{pg_dir}/share/extension/postgis*.sql -%if %raster -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_legacy.sql -%{pg_dir}/share/contrib/%{pkgname}/rtpostgis_upgrade.sql -%{pg_dir}/share/contrib/%{pkgname}/uninstall_rtpostgis.sql -%endif -%{pg_dir}/lib/bitcode/* - -%if %utils -%files utils -%defattr(-,root,root) -%doc utils/README -%attr(755,root,root) %{_datadir}/%{name}/create_extension_unpackage.pl -%attr(755,root,root) %{_datadir}/%{name}/create_or_replace_to_create.pl -%attr(755,root,root) %{_datadir}/%{name}/create_spatial_ref_sys_config_dump.pl -%attr(755,root,root) %{_datadir}/%{name}/create_undef.pl -%attr(755,root,root) %{_datadir}/%{name}/create_unpackaged.pl -%attr(755,root,root) %{_datadir}/%{name}/create_upgrade.pl -%attr(755,root,root) %{_datadir}/%{name}/postgis_restore.pl -%attr(755,root,root) %{_datadir}/%{name}/profile_intersects.pl -%attr(755,root,root) %{_datadir}/%{name}/read_scripts_version.pl -%attr(755,root,root) %{_datadir}/%{name}/repo_revision.pl -%attr(755,root,root) %{_datadir}/%{name}/test_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_estimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_geography_joinestimation.pl -%attr(755,root,root) %{_datadir}/%{name}/test_joinestimation.pl -%endif - -################################################################################ - -%changelog -* Wed Nov 08 2023 Anton Novojilov - 3.3.4-1 -- Minimal required version of GEOS set to 3.11 - -* Thu Sep 21 2023 Anton Novojilov - 3.3.4-0 -- https://git.osgeo.org/gitea/postgis/postgis/raw/tag/3.3.4/NEWS diff --git a/specs/postgresql-11/postgresql-11.spec b/specs/postgresql-11/postgresql-11.spec deleted file mode 100644 index 91755f316..000000000 --- a/specs/postgresql-11/postgresql-11.spec +++ /dev/null @@ -1,1194 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%{!?kerbdir:%define kerbdir "/usr"} -%{!?test:%define test 1} -%{!?plpython:%define plpython 1} -%{!?pltcl:%define pltcl 1} -%{!?plperl:%define plperl 1} -%{!?ssl:%define ssl 1} -%{!?intdatetimes:%define intdatetimes 1} -%{!?icu:%define icu 1} -%{!?kerberos:%define kerberos 1} -%{!?nls:%define nls 1} -%{!?xml:%define xml 1} -%{!?pam:%define pam 1} -%{!?disablepgfts:%define disablepgfts 0} -%{!?runselftest:%define runselftest 0} -%{!?uuid:%define uuid 1} -%{!?ldap:%define ldap 1} -%{!?llvm:%global llvm 1} - -%define majorver 11 -%define minorver 21 -%define rel 2 -%define fullver %{majorver}.%{minorver} -%define pkgver 11 -%define realname postgresql -%define shortname pgsql -%define tinyname pg -%define service_name %{realname}-%{majorver} -%define install_dir %{_usr}/%{shortname}-%{majorver} - -%define prev_version 10 - -%define username postgres -%define groupname postgres -%define gid 26 - -%define __perl_requires %{SOURCE9} - -################################################################################ - -Summary: PostgreSQL %{majorver} client programs and libraries -Name: %{realname}%{majorver} -Version: %{fullver} -Release: %{rel}%{?dist} -License: PostgreSQL -Group: Applications/Databases -URL: https://www.postgresql.org - -Source0: https://download.postgresql.org/pub/source/v%{version}/%{realname}-%{version}.tar.bz2 -Source1: %{realname}.init -Source2: Makefile.regress -Source3: pg_config.h -Source4: README.rpm-dist -Source5: ecpg_config.h -Source6: %{realname}-%{majorver}-libs.conf -Source7: https://www.postgresql.org/files/documentation/pdf/%{majorver}/%{realname}-%{majorver}-A4.pdf -Source8: %{realname}.pam -Source9: filter-requires-perl-Pg.sh -Source10: %{realname}.sysconfig -Source11: %{realname}.service -Source12: bash_profile -Source13: %{realname}-tmpfiles.d.conf - -Source100: checksum.sha512 - -Patch1: rpm-%{shortname}.patch -Patch2: %{realname}-logging.patch -Patch3: %{realname}-perl-rpath.patch -Patch4: %{realname}-var-run-socket.patch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: make gcc gcc-c++ perl glibc-devel bison flex >= 2.5.31 -BuildRequires: readline-devel zlib-devel >= 1.0.4 perl-generators - -%if %plperl -BuildRequires: perl-ExtUtils-Embed perl-ExtUtils-MakeMaker -%endif - -%if %plpython -BuildRequires: python3-devel -%endif - -%if %pltcl -BuildRequires: tcl-devel -%endif - -%if %ssl -BuildRequires: openssl-devel -%endif - -%if %kerberos -BuildRequires: krb5-devel e2fsprogs-devel -%endif - -%if %icu -BuildRequires: libicu-devel -Requires: libicu -%endif - -%if %nls -BuildRequires: gettext >= 0.10.35 -%endif - -%if %xml -BuildRequires: libxml2-devel libxslt-devel -%endif - -%if %pam -BuildRequires: pam-devel -%endif - -%if %uuid -BuildRequires: libuuid-devel -%endif - -%if %ldap -BuildRequires: openldap-devel -%endif - -%if %llvm -BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0 -%endif - -BuildRequires: systemd systemd-devel - -Requires: glibc initscripts -Requires: %{name}-libs = %{version} - -Requires(post): systemd chkconfig -Requires(preun): systemd -Requires(postun): systemd chkconfig - -Provides: %{name} = %{version}-%{release} -Provides: %{realname} = %{version}-%{release} - -################################################################################ - -%description -PostgreSQL is an advanced Object-Relational database management system -(DBMS) that supports almost all SQL constructs (including -transactions, subselects and user-defined types and functions). The -postgresql package includes the client programs and libraries that -you'll need to access a PostgreSQL DBMS server. These PostgreSQL -client programs are programs that directly manipulate the internal -structure of PostgreSQL databases on a PostgreSQL server. These client -programs can be located on the same machine with the PostgreSQL -server, or may be on a remote machine which accesses a PostgreSQL -server over a network connection. This package contains the command-line -utilities for managing PostgreSQL databases on a PostgreSQL server. - -If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL -server, you need this package. You also need to install this package -if you're installing the postgresql%{pkgver}-server package. - -################################################################################ - -%package libs -Summary: The shared libraries required for any PostgreSQL clients -Group: Applications/Databases - -Provides: %{realname}-libs = %{version}-%{release} - -%description libs -The postgresql%{pkgver}-libs package provides the essential shared libraries -for any PostgreSQL client program or interface. You will need to install this -package to use any other PostgreSQL package or any clients that need to connect -to a PostgreSQL server. - -################################################################################ - -%package server -Summary: The programs needed to create and run a PostgreSQL server -Group: Applications/Databases - -Requires: %{name} = %{version}-%{release} -Requires: %{name}-libs = %{version}-%{release} -Requires: glibc kaosv >= 2.16 numactl -Requires: %{_sbindir}/useradd %{_sbindir}/chkconfig - -Provides: %{realname}-server = %{version}-%{release} - -%description server -The postgresql%{pkgver}-server package includes the programs needed to create -and run a PostgreSQL server, which will in turn allow you to create -and maintain PostgreSQL databases. PostgreSQL is an advanced -Object-Relational database management system (DBMS) that supports -almost all SQL constructs (including transactions, subselects and -user-defined types and functions). You should install -postgresql%{pkgver}-server if you want to create and maintain your own -PostgreSQL databases and/or your own PostgreSQL server. You also need -to install the postgresql package. - -################################################################################ - -%package docs -Summary: Extra documentation for PostgreSQL -Group: Applications/Databases - -Provides: %{realname}-docs = %{version}-%{release} - -%description docs -The postgresql%{pkgver}-docs package includes the SGML source for the -documentation as well as the documentation in PDF format and some extra -documentation. Install this package if you want to help with the PostgreSQL -documentation project, or if you want to generate printed documentation. This -package also includes HTML version of the documentation. - -################################################################################ - -%package contrib -Summary: Contributed source and binaries distributed with PostgreSQL -Group: Applications/Databases - -Requires: %{name} = %{version} -Provides: %{realname}-contrib = %{version}-%{release} - -%description contrib -The postgresql%{pkgver}-contrib package contains contributed packages that are -included in the PostgreSQL distribution. - -################################################################################ - -%package devel -Summary: PostgreSQL development header files and libraries -Group: Development/Libraries - -%if %icu -Requires: libicu-devel -%endif - -%if %ssl -Requires: openssl-devel -%endif - -AutoReq: no -Requires: %{name} = %{version}-%{release} -Requires: %{name}-libs = %{version}-%{release} -Provides: %{realname}-devel = %{version}-%{release} - -%description devel -The postgresql%{pkgver}-devel package contains the header files and libraries -needed to compile C or C++ applications which will directly interact -with a PostgreSQL database management server and the ecpg Embedded C -Postgres preprocessor. You need to install this package if you want to -develop applications which will interact with a PostgreSQL server. - -################################################################################ - -%if %llvm -%package llvmjit -Summary: Just-in-time compilation support for PostgreSQL -Group: Applications/Databases - -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Requires: llvm >= 6.0 - -Provides: %{realname}-llvmjit = %{version} - -%description llvmjit -The postgresql%{pkgver}-llvmjit package contains support for -just-in-time compiling parts of PostgreSQL queries. Using LLVM it -compiles e.g. expressions and tuple deforming into native code, with the -goal of accelerating analytics queries. -%endif - -################################################################################ - -%if %plperl -%package plperl -Summary: The Perl procedural language for PostgreSQL -Group: Applications/Databases - -Requires: %{name}-server = %{version} - -Obsoletes: %{realname}-pl = %{version} -Provides: %{realname}-plperl = %{version}-%{release} - -%description plperl -PostgreSQL is an advanced Object-Relational database management -system. The postgresql%{pkgver}-plperl package contains the PL/Perl language -for the backend. -%endif - -################################################################################ - -%if %plpython -%package plpython3 -Summary: The Python procedural language for PostgreSQL -Group: Applications/Databases - -Requires: %{name} = %{version} -Requires: %{name}-server = %{version} -Requires: python3 python3-libs - -Obsoletes: %{realname}-pl = %{version} -Provides: %{realname}-plpython = %{version}-%{release} - -%description plpython3 -PostgreSQL is an advanced Object-Relational database management -system. The postgresql%{pkgver}-plpython package contains the PL/Python language -for the backend. -%endif - -################################################################################ - -%if %pltcl -%package pltcl -Summary: The Tcl procedural language for PostgreSQL -Group: Applications/Databases - -Requires: %{name} = %{version} -Requires: %{name}-server = %{version} - -Obsoletes: %{realname}-pl = %{version} -Provides: %{realname}-pltcl = %{version}-%{release} - -%description pltcl -PostgreSQL is an advanced Object-Relational database management -system. The postgresql%{pkgver}-pltcl package contains the PL/Tcl language -for the backend. -%endif - -################################################################################ - -%if %test -%package test -Summary: The test suite distributed with PostgreSQL -Group: Applications/Databases - -Requires: %{name}-server = %{version} -Provides: %{realname}-test = %{version}-%{release} - -%description test -PostgreSQL is an advanced Object-Relational database management -system. 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. -%endif - -################################################################################ - -%prep -%crc_check -%autosetup -p0 -n %{realname}-%{version} - -# Copy pdf with documentation to build directory -cp -p %{SOURCE7} . - -%build -CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS -CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS - -%if %kerberos -CPPFLAGS="${CPPFLAGS} -I%{_includedir}/et" ; export CPPFLAGS -CFLAGS="${CFLAGS} -I%{_includedir}/et" ; export CFLAGS -%endif - -# Strip out -ffast-math from CFLAGS.... -CFLAGS=$(echo "$CFLAGS" | xargs -n 1 | grep -v ffast-math | xargs -n 100) -CFLAGS="$CFLAGS -DLINUX_OOM_SCORE_ADJ=0" -LDFLAGS="-Wl,--as-needed" ; export LDFLAGS - -export CFLAGS -export LIBNAME=%{_lib} -export PYTHON=/usr/bin/python3 - -%{_configure} --disable-rpath \ - --prefix=%{install_dir} \ - --includedir=%{install_dir}/include \ - --mandir=%{install_dir}/share/man \ - --datadir=%{install_dir}/share \ -%if %icu - --with-icu \ -%endif -%if %llvm - --with-llvm \ -%endif -%if %plperl - --with-perl \ -%endif -%if %plpython - --with-python \ -%endif -%if %pltcl - --with-tcl \ - --with-tclconfig=%{_libdir} \ -%endif -%if %ssl - --with-openssl \ -%endif -%if %pam - --with-pam \ -%endif -%if %kerberos - --with-gssapi \ - --with-includes=%{kerbdir}/include \ - --with-libraries=%{kerbdir}/%{_lib} \ -%endif -%if %nls - --enable-nls \ -%endif -%if !%intdatetimes - --disable-integer-datetimes \ -%endif -%if %disablepgfts - --disable-thread-safety \ -%endif -%if %uuid - --with-uuid=e2fs \ -%endif -%if %xml - --with-libxml \ - --with-libxslt \ -%endif -%if %ldap - --with-ldap \ -%endif - --with-system-tzdata=%{_datadir}/zoneinfo \ - --sysconfdir=%{_sysconfdir}/sysconfig/%{shortname} \ - --docdir=%{install_dir}/doc \ - --htmldir=%{install_dir}/doc/html - -%{__make} %{?_smp_mflags} all -%{__make} %{?_smp_mflags} -C contrib all -%if %uuid -%{__make} %{?_smp_mflags} -C contrib/uuid-ossp all -%endif - -# Have to hack makefile to put correct path into tutorial scripts -sed "s|C=\`pwd\`;|C=%{install_dir}/lib/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile -%{__make} %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all -rm -f src/tutorial/GNUmakefile - -# run_testsuite WHERE -# ------------------- -# Run 'make check' in WHERE path. When that command fails, return the logs -# given by PostgreSQL build system and set 'test_failure=1'. - -run_testsuite() -{ - %{__make} -C "$1" MAX_CONNECTIONS=5 check && return 0 - - test_failure=1 - - ( - set +x - echo "=== trying to find all regression.diffs files in build directory ===" - find -name 'regression.diffs' | \ - while read line; do - echo "=== make failure: $line ===" - cat "$line" - done - ) -} - -%if %runselftest - run_testsuite "src/test/regress" - %{__make} %{?_smp_mflags} clean -C "src/test/regress" - run_testsuite "src/pl" - run_testsuite "contrib" -%endif - -%if %test - pushd src/test/regress - %{__make} %{?_smp_mflags} all - popd -%endif - -%install -rm -rf %{buildroot} - -%{make_install} -mkdir -p %{buildroot}%{install_dir}/share/extensions/ -%{make_install} -C contrib - -%if %uuid -%{make_install} -C contrib/uuid-ossp -%endif - -# multilib header hack; note pg_config.h is installed in two places! -# we only apply this to known Red Hat multilib arches, per bug #177564 -case `uname -i` in - i386 | x86_64) - mv %{buildroot}%{install_dir}/include/pg_config.h %{buildroot}%{install_dir}/include/pg_config_`uname -i`.h - install -pm 644 %{SOURCE3} %{buildroot}%{install_dir}/include/ - mv %{buildroot}%{install_dir}/include/server/pg_config.h %{buildroot}%{install_dir}/include/server/pg_config_`uname -i`.h - install -pm 644 %{SOURCE3} %{buildroot}%{install_dir}/include/server/ - mv %{buildroot}%{install_dir}/include/ecpg_config.h %{buildroot}%{install_dir}/include/ecpg_config_`uname -i`.h - install -pm 644 %{SOURCE5} %{buildroot}%{install_dir}/include/ - ;; - *) - ;; -esac - -# Installing and updating sysv init script -install -d %{buildroot}%{_initddir} -install -d %{buildroot}%{_sysconfdir}/sysconfig - -install -pm 755 %{SOURCE1} %{buildroot}%{_initddir}/%{service_name} -install -pm 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/sysconfig/%{service_name} - -sed -i 's/{{VERSION}}/%{version}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{MAJOR_VERSION}}/%{majorver}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{PKG_VERSION}}/%{majorver}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{PREV_VERSION}}/%{prev_version}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{USER_NAME}}/%{username}/g' %{buildroot}%{_initddir}/%{service_name} -sed -i 's/{{GROUP_NAME}}/%{groupname}/g' %{buildroot}%{_initddir}/%{service_name} - -# Installing and updating systemd config -install -d %{buildroot}%{_unitdir} -install -pm 644 %{SOURCE11} %{buildroot}%{_unitdir}/postgresql-%{majorver}.service - -sed -i 's/{{VERSION}}/%{version}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{MAJOR_VERSION}}/%{majorver}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{PKG_VERSION}}/%{majorver}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{PREV_VERSION}}/%{prev_version}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{USER_NAME}}/%{username}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service -sed -i 's/{{GROUP_NAME}}/%{groupname}/g' %{buildroot}%{_unitdir}/postgresql-%{majorver}.service - -ln -sf %{service_name} %{buildroot}%{_initddir}/%{tinyname}%{majorver} - -%if %pam -install -d %{buildroot}%{_sysconfdir}/pam.d -install -pm 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/%{realname}%{majorver} -%endif - -install -dm 755 %{buildroot}%{_tmpfilesdir} -install -pm 644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/%{realname}-%{majorver}.conf - -# Create the directory for sockets -install -dm 755 %{buildroot}%{_localstatedir}/run/%{realname} - -# PGDATA needs removal of group and world permissions due to pg_pwd hole. -install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/data - -# backups of data go here... -install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/backups - -# Create the multiple postmaster startup directory -install -dm 700 %{buildroot}%{_sysconfdir}/sysconfig/%{shortname}/%{majorver} - -# Install linker conf file under postgresql installation directory. -# We will install the latest version via alternatives. -install -dm 755 %{buildroot}%{install_dir}/share/ -install -pm 700 %{SOURCE6} %{buildroot}%{install_dir}/share/ - -%if %test - # Tests. There are many files included here that are unnecessary, - # but include them anyway for completeness. We replace the original - # Makefiles, however. - mkdir -p %{buildroot}%{install_dir}/lib/test - cp -a src/test/regress %{buildroot}%{install_dir}/lib/test - install -pm 0755 contrib/spi/refint.so %{buildroot}%{install_dir}/lib/test/regress - install -pm 0755 contrib/spi/autoinc.so %{buildroot}%{install_dir}/lib/test/regress - pushd %{buildroot}%{install_dir}/lib/test/regress - strip *.so - rm -f GNUmakefile Makefile *.o - chmod 0755 pg_regress regress.so - popd - cp %{SOURCE2} %{buildroot}%{install_dir}/lib/test/regress/Makefile - chmod 0644 %{buildroot}%{install_dir}/lib/test/regress/Makefile -%endif - -# Fix some more documentation -# gzip doc/internals.ps -cp %{SOURCE4} README.rpm-dist -mkdir -p %{buildroot}%{install_dir}/share/doc/html -mv doc/src/sgml/html doc -mkdir -p %{buildroot}%{install_dir}/share/man/ -mv doc/src/sgml/man1 doc/src/sgml/man3 doc/src/sgml/man7 %{buildroot}%{install_dir}/share/man/ -rm -rf %{buildroot}%{_docdir}/%{shortname} - -# initialize file lists -cp /dev/null main.lst -cp /dev/null libs.lst -cp /dev/null server.lst -cp /dev/null devel.lst -cp /dev/null plperl.lst -cp /dev/null pltcl.lst -cp /dev/null plpython.lst - -%if %nls - %find_lang ecpg-%{majorver} - %find_lang ecpglib6-%{majorver} - %find_lang initdb-%{majorver} - %find_lang libpq5-%{majorver} - %find_lang pg_archivecleanup-%{majorver} - %find_lang pg_basebackup-%{majorver} - %find_lang pg_config-%{majorver} - %find_lang pg_controldata-%{majorver} - %find_lang pg_ctl-%{majorver} - %find_lang pg_dump-%{majorver} - %find_lang pg_resetwal-%{majorver} - %find_lang pg_rewind-%{majorver} - %find_lang pg_test_fsync-%{majorver} - %find_lang pg_test_timing-%{majorver} - %find_lang pg_upgrade-%{majorver} - %find_lang pg_waldump-%{majorver} - %find_lang pgscripts-%{majorver} - %find_lang pg_verify_checksums-%{majorver} - - %if %plperl - %find_lang plperl-%{majorver} - cat plperl-%{majorver}.lang > pg_plperl.lst - %endif - - %find_lang plpgsql-%{majorver} - - %if %plpython - %find_lang plpython-%{majorver} - cat plpython-%{majorver}.lang > pg_plpython.lst - %endif - - %if %pltcl - %find_lang pltcl-%{majorver} - cat pltcl-%{majorver}.lang > pg_pltcl.lst - %endif - - %find_lang postgres-%{majorver} - %find_lang psql-%{majorver} -%endif - -cat libpq5-%{majorver}.lang > pg_libpq5.lst - -cat pg_config-%{majorver}.lang \ - ecpg-%{majorver}.lang \ - ecpglib6-%{majorver}.lang > pg_devel.lst - -cat initdb-%{majorver}.lang \ - pg_ctl-%{majorver}.lang \ - psql-%{majorver}.lang \ - pg_dump-%{majorver}.lang \ - pg_basebackup-%{majorver}.lang \ - pg_rewind-%{majorver}.lang \ - pg_upgrade-%{majorver}.lang \ - pg_test_timing-%{majorver}.lang \ - pg_test_fsync-%{majorver}.lang \ - pg_archivecleanup-%{majorver}.lang \ - pg_waldump-%{majorver}.lang \ - pgscripts-%{majorver}.lang \ - pg_verify_checksums-%{majorver}.lang > pg_main.lst - -cat postgres-%{majorver}.lang \ - pg_resetwal-%{majorver}.lang \ - pg_controldata-%{majorver}.lang \ - plpgsql-%{majorver}.lang > pg_server.lst - -# Install bash profile -install -pm 700 %{SOURCE12} %{buildroot}%{install_dir}/share/ -sed -i "s#{{PGDATA}}#%{_sharedstatedir}/%{shortname}/%{majorver}/data/#" \ - %{buildroot}%{install_dir}/share/bash_profile - -################################################################################ - -%pre server -if [[ $1 -eq 1 ]] ; then - getent group %{groupname} >/dev/null || groupadd -g %{gid} -o -r %{groupname} - getent passwd %{username} >/dev/null || \ - useradd -M -n -g %{username} -o -r -d %{_sharedstatedir}/%{shortname} -s /bin/bash -u %{gid} %{username} -fi - -%post server -if [[ $1 -eq 1 ]] ; then - systemctl daemon-reload %{service_name}.service &>/dev/null || : - systemctl preset %{service_name}.service &>/dev/null || : - - /sbin/ldconfig -fi - -# Removing bash_profile generated by previous versions of packages -if [[ ! -L %{_sharedstatedir}/%{shortname}/.bash_profile ]] ; then - rm -f %{_sharedstatedir}/%{shortname}/.bash_profile -fi - -update-alternatives --install %{_sharedstatedir}/%{shortname}/.bash_profile %{shortname}-bash_profile %{install_dir}/share/bash_profile %{pkgver}00 - -%preun server -if [[ $1 -eq 0 ]] ; then - update-alternatives --remove %{shortname}-bash_profile %{install_dir}/share/bash_profile - systemctl --no-reload disable %{service_name}.service &>/dev/null || : - systemctl stop %{service_name}.service &>/dev/null || : -fi - -%postun server -systemctl daemon-reload &>/dev/null || : -/sbin/ldconfig - -%if %plperl -%post plperl -/sbin/ldconfig - -%postun plperl -/sbin/ldconfig -%endif - -%if %plpython -%post plpython3 -/sbin/ldconfig - -%postun plpython3 -/sbin/ldconfig -%endif - -%if %pltcl -%post pltcl -/sbin/ldconfig - -%postun pltcl -/sbin/ldconfig -%endif - -%if %test -%post test -chown -R -h %{username}:%{groupname} %{_datarootdir}/%{shortname}/test &>/dev/null || : -%endif - -# Create alternatives entries for common binaries and man files -%post -update-alternatives --install %{_bindir}/psql %{shortname}-psql %{install_dir}/bin/psql %{pkgver}00 -update-alternatives --install %{_bindir}/clusterdb %{shortname}-clusterdb %{install_dir}/bin/clusterdb %{pkgver}00 -update-alternatives --install %{_bindir}/createdb %{shortname}-createdb %{install_dir}/bin/createdb %{pkgver}00 -update-alternatives --install %{_bindir}/createuser %{shortname}-createuser %{install_dir}/bin/createuser %{pkgver}00 -update-alternatives --install %{_bindir}/dropdb %{shortname}-dropdb %{install_dir}/bin/dropdb %{pkgver}00 -update-alternatives --install %{_bindir}/dropuser %{shortname}-dropuser %{install_dir}/bin/dropuser %{pkgver}00 -update-alternatives --install %{_bindir}/pg_basebackup %{shortname}-pg_basebackup %{install_dir}/bin/pg_basebackup %{pkgver}00 -update-alternatives --install %{_bindir}/pg_config %{shortname}-pg_config %{install_dir}/bin/pg_config %{pkgver}00 -update-alternatives --install %{_bindir}/pg_dump %{shortname}-pg_dump %{install_dir}/bin/pg_dump %{pkgver}00 -update-alternatives --install %{_bindir}/pg_dumpall %{shortname}-pg_dumpall %{install_dir}/bin/pg_dumpall %{pkgver}00 -update-alternatives --install %{_bindir}/pg_restore %{shortname}-pg_restore %{install_dir}/bin/pg_restore %{pkgver}00 -update-alternatives --install %{_bindir}/reindexdb %{shortname}-reindexdb %{install_dir}/bin/reindexdb %{pkgver}00 -update-alternatives --install %{_bindir}/vacuumdb %{shortname}-vacuumdb %{install_dir}/bin/vacuumdb %{pkgver}00 - -update-alternatives --install %{_mandir}/man1/clusterdb.1 %{shortname}-clusterdbman %{install_dir}/share/man/man1/clusterdb.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/createdb.1 %{shortname}-createdbman %{install_dir}/share/man/man1/createdb.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/createuser.1 %{shortname}-createuserman %{install_dir}/share/man/man1/createuser.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/dropdb.1 %{shortname}-dropdbman %{install_dir}/share/man/man1/dropdb.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/dropuser.1 %{shortname}-dropuserman %{install_dir}/share/man/man1/dropuser.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/pg_basebackup.1 %{shortname}-pg_basebackupman %{install_dir}/share/man/man1/pg_basebackup.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/pg_dump.1 %{shortname}-pg_dumpman %{install_dir}/share/man/man1/pg_dump.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/pg_dumpall.1 %{shortname}-pg_dumpallman %{install_dir}/share/man/man1/pg_dumpall.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/pg_restore.1 %{shortname}-pg_restoreman %{install_dir}/share/man/man1/pg_restore.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/psql.1 %{shortname}-psqlman %{install_dir}/share/man/man1/psql.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/reindexdb.1 %{shortname}-reindexdbman %{install_dir}/share/man/man1/reindexdb.1 %{pkgver}00 -update-alternatives --install %{_mandir}/man1/vacuumdb.1 %{shortname}-vacuumdbman %{install_dir}/share/man/man1/vacuumdb.1 %{pkgver}00 - -%post libs -# Create link to linker configuration file -update-alternatives --install %{_sysconfdir}/ld.so.conf.d/%{realname}-pgdg-libs.conf %{shortname}-ld-conf %{install_dir}/share/%{service_name}-libs.conf %{pkgver}00 -# Update shared libs cache -/sbin/ldconfig - -%post devel -# Create links to pkgconfig configuration files -update-alternatives --install %{_libdir}/pkgconfig/libpq.pc %{shortname}-pkgconfig-libpq %{install_dir}/lib/pkgconfig/libpq.pc %{pkgver}00 -update-alternatives --install %{_libdir}/pkgconfig/libpgtypes.pc %{shortname}-pkgconfig-libpgtypes %{install_dir}/lib/pkgconfig/libpgtypes.pc %{pkgver}00 -update-alternatives --install %{_libdir}/pkgconfig/libecpg.pc %{shortname}-pkgconfig-libecpg %{install_dir}/lib/pkgconfig/libecpg.pc %{pkgver}00 -update-alternatives --install %{_libdir}/pkgconfig/libecpg_compat.pc %{shortname}-pkgconfig-libecpg_compat %{install_dir}/lib/pkgconfig/libecpg_compat.pc %{pkgver}00 - -# Drop alternatives entries for common binaries and man files -%postun -if [[ $1 -eq 0 ]] ; then - # Only remove these links if the package is completely removed from the system (vs. just being upgraded) - update-alternatives --remove %{shortname}-psql %{install_dir}/bin/psql - update-alternatives --remove %{shortname}-clusterdb %{install_dir}/bin/clusterdb - update-alternatives --remove %{shortname}-createdb %{install_dir}/bin/createdb - update-alternatives --remove %{shortname}-createuser %{install_dir}/bin/createuser - update-alternatives --remove %{shortname}-dropdb %{install_dir}/bin/dropdb - update-alternatives --remove %{shortname}-dropuser %{install_dir}/bin/dropuser - update-alternatives --remove %{shortname}-pg_basebackup %{install_dir}/bin/pg_basebackup - update-alternatives --remove %{shortname}-pg_config %{install_dir}/bin/pg_config - update-alternatives --remove %{shortname}-pg_dump %{install_dir}/bin/pg_dump - update-alternatives --remove %{shortname}-pg_dumpall %{install_dir}/bin/pg_dumpall - update-alternatives --remove %{shortname}-pg_restore %{install_dir}/bin/pg_restore - update-alternatives --remove %{shortname}-reindexdb %{install_dir}/bin/reindexdb - update-alternatives --remove %{shortname}-vacuumdb %{install_dir}/bin/vacuumdb - - update-alternatives --remove %{shortname}-clusterdbman %{install_dir}/share/man/man1/clusterdb.1 - update-alternatives --remove %{shortname}-createdbman %{install_dir}/share/man/man1/createdb.1 - update-alternatives --remove %{shortname}-createuserman %{install_dir}/share/man/man1/createuser.1 - update-alternatives --remove %{shortname}-dropdbman %{install_dir}/share/man/man1/dropdb.1 - update-alternatives --remove %{shortname}-dropuserman %{install_dir}/share/man/man1/dropuser.1 - update-alternatives --remove %{shortname}-pg_basebackupman %{install_dir}/share/man/man1/pg_basebackup.1 - update-alternatives --remove %{shortname}-pg_dumpallman %{install_dir}/share/man/man1/pg_dumpall.1 - update-alternatives --remove %{shortname}-pg_dumpman %{install_dir}/share/man/man1/pg_dump.1 - update-alternatives --remove %{shortname}-pg_restoreman %{install_dir}/share/man/man1/pg_restore.1 - update-alternatives --remove %{shortname}-psqlman %{install_dir}/share/man/man1/psql.1 - update-alternatives --remove %{shortname}-reindexdbman %{install_dir}/share/man/man1/reindexdb.1 - update-alternatives --remove %{shortname}-vacuumdbman %{install_dir}/share/man/man1/vacuumdb.1 -fi - -%postun libs -if [[ $1 -eq 0 ]] ; then - # Remove link to linker configuration file - update-alternatives --remove %{shortname}-ld-conf %{install_dir}/share/%{service_name}-libs.conf - # Update shared libs cache - /sbin/ldconfig -fi - -%postun devel -if [[ $1 -eq 0 ]] ; then - # Remove links to pkgconfig configuration files - update-alternatives --remove %{shortname}-pkgconfig-libpq %{install_dir}/lib/pkgconfig/libpq.pc - update-alternatives --remove %{shortname}-pkgconfig-libpgtypes %{install_dir}/lib/pkgconfig/libpgtypes.pc - update-alternatives --remove %{shortname}-pkgconfig-libecpg %{install_dir}/lib/pkgconfig/libecpg.pc - update-alternatives --remove %{shortname}-pkgconfig-libecpg_compat %{install_dir}/lib/pkgconfig/libecpg_compat.pc -fi - -################################################################################ - -%files -f pg_main.lst -%defattr(-,root,root) -%doc doc/KNOWN_BUGS doc/MISSING_FEATURES -%doc COPYRIGHT doc/bug.template -%doc README.rpm-dist -%{install_dir}/bin/pgbench -%{install_dir}/bin/clusterdb -%{install_dir}/bin/createdb -%{install_dir}/bin/createuser -%{install_dir}/bin/dropdb -%{install_dir}/bin/dropuser -%{install_dir}/bin/pg_archivecleanup -%{install_dir}/bin/pg_basebackup -%{install_dir}/bin/pg_config -%{install_dir}/bin/pg_dump -%{install_dir}/bin/pg_dumpall -%{install_dir}/bin/pg_isready -%{install_dir}/bin/pg_restore -%{install_dir}/bin/pg_rewind -%{install_dir}/bin/pg_test_fsync -%{install_dir}/bin/pg_test_timing -%{install_dir}/bin/pg_receivewal -%{install_dir}/bin/pg_upgrade -%{install_dir}/bin/pg_waldump -%{install_dir}/bin/psql -%{install_dir}/bin/reindexdb -%{install_dir}/bin/vacuumdb -%{install_dir}/share/errcodes.txt -%{install_dir}/share/man/man1/clusterdb.* -%{install_dir}/share/man/man1/createdb.* -%{install_dir}/share/man/man1/createuser.* -%{install_dir}/share/man/man1/dropdb.* -%{install_dir}/share/man/man1/dropuser.* -%{install_dir}/share/man/man1/pg_archivecleanup.1 -%{install_dir}/share/man/man1/pg_basebackup.* -%{install_dir}/share/man/man1/pg_config.* -%{install_dir}/share/man/man1/pg_dump.* -%{install_dir}/share/man/man1/pg_dumpall.* -%{install_dir}/share/man/man1/pg_isready.* -%{install_dir}/share/man/man1/pg_receivewal.* -%{install_dir}/share/man/man1/pg_restore.* -%{install_dir}/share/man/man1/pg_rewind.* -%{install_dir}/share/man/man1/pg_test_fsync.1 -%{install_dir}/share/man/man1/pg_test_timing.1 -%{install_dir}/share/man/man1/pg_upgrade.1 -%{install_dir}/share/man/man1/pg_waldump.1 -%{install_dir}/share/man/man1/pgbench.1 -%{install_dir}/share/man/man1/psql.* -%{install_dir}/share/man/man1/reindexdb.* -%{install_dir}/share/man/man1/vacuumdb.* -%{install_dir}/share/man/man3/* -%{install_dir}/share/man/man7/* - -%files docs -%defattr(-,root,root) -%doc doc/src/* -%doc *-A4.pdf -%doc src/tutorial -%doc doc/html - -%files contrib -%defattr(-,root,root) -%doc %{install_dir}/doc/extension/*.example -%{install_dir}/lib/_int.so -%{install_dir}/lib/adminpack.so -%{install_dir}/lib/amcheck.so -%{install_dir}/lib/auth_delay.so -%{install_dir}/lib/autoinc.so -%{install_dir}/lib/auto_explain.so -%{install_dir}/lib/bloom.so -%{install_dir}/lib/btree_gin.so -%{install_dir}/lib/btree_gist.so -%{install_dir}/lib/citext.so -%{install_dir}/lib/cube.so -%{install_dir}/lib/dblink.so -%{install_dir}/lib/earthdistance.so -%{install_dir}/lib/file_fdw.so* -%{install_dir}/lib/fuzzystrmatch.so -%{install_dir}/lib/insert_username.so -%{install_dir}/lib/isn.so -%{install_dir}/lib/hstore.so -%if %plperl -%{install_dir}/lib/hstore_plperl.so -%{install_dir}/lib/jsonb_plperl.so -%{install_dir}/share/extension/jsonb_plperl*.sql -%{install_dir}/share/extension/jsonb_plperl*.control -%endif -%{install_dir}/lib/passwordcheck.so -%{install_dir}/lib/pg_freespacemap.so -%{install_dir}/lib/pg_stat_statements.so -%{install_dir}/lib/pgrowlocks.so -%{install_dir}/lib/postgres_fdw.so -%{install_dir}/lib/sslinfo.so -%{install_dir}/lib/lo.so -%{install_dir}/lib/ltree.so -%{install_dir}/lib/moddatetime.so -%{install_dir}/lib/pageinspect.so -%{install_dir}/lib/pgcrypto.so -%{install_dir}/lib/pgstattuple.so -%{install_dir}/lib/pg_buffercache.so -%{install_dir}/lib/pg_prewarm.so -%{install_dir}/lib/pg_trgm.so -%{install_dir}/lib/pg_visibility.so -%{install_dir}/lib/refint.so -%{install_dir}/lib/seg.so -%{install_dir}/lib/tablefunc.so -%{install_dir}/lib/tcn.so -%{install_dir}/lib/test_decoding.so -%{install_dir}/lib/timetravel.so -%{install_dir}/lib/tsm_system_rows.so -%{install_dir}/lib/tsm_system_time.so -%{install_dir}/lib/unaccent.so -%if %xml -%{install_dir}/lib/pgxml.so -%endif -%if %uuid -%{install_dir}/lib/uuid-ossp.so -%endif -%{install_dir}/share/extension/adminpack* -%{install_dir}/share/extension/amcheck* -%{install_dir}/share/extension/autoinc* -%{install_dir}/share/extension/bloom* -%{install_dir}/share/extension/btree_gin* -%{install_dir}/share/extension/btree_gist* -%{install_dir}/share/extension/citext* -%{install_dir}/share/extension/cube* -%{install_dir}/share/extension/dblink* -%{install_dir}/share/extension/dict_int* -%{install_dir}/share/extension/dict_xsyn* -%{install_dir}/share/extension/earthdistance* -%{install_dir}/share/extension/file_fdw* -%{install_dir}/share/extension/fuzzystrmatch* -%{install_dir}/share/extension/hstore* -%{install_dir}/share/extension/insert_username* -%{install_dir}/share/extension/intagg* -%{install_dir}/share/extension/intarray* -%{install_dir}/share/extension/isn* -%{install_dir}/share/extension/lo* -%{install_dir}/share/extension/ltree* -%{install_dir}/share/extension/moddatetime* -%{install_dir}/share/extension/pageinspect* -%{install_dir}/share/extension/pg_buffercache* -%{install_dir}/share/extension/pg_freespacemap* -%{install_dir}/share/extension/pg_prewarm* -%{install_dir}/share/extension/pg_stat_statements* -%{install_dir}/share/extension/pg_trgm* -%{install_dir}/share/extension/pg_visibility* -%{install_dir}/share/extension/pgcrypto* -%{install_dir}/share/extension/pgrowlocks* -%{install_dir}/share/extension/pgstattuple* -%{install_dir}/share/extension/postgres_fdw* -%{install_dir}/share/extension/refint* -%{install_dir}/share/extension/seg* -%{install_dir}/share/extension/sslinfo* -%{install_dir}/share/extension/tablefunc* -%{install_dir}/share/extension/tcn* -%{install_dir}/share/extension/timetravel* -%{install_dir}/share/extension/tsm_system* -%{install_dir}/share/extension/unaccent* -%if %uuid -%{install_dir}/share/extension/uuid-ossp* -%endif -%{install_dir}/share/extension/xml2* -%{install_dir}/bin/oid2name -%{install_dir}/bin/vacuumlo -%{install_dir}/bin/pg_recvlogical -%{install_dir}/bin/pg_standby -%{install_dir}/share/man/man1/oid2name.1 -%{install_dir}/share/man/man1/pg_recvlogical.1 -%{install_dir}/share/man/man1/pg_standby.1 -%{install_dir}/share/man/man1/vacuumlo.1 - -%files libs -f pg_libpq5.lst -%defattr(-,root,root) -%{install_dir}/lib/libpq.so.* -%{install_dir}/lib/libecpg.so* -%{install_dir}/lib/libpgfeutils.a -%{install_dir}/lib/libpgtypes.so.* -%{install_dir}/lib/libecpg_compat.so.* -%{install_dir}/lib/libpqwalreceiver.so -%config(noreplace) %{install_dir}/share/%{service_name}-libs.conf - -%files server -f pg_server.lst -%defattr(-,root,root) -%config(noreplace) %{_initddir}/%{service_name} -%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name} -%config(noreplace) %{_unitdir}/%{realname}-%{majorver}.service -%config(noreplace) %{_tmpfilesdir}/%{realname}-%{majorver}.conf -%attr(755,%{username},%{groupname}) %dir %{_localstatedir}/run/%{realname} -%{_initddir}/%{tinyname}%{majorver} -%if %pam -%config(noreplace) %{_sysconfdir}/pam.d/%{realname}%{majorver} -%endif -%{install_dir}/bin/initdb -%{install_dir}/bin/pg_controldata -%{install_dir}/bin/pg_ctl -%{install_dir}/bin/pg_resetwal -%{install_dir}/bin/pg_verify_checksums -%{install_dir}/bin/postgres -%{install_dir}/bin/postmaster -%{install_dir}/share/man/man1/initdb.* -%{install_dir}/share/man/man1/pg_controldata.* -%{install_dir}/share/man/man1/pg_ctl.* -%{install_dir}/share/man/man1/pg_resetwal.* -%{install_dir}/share/man/man1/pg_verify_checksums.* -%{install_dir}/share/man/man1/postgres.* -%{install_dir}/share/man/man1/postmaster.* -%{install_dir}/share/postgres.bki -%{install_dir}/share/postgres.description -%{install_dir}/share/postgres.shdescription -%{install_dir}/share/system_views.sql -%{install_dir}/share/*.sample -%{install_dir}/share/timezonesets/* -%{install_dir}/share/tsearch_data/*.affix -%{install_dir}/share/tsearch_data/*.dict -%{install_dir}/share/tsearch_data/*.ths -%{install_dir}/share/tsearch_data/*.rules -%{install_dir}/share/tsearch_data/*.stop -%{install_dir}/share/tsearch_data/*.syn -%{install_dir}/lib/dict_int.so -%{install_dir}/lib/dict_snowball.so -%{install_dir}/lib/dict_xsyn.so -%{install_dir}/lib/euc2004_sjis2004.so -%{install_dir}/lib/pgoutput.so -%{install_dir}/lib/plpgsql.so -%dir %{install_dir}/share/extension -%{install_dir}/share/extension/plpgsql* - -%config(noreplace) %attr(700,%{username},%{groupname}) %{install_dir}/share/bash_profile - -%dir %{install_dir}/lib -%dir %{install_dir}/share -%attr(700,%{username},%{groupname}) %dir %{_sharedstatedir}/%{shortname} -%attr(700,%{username},%{groupname}) %dir %{_sharedstatedir}/%{shortname}/%{majorver} -%attr(700,%{username},%{groupname}) %dir %{_sharedstatedir}/%{shortname}/%{majorver}/data -%attr(700,%{username},%{groupname}) %dir %{_sharedstatedir}/%{shortname}/%{majorver}/backups -%{install_dir}/lib/*_and_*.so -%{install_dir}/share/conversion_create.sql -%{install_dir}/share/information_schema.sql -%{install_dir}/share/snowball_create.sql -%{install_dir}/share/sql_features.txt - -%files devel -f pg_devel.lst -%defattr(-,root,root) -%{install_dir}/include/* -%{install_dir}/bin/ecpg -%{install_dir}/lib/libpq.so -%{install_dir}/lib/libecpg.so -%{install_dir}/lib/libpq.a -%{install_dir}/lib/libpgcommon.a -%{install_dir}/lib/libecpg.a -%{install_dir}/lib/libecpg_compat.so -%{install_dir}/lib/libecpg_compat.a -%{install_dir}/lib/libpgport.a -%{install_dir}/lib/libpgtypes.so -%{install_dir}/lib/libpgtypes.a -%{install_dir}/lib/pgxs/* -%{install_dir}/lib/pkgconfig/* -%{install_dir}/share/man/man1/ecpg.* - -%if %llvm -%files llvmjit -%defattr(-,root,root) -%{install_dir}/lib/bitcode/* -%{install_dir}/lib/llvmjit.so -%{install_dir}/lib/llvmjit_types.bc -%endif - -%if %plperl -%files plperl -f pg_plperl.lst -%defattr(-,root,root) -%{install_dir}/lib/plperl.so -%{install_dir}/lib/hstore_plperl.so -%{install_dir}/share/extension/plperl* -%endif - -%if %pltcl -%files pltcl -f pg_pltcl.lst -%defattr(-,root,root) -%{install_dir}/lib/pltcl.so -%{install_dir}/share/extension/pltcl* -%endif - -%if %plpython -%files plpython3 -f pg_plpython.lst -%defattr(-,root,root) -%{install_dir}/lib/plpython*.so -%{install_dir}/lib/hstore_plpython3.so -%{install_dir}/lib/jsonb_plpython3.so -%{install_dir}/lib/ltree_plpython3.so -%{install_dir}/share/extension/jsonb_plpython* -%{install_dir}/share/extension/plpython3u* -%endif - -%if %test -%files test -%defattr(-,%{username},%{groupname}) -%attr(-,%{username},%{groupname}) %{install_dir}/lib/test/* -%attr(-,%{username},%{groupname}) %dir %{install_dir}/lib/test -%endif - -################################################################################ - -%changelog -* Sat Dec 09 2023 Anton Novojilov - 11.21-2 -- Rebuilt with the latest version of LLVM - -* Sun Oct 29 2023 Anton Novojilov - 11.21-1 -- Improved init script compatibility with systemd - -* Wed Sep 20 2023 Anton Novojilov - 11.21-0 -- https://www.postgresql.org/docs/11/release-11-21.html - -* Wed Sep 20 2023 Anton Novojilov - 11.20-0 -- https://www.postgresql.org/docs/11/release-11-20.html - -* Wed Sep 20 2023 Anton Novojilov - 11.19-0 -- https://www.postgresql.org/docs/11/release-11-19.html - -* Thu Feb 09 2023 Anton Novojilov - 11.18-0 -- https://www.postgresql.org/docs/11/release-11-18.html - -* Thu Aug 18 2022 Anton Novojilov - 11.17-0 -- https://www.postgresql.org/docs/11/release-11-17.html - -* Thu May 19 2022 Anton Novojilov - 11.16-0 -- https://www.postgresql.org/docs/11/release-11-16.html - -* Thu Apr 07 2022 Anton Novojilov - 11.15-0 -- https://www.postgresql.org/docs/11/release-11-15.html - -* Wed Nov 17 2021 Anton Novojilov - 11.14-0 -- https://www.postgresql.org/docs/11/release-11-14.html - -* Sat Sep 04 2021 Anton Novojilov - 11.13-0 -- https://www.postgresql.org/docs/11/release-11-13.html - -* Sat Sep 04 2021 Anton Novojilov - 11.12-0 -- https://www.postgresql.org/docs/11/release-11-12.html - -* Thu Apr 01 2021 Anton Novojilov - 11.11-1 -- Changed bash_profile installation routine - -* Mon Feb 15 2021 Anton Novojilov - 11.11-0 -- https://www.postgresql.org/docs/11/release-11-11.html - -* Tue Dec 29 2020 Anton Novojilov - 11.10-0 -- https://www.postgresql.org/docs/11/release-11-10.html - -* Thu Aug 13 2020 Anton Novojilov - 11.9-0 -- https://www.postgresql.org/docs/11/release-11-9.html - -* Sat May 23 2020 Anton Novojilov - 11.8-0 -- https://www.postgresql.org/docs/11/release-11-8.html -- Spec improvements - -* Sat Mar 07 2020 Anton Novojilov - 11.6-1 -- Fixed bug in init script - -* Mon Jan 20 2020 Anton Novojilov - 11.6-0 -- Updated to the latest stable release - -* Sun Aug 18 2019 Anton Novojilov - 11.5-0 -- Updated to the latest stable release - -* Sun Aug 18 2019 Anton Novojilov - 11.4-0 -- Updated to the latest stable release - -* Tue May 14 2019 Anton Novojilov - 11.3-0 -- Updated to the latest stable release - -* Tue Feb 26 2019 Anton Novojilov - 11.2-0 -- Updated to the latest stable release - -* Sat Nov 17 2018 Anton Novojilov - 11.1-0 -- Updated to the latest stable release - -* Sat Nov 17 2018 Anton Novojilov - 11.0-0 -- Initial build diff --git a/specs/postgresql-11/slony1.spec b/specs/postgresql-11/slony1.spec deleted file mode 100644 index eff54d7f1..000000000 --- a/specs/postgresql-11/slony1.spec +++ /dev/null @@ -1,181 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%global __perl_requires %{SOURCE2} - -%define maj_ver 2.2 -%define pg_maj_ver 11 -%define pg_high_ver 11 -%define pg_low_fullver 11.18 -%define pg_dir %{_prefix}/pgsql-%{pg_high_ver} -%define realname slony1 -%define username postgres -%define groupname postgres - -################################################################################ - -Summary: Master to multiple slaves replication system for PostgreSQL -Name: %{realname}-%{pg_maj_ver} -Version: 2.2.11 -Release: 0%{?dist} -License: BSD -Group: Applications/Databases -URL: https://www.slony.info - -Source0: https://www.slony.info/downloads/%{maj_ver}/source/%{realname}-%{version}.tar.bz2 -Source2: filter-requires-perl-Pg.sh -Source3: %{realname}.init -Source4: %{realname}.sysconfig -Source5: %{realname}.service - -Source100: checksum.sha512 - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: make gcc byacc flex chrpath -BuildRequires: postgresql%{pg_maj_ver}-devel = %{pg_low_fullver} -BuildRequires: postgresql%{pg_maj_ver}-server = %{pg_low_fullver} -BuildRequires: postgresql%{pg_maj_ver}-libs = %{pg_low_fullver} - -Requires: postgresql%{pg_maj_ver}-server perl-DBD-Pg kaosv >= 2.16 -Requires: systemd - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description -Slony-I is a "master to multiple slaves" replication system for PostgreSQL with -cascading and failover. - -The big picture for the development of Slony-I is to build a master-slave system -that includes all features and capabilities needed to replicate large databases -to a reasonably limited number of slave systems. - -Slony-I is a system for data centers and backup sites, where the normal mode of -operation is that all nodes are available. - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{realname}-%{version} - -%build - -CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS -CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS -CPPFLAGS="${CPPFLAGS} -I%{_includedir}/et -I%{_includedir}" ; export CPPFLAGS -CFLAGS="${CFLAGS} -I%{_includedir}/et -I%{_includedir}" ; export CFLAGS - -export LIBNAME=%{_lib} - -%configure --prefix=%{pg_dir} \ - --includedir %{pg_dir}/include \ - --with-pgconfigdir=%{pg_dir}/bin \ - --libdir=%{pg_dir}/lib \ - --with-perltools=%{pg_dir}/bin \ - --sysconfdir=%{_sysconfdir}/%{realname}-%{pg_maj_ver} \ - --datadir=%{pg_dir}/share \ - --with-pglibdir=%{pg_dir}/lib - -%{__make} %{?_smp_mflags} -%{__make} %{?_smp_mflags} -C tools - -%install -rm -rf %{buildroot} - -%{make_install} - -install -dm 755 %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver} -install -pm 644 share/slon.conf-sample %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon.conf -install -pm 644 tools/altperl/slon_tools.conf-sample %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon_tools.conf - -# Fix the log path -sed "s:\([$]LOGDIR = '/var/log/slony1\):\1-%{pg_maj_ver}:" -i %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon_tools.conf - -install -dm 755 %{buildroot}%{_sysconfdir}/sysconfig -install -pm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{realname}-%{pg_maj_ver} - -chmod 644 COPYRIGHT UPGRADING SAMPLE RELEASE - -install -dm 755 %{buildroot}%{_initrddir} -install -pm 755 %{SOURCE3} %{buildroot}%{_initrddir}/%{realname}-%{pg_maj_ver} - -install -dm 755 %{buildroot}%{_unitdir} -install -pm 644 %{SOURCE5} %{buildroot}%{_unitdir}/%{realname}-%{pg_maj_ver}.service - -sed -i 's/{{PG_MAJOR_VERSION}}/%{pg_maj_ver}/g' %{buildroot}%{_unitdir}/%{realname}-%{pg_maj_ver}.service -sed -i 's/{{PG_MAJOR_VERSION}}/%{pg_maj_ver}/g' %{buildroot}%{_initddir}/%{realname}-%{pg_maj_ver} -sed -i 's/{{PG_HIGH_VERSION}}/%{pg_high_ver}/g' %{buildroot}%{_initddir}/%{realname}-%{pg_maj_ver} - -pushd tools - %{make_install} - - rm -f %{buildroot}%{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon_tools.conf-sample - rm -f %{buildroot}%{_datadir}/pgsql/*.sql - rm -f %{buildroot}%{_libdir}/%{realname}_funcs.so - - chrpath --delete %{buildroot}%{pg_dir}/bin/slonik - chrpath --delete %{buildroot}%{pg_dir}/bin/slon - chrpath --delete %{buildroot}%{pg_dir}/bin/slony_logshipper - chrpath --delete %{buildroot}%{pg_dir}/lib/slony1_funcs.%{version}.so -popd - -install -dm 755 %{buildroot}%{_localstatedir}/log/%{realname}-%{pg_maj_ver} - -%clean -rm -rf %{buildroot} - -%post -if [[ $1 -eq 1 ]] ; then - systemctl enable %{realname}-%{pg_maj_ver}.service &>/dev/null || : -fi - -%preun -if [[ $1 -eq 0 ]] ; then - systemctl --no-reload disable %{realname}-%{pg_maj_ver}.service &>/dev/null || : - systemctl stop %{realname}-%{pg_maj_ver}.service &>/dev/null || : -fi - -%postun -if [[ $1 -ge 1 ]] ; then - systemctl daemon-reload &>/dev/null || : -fi - -################################################################################ - -%files -%defattr(-,root,root,-) -%doc COPYRIGHT UPGRADING INSTALL SAMPLE RELEASE -%{pg_dir}/bin/slon* -%{pg_dir}/lib/slon* -%{pg_dir}/share/slon* -%dir %{_localstatedir}/log/%{realname}-%{pg_maj_ver} -%config(noreplace) %{_sysconfdir}/sysconfig/%{realname}-%{pg_maj_ver} -%config(noreplace) %{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon.conf -%config(noreplace) %{_sysconfdir}/%{realname}-%{pg_maj_ver}/slon_tools.conf -%attr(755,root,root) %{_initrddir}/%{realname}-%{pg_maj_ver} -%attr(755,root,root) %{_unitdir}/%{realname}-%{pg_maj_ver}.service - -################################################################################ - -%changelog -* Thu Sep 21 2023 Anton Novojilov - 2.2.11-0 -- Add support for PG 15 -- Remove unused autoconf check -- Fix typo in admin guide - -* Thu Feb 18 2021 Anton Novojilov - 2.2.10-0 -- Remove unsupported warning with PG13 - -* Wed May 29 2019 Anton Novojilov - 2.2.7-1 -- Improved init script -- Improved systemd unit - -* Sat Nov 17 2018 Anton Novojilov - 2.2.7-0 -- Initial build