diff --git a/Cython/Cython-0.29.21.tar.gz b/Cython/Cython-0.29.21.tar.gz deleted file mode 100644 index a7887324c8..0000000000 Binary files a/Cython/Cython-0.29.21.tar.gz and /dev/null differ diff --git a/Cython/Makefile b/Cython/Makefile deleted file mode 100644 index 25bcfb5e7d..0000000000 --- a/Cython/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for Any Package -# - -include unibuild/unibuild.make diff --git a/Cython/unibuild-packaging/rpm/Cython.spec b/Cython/unibuild-packaging/rpm/Cython.spec deleted file mode 100644 index 106830be60..0000000000 --- a/Cython/unibuild-packaging/rpm/Cython.spec +++ /dev/null @@ -1,101 +0,0 @@ -%global srcname Cython -%global upname cython - -%bcond_without tests - -Name: Cython -Version: 0.29.21 -%global upver %{version} -Release: 4%{?dist} -Summary: Language for writing Python extension modules - -License: ASL 2.0 -URL: http://www.cython.org -Source: %{srcname}-%{version}.tar.gz - -# Partially work around issues with class and static methods -# See https://bugzilla.redhat.com/show_bug.cgi?id=1788506 -# Mostly backported from upstream: https://github.com/cython/cython/pull/3106 -# This also: -# - Removes staticmethod optimizations for normal functions -# - Removes failing test for staticmethod fused functions, which still fail -# See also: https://github.com/cython/cython/issues/3614 -#Patch3106: class-static-method-workaround.patch - -BuildRequires: gcc - -%global _description \ -This is a development version of Pyrex, a language\ -for writing Python extension modules. - -%description %{_description} - -%package -n python3-%{srcname} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} -Conflicts: python2-%{srcname} < 0.28.4-2 -Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release} -Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} -Obsoletes: Cython < %{?epoch:%{epoch}:}%{version}-%{release} -BuildRequires: python3-devel -BuildRequires: python3-setuptools - -# A small templating library is bundled in Cython/Tempita -# Upstream version 0.5.2 is available from https://pypi.org/project/Tempita -# but the bundled copy is patched and reorganized. -# Upstream homepage is inaccessible. -Provides: bundled(python3dist(tempita)) - -%description -n python3-%{srcname} %{_description} - -Python 3 version. - -%package -n emacs-cython-mode -Summary: A major mode for editing Cython source files in Emacs -BuildArch: noarch -BuildRequires: emacs -Requires: emacs(bin) >= %{_emacs_version} - -%description -n emacs-cython-mode -cython-mode is an Emacs major mode for editing Cython source files. - -%prep -%autosetup -n %{srcname}-%{upver} -p1 - -%build -%py3_build - -# emacs-cython-mode build -echo ";; -(require 'cython-mode)" > cython-mode-init.el -cp -p Tools/cython-mode.el . -%{_emacs_bytecompile} *.el - - -%install -%py3_install -rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests - -# emacs-cython-mode install -mkdir -p %{buildroot}%{_emacs_sitelispdir}/ -cp -p cython-mode.el cython-mode.elc %{buildroot}%{_emacs_sitelispdir}/ -mkdir -p %{buildroot}%{_emacs_sitestartdir}/ -cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir}/ - - -%files -n python3-%{srcname} -%license LICENSE.txt -%doc *.txt Demos Tools -%{_bindir}/cython -%{_bindir}/cygdb -%{_bindir}/cythonize -%{python3_sitearch}/%{srcname}-*.egg-info/ -%{python3_sitearch}/%{srcname}/ -%{python3_sitearch}/pyximport/ -%{python3_sitearch}/%{upname}.py -%{python3_sitearch}/__pycache__/%{upname}.* - -%files -n emacs-cython-mode -%license LICENSE.txt -%{_emacs_sitelispdir}/cython*.el* -%{_emacs_sitestartdir}/cython*.el* diff --git a/dublin-traceroute/unibuild-packaging/rpm/dublin-traceroute.spec b/dublin-traceroute/unibuild-packaging/rpm/dublin-traceroute.spec index b2dde6e8ac..1d74de6ee9 100644 --- a/dublin-traceroute/unibuild-packaging/rpm/dublin-traceroute.spec +++ b/dublin-traceroute/unibuild-packaging/rpm/dublin-traceroute.spec @@ -28,9 +28,7 @@ Requires: jsoncpp Requires: openssl BuildRequires: cmake -#TODO: They really want this; EL7 doesn't have it. -#BuildRequires: gcc-c++ >= 4.9 -BuildRequires: gcc-c++ +BuildRequires: gcc-c++ >= 4.9 BuildRequires: libpcap-devel BuildRequires: libtins-devel BuildRequires: jsoncpp-devel diff --git a/ethr/unibuild-packaging/rpm/ethr.spec b/ethr/unibuild-packaging/rpm/ethr.spec index 43fab7215a..eb8f569f37 100644 --- a/ethr/unibuild-packaging/rpm/ethr.spec +++ b/ethr/unibuild-packaging/rpm/ethr.spec @@ -60,13 +60,6 @@ cleanup() } trap cleanup EXIT -%if 0%{?el7} -## EL7 has problems with its git that cause module fetches not to work. -## Use Golang's proxy to do it instead. -#export GO111MODULE=on -#export GOPROXY="https://proxy.golang.org" -%endif - go mod init microsoft.com/ethr go mod tidy -e go get ./... diff --git a/iperf/unibuild-packaging/rpm/iperf.spec b/iperf/unibuild-packaging/rpm/iperf.spec index 11906410d8..f3f73c52f6 100644 --- a/iperf/unibuild-packaging/rpm/iperf.spec +++ b/iperf/unibuild-packaging/rpm/iperf.spec @@ -31,12 +31,7 @@ jitter, datagram loss. %patch0 -p1 %build -%if 0%{?el9} -# The macro isn't present on EL9. autoconf -%else -%{__autoconf} -%endif %configure %{__make} %{?_smp_mflags} diff --git a/libtins/.gitignore b/libtins/.gitignore deleted file mode 100644 index 77f4c36cba..0000000000 --- a/libtins/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.cmake diff --git a/libtins/Makefile b/libtins/Makefile deleted file mode 100644 index 25bcfb5e7d..0000000000 --- a/libtins/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for Any Package -# - -include unibuild/unibuild.make diff --git a/libtins/libtins-4.2.tar.gz b/libtins/libtins-4.2.tar.gz deleted file mode 100644 index f323085819..0000000000 Binary files a/libtins/libtins-4.2.tar.gz and /dev/null differ diff --git a/libtins/unibuild-packaging/rpm/libtins.spec b/libtins/unibuild-packaging/rpm/libtins.spec deleted file mode 100644 index c0e58eef87..0000000000 --- a/libtins/unibuild-packaging/rpm/libtins.spec +++ /dev/null @@ -1,94 +0,0 @@ -# -# RPM Spec for libtins -# - -%define short tins - -Name: lib%{short} -Version: 4.2 -Release: 1%{?dist} -Summary: C++ library for manipulating raw network packets -License: BSD-2-Clause - -BuildArch: %(uname -m) -Group: System/Libraries -Provides: %{name} = %{version}-%{release} -Prefix: %{_prefix} - -# Whoever produces this does a good job staying anonymous -# Vendor: -URL: http://libtins.github.io/ -Source: %{name}-%{version}.tar.gz - -Requires: libpcap -Requires: openssl - -BuildRequires: cmake -BuildRequires: pkgconfig -BuildRequires: gcc-c++ -BuildRequires: libpcap-devel -BuildRequires: openssl-devel - - -%description -The library's main purpose is to provide the C++ developer an easy, -efficient, platform and endianess-independent way to create tools which -need to send, receive and manipulate specially crafted packets. - - -# Don't need this. -%global debug_package %{nil} - - -%prep -%setup -q - - -%build -mkdir build -cd build -cmake ../ \ - -DLIBTINS_ENABLE_CXX11=1 \ - "-DCMAKE_INSTALL_PREFIX=${RPM_BUILD_ROOT}/%{_usr}" -make - - -%install -cd build -%makeinstall - -# This is unneeded -rm -rf "${RPM_BUILD_ROOT}/%{_usr}/lib/cmake" - -# RPM wants it elsewhere. -mv "${RPM_BUILD_ROOT}/%{_usr}/lib" "${RPM_BUILD_ROOT}/%{_libdir}" - -# The build process leaves some paths from the build around. -fgrep -lr "${RPM_BUILD_ROOT}" "${RPM_BUILD_ROOT}" \ - | xargs sed -i -e "s|${RPM_BUILD_ROOT}||g" - - - -%files -%defattr(-,root,root) -%license LICENSE -%{_libdir}/%{name}.so* -%{_libdir}/pkgconfig/* - - -# -# Development Subpackage -# - -%package -n %{name}-devel -Summary: Header files for %{name} development -Group: Development/Libraries -Provides: %{name}-devel = %{version}-%{release} -Requires: %{name} = %{version}-%{release} - -%description -n %{name}-devel -Header files for %{name} development - -%files -n %{name}-devel -%defattr(-,root,root) -%{_includedir}/%{short} diff --git a/mod_wsgi/Makefile b/mod_wsgi/Makefile deleted file mode 100644 index 25bcfb5e7d..0000000000 --- a/mod_wsgi/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for Any Package -# - -include unibuild/unibuild.make diff --git a/mod_wsgi/mod_wsgi-4.6.5.tar.gz b/mod_wsgi/mod_wsgi-4.6.5.tar.gz deleted file mode 100644 index 0ddc26caa6..0000000000 Binary files a/mod_wsgi/mod_wsgi-4.6.5.tar.gz and /dev/null differ diff --git a/mod_wsgi/unibuild-packaging/rpm/mod_wsgi.spec b/mod_wsgi/unibuild-packaging/rpm/mod_wsgi.spec deleted file mode 100644 index cfa5c83f3c..0000000000 --- a/mod_wsgi/unibuild-packaging/rpm/mod_wsgi.spec +++ /dev/null @@ -1,83 +0,0 @@ -# -# Spec for mod_wsgi based on the one in RHEL -# - -%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} -%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}} - -# NOTE: This used to echo 'missing-httpd-devel' if the devel package -# wasn't installed, but since we expand this file to determine the -# dependencies, something sane has to go there to keep RPM happy. -%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0)}} - -# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 -%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}} -%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}} - -Name: mod_wsgi -Version: 4.6.5 -Release: 1%{?dist} -Summary: A WSGI interface for Python web applications in Apache -Group: System Environment/Libraries -License: ASL 2.0 -URL: http://modwsgi.org -Source0: %{name}-%{version}.tar.gz -Source1: wsgi.conf -BuildRequires: httpd-devel -BuildRequires: %{_pscheduler_python}-devel -BuildRequires: autoconf - -Requires: httpd-mmn = %{_httpd_mmn} - -# Suppress auto-provides for module DSO -%{?filter_provides_in: %filter_provides_in %{_httpd_moddir}/.*\.so$} -%{?filter_setup} - -%description -The mod_wsgi adapter is an Apache module that provides a WSGI compliant -interface for hosting Python based web applications within Apache. The -adapter is written completely in C code against the Apache C runtime and -for hosting WSGI applications within Apache has a lower overhead than using -existing WSGI adapters for mod_python or CGI. - - -# Don't need this. -%global debug_package %{nil} - -%prep -%setup -q - -%build -# Regenerate configure for -coredump patch change to configure.in -autoconf -export LDFLAGS="$RPM_LD_FLAGS -L%{_libdir}" -export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" -./configure \ - --enable-shared \ - --with-apxs=%{_httpd_apxs} \ - --with-python=%(command -v %{_pscheduler_python}) -make %{?_smp_mflags} - - -%install -rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT LIBEXECDIR=%{_httpd_moddir} - -install -d -m 755 $RPM_BUILD_ROOT%{_httpd_modconfdir} -%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}" -# httpd <= 2.2.x -install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_confdir}/wsgi.conf -%else -# httpd >= 2.4.x -install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-wsgi.conf -%endif - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root,-) -# TODO: (Minor) See why this doesn't work. -# %doc LICENCE README -%config(noreplace) %{_httpd_modconfdir}/*.conf -%{_httpd_moddir}/mod_wsgi.so diff --git a/mod_wsgi/wsgi.conf b/mod_wsgi/wsgi.conf deleted file mode 100644 index 19f356756b..0000000000 --- a/mod_wsgi/wsgi.conf +++ /dev/null @@ -1 +0,0 @@ -LoadModule wsgi_module modules/mod_wsgi.so diff --git a/oniguruma/Makefile b/oniguruma/Makefile deleted file mode 100644 index 413b497973..0000000000 --- a/oniguruma/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# -# Makefile for Any Package -# - -AUTO_TARBALL := 1 - -include unibuild/unibuild.make diff --git a/oniguruma/oniguruma-6.9.6.tar.gz b/oniguruma/oniguruma-6.9.6.tar.gz deleted file mode 100644 index ce67e84f9c..0000000000 Binary files a/oniguruma/oniguruma-6.9.6.tar.gz and /dev/null differ diff --git a/oniguruma/unibuild-packaging/deb/changelog b/oniguruma/unibuild-packaging/deb/changelog deleted file mode 100644 index 39e383a272..0000000000 --- a/oniguruma/unibuild-packaging/deb/changelog +++ /dev/null @@ -1,330 +0,0 @@ -oniguruma (6.9.6-1~bpo18+1) perfsonar-release; urgency=medium - - * Backport to bionic. - * Using original name for source package. - - -- Antoine Delvaux Sun, 23 Oct 2022 17:38:17 +0000 - -libonig (6.9.1-1~bpo9+1) perfsonar-release; urgency=medium - - * Backport to stretch. - - -- Antoine Delvaux Tue, 24 Nov 2020 17:24:59 +0000 - -libonig (6.9.1-1) unstable; urgency=medium - - * New upstream release: - - Refresh symbols file. - - -- Jörg Frings-Fürst Fri, 21 Dec 2018 14:09:48 +0100 - -libonig (6.9.0-1) unstable; urgency=medium - - * New upstream release. - - Refresh symbols file. - * debian/control: - - Change VCS-* to point to the new repository. - * Declare compliance with Debian Policy 4.2.1 (No changes needed). - - -- Jörg Frings-Fürst Thu, 06 Sep 2018 07:14:48 +0200 - -libonig (6.8.2-1) unstable; urgency=medium - - * New upstream release (Closes: #897250). - - Refresh symbols file. - * Declare compliance with Debian Policy 4.1.4 (No changes needed). - - -- Jörg Frings-Fürst Fri, 04 May 2018 18:41:47 +0200 - -libonig (6.8.1-2) unstable; urgency=medium - - * Upload to unstable. - - -- Jörg Frings-Fürst Tue, 01 May 2018 09:45:05 +0200 - -libonig (6.8.1-1) experimental; urgency=medium - - * New upstream release. - - Refresh symbols file. - - Refresh debian/copyright. - * Rename libonig4 to libonig5. - - debian/control: - + Rename binaray package. - + Set Depends to libonig5. - - Rename debian/libonig4* to debian/libonig5* - - debian/rules: - + Rename liboing4 to libonig5. - * Migrate to debhelper 11: - - Change debian/compat to 11. - - Bump minimum debhelper version in debian/control to >= 11. - * Declare compliance with Debian Policy 4.1.3 (No changes needed). - - -- Jörg Frings-Fürst Wed, 21 Mar 2018 19:56:23 +0100 - -libonig (6.7.0-1) unstable; urgency=medium - - * New upstream release. - - Refresh symbols file. - * Change to my new email address: - - debian/control - - debian/copyright - * debian/changelog: - - Remove trailing whitespaces. - * Declare compliance with Debian Policy 4.1.2.0. (No changes needed). - - -- Jörg Frings-Fürst Thu, 14 Dec 2017 17:26:05 +0100 - -libonig (6.6.1-1) unstable; urgency=medium - - * New upstream release. - - Refresh symbols file. - * Declare compliance with Debian Policy 4.1.0.0. (No changes needed). - * Remove missing README.ja from debian/libonig-dev.docs and - debian/libonig-dev.doc-base. - - -- Jörg Frings-Fürst Fri, 01 Sep 2017 19:57:42 +0200 - -libonig (6.5.0-1) unstable; urgency=medium - - * New upstream release. - + Refresh symbols file. - - -- Jörg Frings-Fürst Sun, 06 Aug 2017 19:31:50 +0200 - -libonig (6.4.0-1) unstable; urgency=medium - - * New upstream release. - + Refresh symbols file. - * Remove not longer needed patches. - - -- Jörg Frings-Fürst Sun, 23 Jul 2017 11:51:31 +0200 - -libonig (6.3.0-1) unstable; urgency=medium - - * New upstream release. - - Update symbols file. - - Refresh patches. - * Drop dh-autoreconf from both build-depends and dh --with arguments. - because this is all defaults when using dh compat 10. - * debian/copyright: Add year 2017. - * Remove upstream applied debian/patches/0500-CVE-2017-922[4-9].patch. - * Use the automatic debug symbol packages: - - Remove libonig4-dbg section from debian/control. - - Remove override_dh_strip from debian/rules. - * New README.source to explain the branching model used. - * Declare compliance with Debian Policy 4.0.0. (No changes needed). - - -- Jörg Frings-Fürst Sun, 25 Jun 2017 09:55:31 +0200 - -libonig (6.1.3-2) unstable; urgency=high - - * New debian/patches/0500-CVE-2017-922[4-9].patch: - - Cherrypicked from upstream to correct: - + CVE-2017-9224 (Closes: #863312) - + CVE-2017-9225 (Closes: #863313) - + CVE-2017-9226 (Closes: #863314) - + CVE-2017-9227 (Closes: #863315) - + CVE-2017-9228 (Closes: #863316) - + CVE-2017-9229 (Closes: #863318) - - -- Jörg Frings-Fürst Sat, 27 May 2017 12:05:50 +0200 - -libonig (6.1.3-1) unstable; urgency=medium - - * New upstream release. - - -- Jörg Frings-Fürst Thu, 15 Dec 2016 09:23:30 +0100 - -libonig (6.1.2-1) unstable; urgency=medium - - * New upstream release. - * debian/control: - - Bump debhelper B-D minimum version to 10. - * New debian/patches/0100-source_typos.patch. - - -- Jörg Frings-Fürst Wed, 09 Nov 2016 23:16:44 +0100 - -libonig (6.1.1-2) unstable; urgency=medium - - * Upload to unstable. - - -- Jörg Frings-Fürst Sun, 04 Sep 2016 21:26:20 +0200 - -libonig (6.1.1-1) experimental; urgency=medium - - * New upstream release. - - -- Jörg Frings-Fürst Sat, 03 Sep 2016 02:42:58 +0200 - -libonig (6.1.0-1) experimental; urgency=medium - - * New upstream release. - - NEW API: onig_scan(). - * debian/control: - - To match with the soname rename packages from liboing3 to libonig4. - * debian/rules: - - Rename liboing3 to libonig4. - * Renew debian/symbols. - - -- Jörg Frings-Fürst Wed, 31 Aug 2016 04:18:16 +0200 - -libonig (6.0.0-1) experimental; urgency=medium - - * New upstream release. - * debian/control: - - Remove dpkg from libonig2-dbg Pre-Depends because redundance - with ${misc:Pre-Depends}. - - Replace homepage to the new loacation. - - To match with the soname rename packages from liboing2 to libonig3. - - Bump Standards-Version to 3.9.8 (no changes required). - - Change Vcs-* to secure URIs. - * debian/rules: - - Rename liboing2 to libonig3. - * debian/watch: - - Move to github. - - Bump version to 4 (no changes required). - * debian/copyright: - - Replace homepage and upstream mail address. - - Add year 2016. - * Remove the not Multi-Arch conform file /usr/bin/onig-config and - the man page. - * Remove now useless debian/libonig3-dbg.maintscript. - * Set compat level to 10. - - -- Jörg Frings-Fürst Sat, 14 May 2016 17:53:39 +0200 - -libonig (5.9.6-1) unstable; urgency=medium - - * New upstream release. - * Refresh debian/patches/001-changes_build_sys.diff. - * Refresh debian/symbols. - * debian/rules: - - rewrite override_dh_strip. - - Add dpkg-gensymbols to generate symbol file(s) - on every build. - * debian/copyright: - Add year 2015 to my entry at debian/*. - * debian/control: - - Remove useless Depends ${shlibs:Depends} from libonig2-dbg - and libonig-dev - - Add dpkg and ${misc:Pre-Depends} to Depends of libonig2-dbg - to prevent error on upgrade wheezy to jessie (Closes: #769556). - - Bump Standards-Version to 3.9.6 (no changes required). - - Add Vcs-* fields pointed to alioth. - - Remove deprecated hardening-wrapper from Build-Depends - (Closes: #774485). - - Rewrite Descriptions (Closes: #774520). - * debian/*.postrm, debian/*.postinst, debian/*.preinst: - - Delete them and move the dpkg-maintscript-helper to - debian/libonig2-dbg.maintscript. - * New debian/libonig2-dbg.maintscript: - - Add symlink_to_dir calls. - - Change version in calls of symlink_to_dir to 5.9.6-1~. - * Add Vcs - * Add missing MNU changelog entries. Both don't provide a patch with - the changes and the first one causes a new RC-Bug. - - -- Jörg Frings-Fürst Mon, 05 Jan 2015 10:49:52 +0100 - -libonig (5.9.5-3.2) unstable; urgency=medium - - * Non-maintainer upload. - * Fix version for calls to dpkg-maintscript-helper symlink_to_dir. - (closes: #769556). - - -- Ivo De Decker Sun, 28 Dec 2014 12:11:12 +0100 - -libonig (5.9.5-3.1) unstable; urgency=high - - * Non-maintainer upload. - * Add missing pre-dependency on dpkg for dpkg-maintscript-helper - symlink_to_dir (closes: #769556). - - -- Julien Cristau Sat, 15 Nov 2014 11:53:45 +0100 - -libonig (5.9.5-3) unstable; urgency=medium - - * Add debian/libonig2-dbg.(preinst|postinst|postrm) to prevent - error on upgrade wheezy to jessie. (Closes: #768267) - - -- Jörg Frings-Fürst Thu, 06 Nov 2014 21:32:20 +0100 - -libonig (5.9.5-2) unstable; urgency=medium - - * rename debian/*.doc-base - * add html files to doc - * change debian/rules for hardening - * remove Multi-Arch from libonig-dev (Closes: #747897) - - -- Jörg Frings-Fürst Tue, 13 May 2014 10:25:38 +0200 - -libonig (5.9.5-1) unstable; urgency=medium - - * remove *.so.* files from libonig2-dbg - (same files as in libonig2) - * add debian/libonig-dev.doc-base - * add debian/symbols - * rewrite debian/copyright - * rewrite debian/rules (Closes: #645940) - * patch buildsystem (Closes: #734683) - * change lib version to 2.1.0 - * Bump compat to 9 - * Update to upstream version 5.9.5 (Closes: #661616) - * Bump Standarts to 3.9.5 - * New Maintainer (Closes: #747187) - - -- Jörg Frings-Fürst Wed, 07 May 2014 16:39:54 +0200 - -libonig (5.9.1-1) unstable; urgency=low - - [ Max Kellermann ] - * new upstream release - * acknowledge NMU, thanks Laurent (closes: #426355) - * run test suite after build - * added watch file - * bumped Standards-Version to 3.7.3 - * added homepage header to debian/control - * priority "extra" - - -- Alexander Wirt Mon, 07 Jan 2008 11:46:27 +0100 - -libonig (5.9.0-0.1) unstable; urgency=low - - * Non-maintainer upload. - * New upstream release (Closes: #426355) - * debian/control: - - Use binary:Version instead of Source-Version - * debian/rules: - - Don't hide make distclean error - - Fix copy of config.{sub,guess} - - Remove deprecated DH_COMPAT and use compat file instead - - -- Laurent Bigonville Sat, 04 Aug 2007 15:07:34 +0200 - -libonig (5.5.2-1) unstable; urgency=low - - * new upstream release - - -- Max Kellermann Wed, 14 Feb 2007 23:12:29 +0100 - -libonig (5.5.0-1) unstable; urgency=low - - [ Max Kellermann ] - * new upstream release - * update config.{sub,guess} in debian/rules - * removed libonig.la - - -- Alexander Wirt Wed, 6 Dec 2006 20:51:10 +0100 - -libonig (5.2.0-1) unstable; urgency=low - - * new upstream release - * updated copyright file since license has been changed to BSD - - -- Max Kellermann Wed, 15 Nov 2006 09:32:24 +0100 - -libonig (4.4.4-1) unstable; urgency=low - - * initial debian release (Closes: #388412) - - -- Max Kellermann Wed, 20 Sep 2006 12:17:40 +0200 diff --git a/oniguruma/unibuild-packaging/deb/compat b/oniguruma/unibuild-packaging/deb/compat deleted file mode 100644 index f599e28b8a..0000000000 --- a/oniguruma/unibuild-packaging/deb/compat +++ /dev/null @@ -1 +0,0 @@ -10 diff --git a/oniguruma/unibuild-packaging/deb/control b/oniguruma/unibuild-packaging/deb/control deleted file mode 100644 index c501926af2..0000000000 --- a/oniguruma/unibuild-packaging/deb/control +++ /dev/null @@ -1,40 +0,0 @@ -Source: oniguruma -Section: libs -Priority: extra -Maintainer: Jörg Frings-Fürst -Build-Depends: - debhelper (>= 10), cmake -Standards-Version: 4.2.1 -Homepage: https://github.com/kkos/oniguruma -Vcs-Git: git://jff.email/opt/git/libonig.git -Vcs-Browser: https://jff.email/cgit/libonig.git - -Package: libonig5 -Priority: optional -Architecture: any -Multi-Arch: same -Depends: - ${misc:Depends}, - ${shlibs:Depends} -Pre-Depends: - ${misc:Pre-Depends} -Description: regular expressions library - Oniguruma is a library for working with regular expressions. - . - Different character encoding for every regular expression object can - be specified. - -Package: libonig-dev -Section: libdevel -Priority: optional -Architecture: any -Depends: - ${misc:Depends}, - libonig5 (= ${binary:Version}) -Description: regular expressions library — development files - Oniguruma is a library for working with regular expressions. - . - Different character encoding for every regular expression object can - be specified. - . - This package provides development files and static libraries. diff --git a/oniguruma/unibuild-packaging/deb/copyright b/oniguruma/unibuild-packaging/deb/copyright deleted file mode 100644 index cd813f136a..0000000000 --- a/oniguruma/unibuild-packaging/deb/copyright +++ /dev/null @@ -1,52 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0 -Source: https://github.com/kkos/oniguruma - -Files: * -Copyright: 2002-2018 K.Kosako -License: BSD-2-clause - -License: BSD-2-clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - - -Files: debian/* -Copyright: 2006-2008 Max Kellermann - 2014-2018 Jörg Frings-Fürst -License: GPL-2+ - -License: GPL-2+ - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - . - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - . - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - . - On Debian systems, the full text of the GNU General Public License version 2 - can be found in the file `/usr/share/common-licenses/GPL-2'. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/oniguruma/unibuild-packaging/deb/gbp.conf b/oniguruma/unibuild-packaging/deb/gbp.conf deleted file mode 100644 index 30dec0c3c2..0000000000 --- a/oniguruma/unibuild-packaging/deb/gbp.conf +++ /dev/null @@ -1,11 +0,0 @@ -[DEFAULT] -# default build command and distro used to build package -builder = DIST=bionic /usr/bin/git-pbuilder -# tell git-buildpackage how to clean the source tree -cleaner = fakeroot debian/rules clean -# default branch for upstream sources and debian packaging (should usually be equal for pS) -upstream-branch = 5.0.0 -debian-branch = 5.0.0 -# the default tag formats used: -upstream-tag = libonig-%(version)s -debian-tag = debian/bionic/libonig-%(version)s diff --git a/oniguruma/unibuild-packaging/deb/libonig-dev.doc-base b/oniguruma/unibuild-packaging/deb/libonig-dev.doc-base deleted file mode 100644 index 8dab269c6d..0000000000 --- a/oniguruma/unibuild-packaging/deb/libonig-dev.doc-base +++ /dev/null @@ -1,16 +0,0 @@ -Document: libonig2 -Title: Oniguruma Library Documentation -Section: Programming/C++ - -Format: Text -Files: /usr/share/doc/libonig-dev/API.gz - /usr/share/doc/libonig-dev/API.ja.gz - /usr/share/doc/libonig-dev/FAQ - /usr/share/doc/libonig-dev/FAQ.ja - /usr/share/doc/libonig-dev/RE.gz - /usr/share/doc/libonig-dev/RE.ja.gz - /usr/share/doc/libonig-dev/README.gz - -Format: HTML -Index: /usr/share/doc/libonig-dev/index.html -Files: /usr/share/doc/libonig-dev/*.html diff --git a/oniguruma/unibuild-packaging/deb/libonig-dev.docs b/oniguruma/unibuild-packaging/deb/libonig-dev.docs deleted file mode 100644 index b8be5a0b50..0000000000 --- a/oniguruma/unibuild-packaging/deb/libonig-dev.docs +++ /dev/null @@ -1,10 +0,0 @@ -AUTHORS -README -doc/API -doc/API.ja -doc/FAQ -doc/FAQ.ja -doc/RE -doc/RE.ja -index.html -index_ja.html diff --git a/oniguruma/unibuild-packaging/deb/libonig-dev.examples b/oniguruma/unibuild-packaging/deb/libonig-dev.examples deleted file mode 100644 index cfdeec6a16..0000000000 --- a/oniguruma/unibuild-packaging/deb/libonig-dev.examples +++ /dev/null @@ -1 +0,0 @@ -sample/*.c diff --git a/oniguruma/unibuild-packaging/deb/libonig-dev.install b/oniguruma/unibuild-packaging/deb/libonig-dev.install deleted file mode 100644 index 1ec5d42e7c..0000000000 --- a/oniguruma/unibuild-packaging/deb/libonig-dev.install +++ /dev/null @@ -1,3 +0,0 @@ -usr/lib/*/lib*.so -usr/include -usr/lib/*/pkgconfig/* diff --git a/oniguruma/unibuild-packaging/deb/libonig5-dbg.dirs b/oniguruma/unibuild-packaging/deb/libonig5-dbg.dirs deleted file mode 100644 index 7276ecdefd..0000000000 --- a/oniguruma/unibuild-packaging/deb/libonig5-dbg.dirs +++ /dev/null @@ -1 +0,0 @@ -usr/share/doc diff --git a/oniguruma/unibuild-packaging/deb/libonig5.install b/oniguruma/unibuild-packaging/deb/libonig5.install deleted file mode 100644 index 3ddde58419..0000000000 --- a/oniguruma/unibuild-packaging/deb/libonig5.install +++ /dev/null @@ -1 +0,0 @@ -usr/lib/*/lib*.so.* diff --git a/oniguruma/unibuild-packaging/deb/rules b/oniguruma/unibuild-packaging/deb/rules deleted file mode 100755 index 6f91c6b953..0000000000 --- a/oniguruma/unibuild-packaging/deb/rules +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# -# Test for gcc-6 support -# -#export CC=gcc-6 -#export CXX=g++-6 - -export DEB_BUILD_MAINT_OPTIONS = hardening=+all - -VERSION = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/-.*).*//;s/\+/\-/') - -%: - dh $@ - -override_dh_install: - $(RM) debian/tmp/usr/bin/onig-config - dh_install --fail-missing -X.la -X.a - -override_dh_makeshlibs: - dh_makeshlibs - dpkg-gensymbols -v$(VERSION) -plibonig5 - -# Ubuntu dbgsym.ddeb are currently not supported by reprepro -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/oniguruma/unibuild-packaging/deb/source/format b/oniguruma/unibuild-packaging/deb/source/format deleted file mode 100644 index 163aaf8d82..0000000000 --- a/oniguruma/unibuild-packaging/deb/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (quilt) diff --git a/oniguruma/unibuild-packaging/rpm/oniguruma.spec b/oniguruma/unibuild-packaging/rpm/oniguruma.spec deleted file mode 100644 index 97fc6e8c62..0000000000 --- a/oniguruma/unibuild-packaging/rpm/oniguruma.spec +++ /dev/null @@ -1,61 +0,0 @@ -# -# Adapted from the EPEL package -# - -Name: oniguruma -Version: 6.9.6 -Release: 1%{?dist} -Summary: Regular expressions library -License: BSD -Group: Development/Librariesd -URL: https://github.com/kkos/oniguruma/ - -Source: %{name}-%{version}.tar.gz - -BuildRequires: autoconf -BuildRequires: automake - -%description -Oniguruma is a regular expressions library. The characteristics of -the library is that different character encoding for every regular -expression object can be specified. (supported APIs: GNU regex, POSIX -and Oniguruma native) - - -# Don't bulid a debug package - -%global debug_package %{nil} - - -%prep -%setup -q - - -%build -./autogen.sh -%configure -%{__make} - -%install -%make_install - -%files -%{_bindir}/* -%{_libdir}/* -#/usr/lib64/pkgconfig/oniguruma.pc - - - - -%package -n %{name}-devel -Summary: Header files for %{name} development -Group: Development/Libraries -Provides: %{name}-devel = %{version}-%{release} -Requires: %{name} = %{version}-%{release} - -%description -n %{name}-devel -Header files for %{name} development - -%files -n %{name}-devel -%defattr(-,root,root) -%{_includedir}/* diff --git a/owamp/unibuild-packaging/rpm/owamp.spec b/owamp/unibuild-packaging/rpm/owamp.spec index d03e0c0472..38c6259c0f 100644 --- a/owamp/unibuild-packaging/rpm/owamp.spec +++ b/owamp/unibuild-packaging/rpm/owamp.spec @@ -62,32 +62,16 @@ server. %package -n owamp-server Summary: owamp server Group: Applications/Network -%if 0%{?el7} -Requires: shadow-utils, coreutils -%{?systemd_requires: %systemd_requires} -# SELinux support -Requires: policycoreutils-python, libselinux-utils -Requires(post): selinux-policy-targeted, policycoreutils-python -Requires(postun): policycoreutils-python -%else Requires: chkconfig, initscripts, shadow-utils, coreutils -%endif + %description -n owamp-server owamp server %package -n twamp-server Summary: twamp server Group: Applications/Network -%if 0%{?el7} -Requires: shadow-utils, coreutils -%{?systemd_requires: %systemd_requires} -# SELinux support -Requires: policycoreutils-python, libselinux-utils -Requires(post): selinux-policy-targeted, policycoreutils-python -Requires(postun): policycoreutils-python -%else Requires: chkconfig, initscripts, shadow-utils, coreutils -%endif + %description -n twamp-server twamp server @@ -177,16 +161,6 @@ setcap "cap_net_raw+p" %{_bindir}/powstream mkdir -p /var/lib/owamp/hierarchy chown -R owamp:owamp /var/lib/owamp -%if 0%{?el7} -semodule -n -i %{_datadir}/selinux/packages/owamp-server.pp -semanage port -a -t owamp_port_t -p tcp 861 2>/dev/null -semanage port -a -t owamp_test_port_t -p udp 8760-9960 2>/dev/null -if /usr/sbin/selinuxenabled; then - /usr/sbin/load_policy - restorecon -iR /etc/owamp-server /usr/bin/owampd \ - /usr/lib/systemd/system/owamp-server.service \ - /var/lib/owamp /var/run/owamp-server.* -fi %systemd_post owamp-server.service if [ "$1" = "1" ]; then @@ -230,31 +204,12 @@ fi %endif %preun -n owamp-server -%if 0%{?el7} -%systemd_preun owamp-server.service -%else if [ "$1" = "0" ]; then /sbin/chkconfig --del owamp-server /sbin/service owamp-server stop fi -%endif %postun -n owamp-server -%if 0%{?el7} -%systemd_postun_with_restart owamp-server.service - -if [ $1 -eq 0 ]; then - semanage port -d -p tcp 861 - semanage port -d -p udp 8760-9960 - semodule -n -r owamp-server - if /usr/sbin/selinuxenabled; then - /usr/sbin/load_policy - restorecon -iR /etc/owamp-server /usr/bin/owampd \ - /usr/lib/systemd/system/owamp-server.service \ - /var/lib/owamp /var/run/owamp-server.* - fi -fi -%endif if [ "$1" = "0" ]; then /usr/sbin/userdel owamp || : fi @@ -268,23 +223,6 @@ setcap "cap_net_raw+p" %{_bindir}/twping mkdir -p /var/lib/twamp chown -R twamp:twamp /var/lib/twamp -%if 0%{?el7} -semodule -n -i %{_datadir}/selinux/packages/twamp-server.pp -semanage port -a -t twamp_port_t -p tcp 862 2>/dev/null -semanage port -a -t twamp_test_port_t -p udp 18760-19960 2>/dev/null -if /usr/sbin/selinuxenabled; then - /usr/sbin/load_policy - restorecon -iR /etc/twamp-server /usr/bin/twampd \ - /usr/lib/systemd/system/twamp-server.service \ - /var/lib/twamp /var/run/twamp-server.* -fi - -%systemd_post twamp-server.service -if [ "$1" = "1" ]; then - systemctl enable twamp-server.service - systemctl start twamp-server.service -fi -%else if [ "$1" = "1" ]; then /sbin/chkconfig --add twamp-server mkdir -p /var/lib/twamp @@ -301,34 +239,14 @@ else fi /sbin/chkconfig --del twampd 2> /dev/null || : fi -%endif %preun -n twamp-server -%if 0%{?el7} -%systemd_preun twamp-server.service -%else if [ "$1" = "0" ]; then /sbin/chkconfig --del twamp-server /sbin/service twamp-server stop fi -%endif %postun -n twamp-server -%if 0%{?el7} -%systemd_postun_with_restart twamp-server.service - -if [ $1 -eq 0 ]; then - semanage port -d -p tcp 862 - semanage port -d -p udp 18760-19960 - semodule -n -r twamp-server - if /usr/sbin/selinuxenabled; then - /usr/sbin/load_policy - restorecon -iR /etc/twamp-server /usr/bin/twampd \ - /usr/lib/systemd/system/twamp-server.service \ - /var/lib/twamp /var/run/twamp-server.* - fi -fi -%endif if [ "$1" = "0" ]; then /usr/sbin/userdel twamp || : fi @@ -361,12 +279,7 @@ fi %{_mandir}/man5/owamp* %{_mandir}/man8/owamp* %config(noreplace) %{_sysconfdir}/owamp-server/* -%if 0%{?el7} -%{_unitdir}/owamp-server.service -%attr(0644,root,root) %{_datadir}/selinux/packages/owamp-server.pp -%else %attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/owamp-server -%endif %attr(0755,root,root) %{_sysconfdir}/cron.daily/owamp-server %files -n twamp-server @@ -376,12 +289,7 @@ fi %{_mandir}/man5/twamp* %{_mandir}/man8/twamp* %config(noreplace) %{_sysconfdir}/twamp-server/* -%if 0%{?el7} -%{_unitdir}/twamp-server.service -%attr(0644,root,root) %{_datadir}/selinux/packages/twamp-server.pp -%else %{_sysconfdir}/rc.d/init.d/twamp-server -%endif %if %{build_devel} %files devel diff --git a/pgdg-srpm-macros/Makefile b/pgdg-srpm-macros/Makefile deleted file mode 100644 index e90d47ab4b..0000000000 --- a/pgdg-srpm-macros/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# -# Makefile for Any RPM -# - -AUTO_TARBALL := 1 - -include unibuild/unibuild.make diff --git a/pgdg-srpm-macros/pgdg-srpm-macros/AUTHORS b/pgdg-srpm-macros/pgdg-srpm-macros/AUTHORS deleted file mode 100644 index 0e171b76b9..0000000000 --- a/pgdg-srpm-macros/pgdg-srpm-macros/AUTHORS +++ /dev/null @@ -1,4 +0,0 @@ -Maintainer: -Devrim Gündüz - -Contributions from: diff --git a/pgdg-srpm-macros/pgdg-srpm-macros/COPYRIGHT b/pgdg-srpm-macros/pgdg-srpm-macros/COPYRIGHT deleted file mode 100644 index fe7c385732..0000000000 --- a/pgdg-srpm-macros/pgdg-srpm-macros/COPYRIGHT +++ /dev/null @@ -1,23 +0,0 @@ -PostgreSQL Database Management System -(formerly known as Postgres, then as Postgres95) - -Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group - -Portions Copyright (c) 1994, The Regents of the University of California - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose, without fee, and without a written agreement -is hereby granted, provided that the above copyright notice and this -paragraph and the following two paragraphs appear in all copies. - -IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR -DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING -LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS -DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, -INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS -ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO -PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. diff --git a/pgdg-srpm-macros/pgdg-srpm-macros/macros.pgdg-postgresql b/pgdg-srpm-macros/pgdg-srpm-macros/macros.pgdg-postgresql deleted file mode 100644 index 13c8779bdc..0000000000 --- a/pgdg-srpm-macros/pgdg-srpm-macros/macros.pgdg-postgresql +++ /dev/null @@ -1,135 +0,0 @@ -# -*- Mode: rpm-spec; indent-tabs-mode: nil -*- */ -# SPDX-License-Identifier: PostgreSQL -# -# This file is part of PostgreSQL Global Development Group RPM Packages -# -# Copyright 2019-2020 Devrim Gündüz - -# RPM macros for building PostgreSQL RPM Packages - -%pgbaseinstdir /usr/pgsql-%{pgmajorversion} - -%pgdg_set_ppc64le_compiler_at10\ -%ifarch ppc64 ppc64le\ -# Define the AT version and path. \ -%global atstring at10.0 \ -%global atpath /opt/%{atstring} \ -%endif\ - -%pgdg_set_ppc64le_compiler_at11\ -%ifarch ppc64 ppc64le\ -# Define the AT version and path. \ -%global atstring at11.0 \ -%global atpath /opt/%{atstring} \ -%endif\ - -%pgdg_set_ppc64le_compiler_at12\ -%ifarch ppc64 ppc64le\ -# Define the AT version and path. \ -%global atstring at12.0 \ -%global atpath /opt/%{atstring} \ -%endif\ - -%pgdg_set_ppc64le_compiler_at13\ -%ifarch ppc64 ppc64le\ -# Define the AT version and path. \ -%global atstring at13.0 \ -%global atpath /opt/%{atstring} \ -%endif\ - -%pgdg_set_ppc64le_compiler_at14\ -%ifarch ppc64 ppc64le\ -# Define the AT version and path. \ -%global atstring at14.0 \ -%global atpath /opt/%{atstring} \ -%endif\ - -%pgdg_set_ppc64le_compiler_flags\ - CFLAGS="${CFLAGS} $(echo %{__global_cflags} | sed 's/-O2/-O3/g') -m64 -mcpu=power8 -mtune=power8 -I%{atpath}/include" - CXXFLAGS="${CXXFLAGS} $(echo %{__global_cflags} | sed 's/-O2/-O3/g') -m64 -mcpu=power8 -mtune=power8 -I%{atpath}/include" - LDFLAGS="-L%{atpath}/%{_lib}" - CC=%{atpath}/bin/gcc; export CC - CXX=%{atpath}/bin/g++; export CXX -\ - -%pgdg_set_ppc64le_min_requires\ -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -BuildRequires: advance-toolchain-%{atstring}-devel -\ - -# PGDG Fedora Globals -%pgdg_fedora_global_macros\ -%endif\ - -# PGDG Python3 common macros -# This is the list of contrib modules that will be compiled with PY3 as well: -%python3_build_list hstore_plpython jsonb_plpython ltree_plpython - -%pgdg_plpython_version\ -%if 0%{?rhel} && 0%{?rhel} <= 6\ -# RHEL 6 does not have Python 3\ -%{!?plpython3:%global plpython3 0}\ -%endif\ -%if 0%{?fedora} && 0%{?fedora} > 27\ -# All Fedora releases use Python3\ -%{!?plpython3:%global plpython3 1}\ -%endif\ -%if 0%{?rhel} && 0%{?rhel} >= 7\ -# RHEL 7 and 8 use Python3\ -%{!?plpython3:%global plpython3 1}\ -%endif\ - -# Macro for the dail snapshot packages -%pgdg_build_timestamp %(date +"%Y%m%d") - -%pgdg_set_gis_variables() %{expand: \ -%global geosmajorversion 39 -%global gdalmajorversion 32 -%global libgeotiffmajorversion 16 -%global ogdimajorversion 41 -%global projmajorversion 80 -%global proj80majorversion 80 -%global proj72majorversion 72 -%global proj71majorversion 71 -%global proj70majorversion 70 -%global gdalinstdir /usr/gdal%{gdalmajorversion} -%global geosinstdir /usr/geos%{geosmajorversion} -%global libgeotiffinstdir /usr/libgeotiff%{libgeotiffmajorversion} -%global libspatialiteinstdir /usr/libspatialite%{libspatialitemajorversion} -%global ogdiinstdir /usr/ogdi%{ogdimajorversion} -%global projinstdir /usr/proj%{projmajorversion} -%global proj80instdir /usr/proj%{proj80majorversion} -%global proj72instdir /usr/proj%{proj72majorversion} -%global proj71instdir /usr/proj%{proj71majorversion} -%global proj70instdir /usr/proj%{proj70majorversion} -%global geosfullversion 3.9.1 -%global projfullversion 8.0.1 -%global gdalfullversion 3.2.3 -\ -} - -%pgdg_set_llvm_variables() %{expand: \ -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -%global isllvm 0 -%else -%global isllvm 1 -%endif -%endif -%if 0%{?rhel} && 0%{?rhel} == 6 -%global isllvm 0 -%endif -%if 0%{?fedora} && 0%{?fedora} > 30 -%global isllvm 1 -%endif -%if 0%{?rhel} && 0%{?rhel} >= 8 -%global isllvm 1 -%endif -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -%global isllvm 1 -%endif -%endif -\ -} diff --git a/pgdg-srpm-macros/unibuild-packaging/rpm/pgdg-srpm-macros.spec b/pgdg-srpm-macros/unibuild-packaging/rpm/pgdg-srpm-macros.spec deleted file mode 100644 index a7e4bd7ecc..0000000000 --- a/pgdg-srpm-macros/unibuild-packaging/rpm/pgdg-srpm-macros.spec +++ /dev/null @@ -1,110 +0,0 @@ -# -# Adapted from the PGDG sources -# - -%global debug_package %{nil} - -%if 0%{?fedora} || 0%{?rhel} >= 7 -%global macros_dir %{_rpmconfigdir}/macros.d -%else -%global macros_dir %{_sysconfdir}/rpm -%endif - -%if 0%{?fedora} >= 30 || 0%{?rhel} >= 8 -BuildArch: noarch -%endif - -Name: pgdg-srpm-macros -Version: 1.0.14 -Release: 1%{?dist} -Summary: SRPM macros for building PostgreSQL PGDG Packages - -License: PostgreSQL -URL: https://yum.PostgreSQL.org/pgdg-srpm-macros -Source0: %{name}-%{version}.tar.gz - - -%define macros macros.pgdg-postgresql -%define copyright COPYRIGHT -%define authors AUTHORS - -#Source0: macros.pgdg-postgresql -#Source1: COPYRIGHT -#Source2: AUTHORS - -%description -A set of macros for building PostgreSQL PGDG packages. 3rd party packagers can -override these macros and use their own. - -%prep -%setup - - -%install -%{__install} -p -D -m 0644 %{macros} %{buildroot}/%{macros_dir}/macros.pgdg-postgresql - -%files -%if 0%{?rhel} && 0%{?rhel} <= 6 -%doc COPYRIGHT AUTHORS -%else -%license COPYRIGHT -%doc AUTHORS -%endif -%{macros_dir}/macros.pgdg-postgresql - -%changelog -* Tue May 18 2021 Devrim Gündüz - 1.0.14-1 -- Update PROJ to 8.0.1 and GDAL to 3.2.3. - -* Mon Mar 8 2021 Devrim Gündüz - 1.0.13-1 -- Update PROJ to 8.0.0, GDAL to 3.2.2 and GeOS to 3.9.1 - -* Fri Jan 8 2021 Devrim Gündüz - 1.0.12-1 -- Introduce pgdg_set_llvm_variables macro, to specify which - distro/arch combinations have llvm support. - -* Wed Jan 6 2021 Devrim Gündüz - 1.0.11-1 -- Update GDAL to 3.2.1 and PROJ to 7.2.1 - -* Sun Dec 20 2020 2020 Devrim Gündüz - 1.0.10-1 -- Update GeOS to 3.9.0 - -* Fri Nov 27 2020 Devrim Gündüz - 1.0.9-1 -- Add custom macros for (supported) PROJ versions. Without this, - all PROJ packages would install under the same directory, whatever - the latest version is. - -* Thu Nov 5 2020 Devrim Gündüz - 1.0.8-1 -- Remove libspatialitemajorversion macro definition. Apparently - conditional does not work in the macro file. -- Update Proj to 7.2.0, GDAL to 3.2.0 - -* Fri Oct 30 2020 Devrim Gündüz - 1.0.7-1 -- Add missing libspatialitemajorversion macro. - -* Thu Oct 8 2020 Devrim Gündüz - 1.0.6-1 -- Add IBM Advance Toolchain 12, 13 and 14 support - -* Tue Sep 29 2020 Devrim Gündüz - 1.0.5-1 -- Update libgeotiff to 1.6 -- Update GDAL to 3.1.3 - -* Mon Aug 17 2020 Devrim Gündüz - 1.0.4-1 -- Update Proj to 7.1.0 -- Add AT 11 support - -* Mon May 11 2020 John K. Harvey - 1.0.3-2 -- Small fix for plpython3 macro for EL-7 - -* Sun May 10 2020 Devrim Gündüz - 1.0.3-1 -- Make plpython3 macro consistent with the PostgreSQL spec file. - Per John K. Harvey. - -* Tue May 5 2020 Devrim Gündüz - 1.0.2-1 -- Update Proj to 7.0.1 - -* Thu Apr 16 2020 Devrim Gündüz - 1.0.1-1 -- Add CXX flags for PPC64LE. Extracted from another patch by Talha. - -* Fri May 31 2019 Devrim Gündüz - 1.0.0-1 -- Initial packaging for PostgreSQL RPM Repository diff --git a/postgresql-init/postgresql-init/unibuild-packaging/rpm/postgresql-init.spec b/postgresql-init/postgresql-init/unibuild-packaging/rpm/postgresql-init.spec index a0e16d6abc..b9740eb8cb 100644 --- a/postgresql-init/postgresql-init/unibuild-packaging/rpm/postgresql-init.spec +++ b/postgresql-init/postgresql-init/unibuild-packaging/rpm/postgresql-init.spec @@ -31,13 +31,6 @@ Requires: %{_pscheduler_postgresql_package}-contrib >= %{_pscheduler_postgresql_ Requires: %{_pscheduler_postgresql_package}-devel >= %{_pscheduler_postgresql_version} Requires: %{_pscheduler_postgresql_package}-libs >= %{_pscheduler_postgresql_version} -%if 0%{?el7} -# This is required only for an upgrade to succeed. Post-Python2 code -# doesn't use it. -# TODO: Remove this after 4.3.x reaches EOL. -Requires: %{_pscheduler_postgresql_package}-plpython -%endif - Requires: %{_pscheduler_postgresql_plpython} >= %{_pscheduler_postgresql_version} Requires: %{_pscheduler_postgresql_package}-server >= %{_pscheduler_postgresql_version} @@ -86,10 +79,6 @@ make \ set -e -%if 0%{?el7} -# Try an upgrade first, but only on EL7. EL8 is self-tending. -%{libexec}/upgrade-postgresql -%endif %{libexec}/initialize-postgresql # Set up run at boot diff --git a/postgresql-systemd-fix/Makefile b/postgresql-systemd-fix/Makefile deleted file mode 100644 index 413b497973..0000000000 --- a/postgresql-systemd-fix/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# -# Makefile for Any Package -# - -AUTO_TARBALL := 1 - -include unibuild/unibuild.make diff --git a/postgresql-systemd-fix/postgresql-systemd-fix/unibuild-packaging/rpm/postgresql-systemd-fix.spec b/postgresql-systemd-fix/postgresql-systemd-fix/unibuild-packaging/rpm/postgresql-systemd-fix.spec deleted file mode 100644 index 9d1a56fc8c..0000000000 --- a/postgresql-systemd-fix/postgresql-systemd-fix/unibuild-packaging/rpm/postgresql-systemd-fix.spec +++ /dev/null @@ -1,33 +0,0 @@ -# -# RPM Spec for postgresql-systemd-fix -# - -Name: postgresql-systemd-fix -Version: 1.0 -Release: 1%{?dist} - -Summary: Fix a problem with PostgreSQL stopping on EL8 - -BuildArch: noarch -License: Apache 2.0 -Group: Unspecified -Vendor: perfSONAR Development Team -URL: http://www.perfsonar.net - -Source0: %{name}-%{version}.tar.gz - -Provides: %{name} = %{version}-%{release} - -Requires: postgresql-server - -%description -This packages fixes a problem with stopping PostgreSQL on EL8 systems -under systemd. See -https://github.com/perfsonar/pscheduler/issues/1335 for details. - - -%post -sed -i -e 's/^TimeoutSec=.*$/TimeoutSec=10/' /usr/lib/systemd/system/postgresql.service -systemctl daemon-reload - -%files diff --git a/postgresql/Makefile b/postgresql/Makefile deleted file mode 100644 index 25bcfb5e7d..0000000000 --- a/postgresql/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for Any Package -# - -include unibuild/unibuild.make diff --git a/postgresql/postgresql-10-A4.pdf b/postgresql/postgresql-10-A4.pdf deleted file mode 100644 index 77e7592d78..0000000000 Binary files a/postgresql/postgresql-10-A4.pdf and /dev/null differ diff --git a/postgresql/postgresql-10-Makefile.regress b/postgresql/postgresql-10-Makefile.regress deleted file mode 100644 index 43c7ba446a..0000000000 --- a/postgresql/postgresql-10-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/postgresql/postgresql-10-README-systemd.rpm-dist b/postgresql/postgresql-10-README-systemd.rpm-dist deleted file mode 100644 index 7ff530c347..0000000000 --- a/postgresql/postgresql-10-README-systemd.rpm-dist +++ /dev/null @@ -1,353 +0,0 @@ -README.rpm-dist ------------------------------------------------------------------------------ -Version 10, for the PostgreSQL 10 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 10 of PostgreSQL, -which is the current version of the RPMs as of this writing. More to the -point, versions prior to 10 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 postgresql10-server installed) ------------------------------------------------------------------------------ -For a fresh installation, you will need to initialize the cluster first. Run: - - /usr/pgsql-10/bin/postgresql10-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-10.service - -You will probably also want to do - - systemctl enable postgresql-10.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/10/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/10/.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-10/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-10/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 10.1 to 10.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 10.x) -requires more effort. - -If you are upgrading across more than one major release of PostgreSQL -(for example, from 9.1.x to 10.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 10.x. Just run: -$ /usr/pgsql-10/bin/postgresql10-setup upgrade - -Please note that 9.2 and 10 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: - -postgresql10: Key clients and libraries, and documentation -postgresql10-server: Server executables and data files -postgresql10-devel: Development libraries and include files -postgresql10-test: The regression tests and associated files -postgresql10-libs: Client shared libraries -postgresql10-docs: Extra documentation, such as the tutorial files -postgresql10-contrib: The contrib source tree, as well as selected binaries -postgresql10-plperl: PL/Perl procedural language -postgresql10-plpython: PL/Python procedural language -postgresql10-pltcl: PL/Tcl procedural language - -postgresql10-jdbc, postgresql10-python, postgresql10-tcl and postgresql10-odbc have -been splitted into seperate (s)rpms. - -You have to install postgresql and postgresql10-libs to do anything. -postgresql10-server is needed unless you only plan to use the clients to work -with a remote PostgreSQL server. The others are optional. - -postgresql10-python package includes PyGreSQL, and Pgtcl is distributed -via postgresql10-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-10/bin -Libraries: /usr/pgsql-10/lib -Documentation: /usr/pgsql-10/doc -Contrib documentation: /usr/pgsql-10/doc -Source: not installed -Data: /var/lib/pgsql/10/data -Backup area: /var/lib/pgsql/10/backups -Templates: /usr/pgsql-10/share -Procedural Languages: /usr/pgsql-10/lib -Development Headers: /usr/pgsql-10/include -Other shared data: /usr/pgsql-10/share -Regression tests: /usr/pgsql-10/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-10.service /etc/systemd/system/postgresql-10-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/10/data-secondary - -3.) Initialize the cluster: - - /usr/pgsql-10/bin/postgresql10-setup initdb postgresql-10-secondary - -4.) Edit postgresql.conf to change the port, address, tcpip settings, etc. - -5.) Start the postmaster with 'systemctl start postgresql-10-secondary.service' - -When doing a major-version upgrade of a secondary postmaster, mention the -service name in the postgresql10-setup command, for example 'postgresql10-setup -upgrade secondary'. This will let postgresql10-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-10.service"), cd to /usr/pgsql-10/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-10.service. To start the postmaster manually, -as root run - systemctl start postgresql-10.service -To shut the postmaster down, - systemctl stop postgresql-10.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-10.service -To undo that again, - systemctl disable postgresql-10.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/10/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/10/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' \ - postgresql10-10.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-10/lib for loadable modules, and binaries are in -/usr/pgsql-10/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/postgresql/postgresql-10-check-db-dir b/postgresql/postgresql-10-check-db-dir deleted file mode 100644 index 1d5b4cc1db..0000000000 --- a/postgresql/postgresql-10-check-db-dir +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh - -# This script verifies that the postgresql data directory has been correctly -# initialized. We do not want to automatically initdb it, because that has -# a risk of catastrophic failure (ie, overwriting a valuable database) in -# corner cases, such as a remotely mounted database on a volume that's a -# bit slow to mount. But we can at least emit a message advising newbies -# what to do. - -PGDATA="$1" - -if [ -z "$PGDATA" ] -then - echo "Usage: $0 database-path" - exit 1 -fi - -# PGVERSION is the full package version, e.g., 10.0 -# Note: the specfile inserts the correct value during package build -PGVERSION=xxxx -# PGMAJORVERSION is major version, e.g., 9.6 (this should match PG_VERSION) -PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'` -# PREVMAJORVERSION is the previous major version, e.g., 9.5, for upgrades -# Note: the specfile inserts the correct value during package build -PREVMAJORVERSION=xxxx -# PGDOCDIR is the directory containing the package's documentation -# Note: the specfile inserts the correct value during package build -PGDOCDIR=xxxx - -# Check for the PGDATA structure -if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ] -then - # Check version of existing PGDATA - if [ x`cat "$PGDATA/PG_VERSION"` = x"$PGMAJORVERSION" ] - then - : A-OK - elif [ x`cat "$PGDATA/PG_VERSION"` = x"$PREVMAJORVERSION" ] - then - echo $"An old version of the database format was found." - echo $"Use \"postgresql-setup upgrade\" to upgrade to version $PGMAJORVERSION." - echo $"See $PGDOCDIR/README.rpm-dist for more information." - exit 1 - else - echo $"An old version of the database format was found." - echo $"You need to dump and reload before using PostgreSQL $PGMAJORVERSION." - echo $"See $PGDOCDIR/README.rpm-dist for more information." - exit 1 - fi -else - # No existing PGDATA! Warn the user to initdb it. - echo $"\"$PGDATA\" is missing or empty." - echo $"Use \"/usr/pgsql-10/bin/postgresql-10-setup initdb\" to initialize the database cluster." - echo $"See $PGDOCDIR/README.rpm-dist for more information." - exit 1 -fi - -exit 0 diff --git a/postgresql/postgresql-10-ecpg_config.h b/postgresql/postgresql-10-ecpg_config.h deleted file mode 100644 index 6fecfcb513..0000000000 --- a/postgresql/postgresql-10-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/postgresql/postgresql-10-filter-requires-perl-Pg.sh b/postgresql/postgresql-10-filter-requires-perl-Pg.sh deleted file mode 100755 index f37557f2dc..0000000000 --- a/postgresql/postgresql-10-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/postgresql/postgresql-10-libs.conf b/postgresql/postgresql-10-libs.conf deleted file mode 100644 index 8b8c13f4e1..0000000000 --- a/postgresql/postgresql-10-libs.conf +++ /dev/null @@ -1 +0,0 @@ -/usr/pgsql-10/lib/ diff --git a/postgresql/postgresql-10-pg_config.h b/postgresql/postgresql-10-pg_config.h deleted file mode 100644 index 97ef2baa07..0000000000 --- a/postgresql/postgresql-10-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/postgresql/postgresql-10-setup b/postgresql/postgresql-10-setup deleted file mode 100644 index 20b67b46a6..0000000000 --- a/postgresql/postgresql-10-setup +++ /dev/null @@ -1,293 +0,0 @@ -#!/bin/sh -# -# postgresql-setup Initialization and upgrade operations for PostgreSQL - -# PGVERSION is the full package version, e.g., 10.0 -# Note: the specfile inserts the correct value during package build -PGVERSION=xxx -# PGMAJORVERSION is major version, e.g., 10 (this should match PG_VERSION) -PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'` -# PGENGINE is the directory containing the postmaster executable -# Note: the specfile inserts the correct value during package build -PGENGINE=xxxx -# PREVMAJORVERSION is the previous major version, e.g., 10, for upgrades -PREVMAJORVERSION=xxx -# PREVPGENGINE is the directory containing the previous postmaster executable -PREVPGENGINE=/usr/pgsql-$PREVMAJORVERSION/bin -# PREVDATADIR is the directory containing the previous postmaster executable -PREVDATADIR=/var/lib/pgsql/$PREVMAJORVERSION/data - -# TODO: Provide a conf file that can override these settings - -# The second parameter is the new database version, i.e. $PGMAJORVERSION in this case. -# Use "postgresql-$PGMAJORVERSION" service, if not specified. -SERVICE_NAME="$2" -if [ x"$SERVICE_NAME" = x ] -then - SERVICE_NAME=postgresql-$PGMAJORVERSION -fi - -# The third parameter is the old database version, i.e. $PREVMAJORVERSION in this case. -# Use "postgresql-$PREVMAJORVERSION" service, if not specified. -OLD_SERVICE_NAME="$3" -if [ x"$OLD_SERVICE_NAME" = x ] -then - OLD_SERVICE_NAME=postgresql-$PREVMAJORVERSION -fi - -USAGE_STRING=$" -Usage: $0 {initdb|check_upgrade|upgrade} [SERVICE_NAME] - -Script is aimed to help sysadmin with basic database cluster administration. - -The SERVICE_NAME is used for selection of proper unit configuration file; For -more info and howto/when use this script please look at README.rpm-dist file. -The 'postgresql' string is used when no SERVICE_NAME is explicitly passed. - -Available operation mode: - initdb Create a new PostgreSQL database cluster. This is usually the - first action you perform after PostgreSQL server installation. - check_upgrade Checks whether the old cluster can be upgraded to the new version - or not. - upgrade Upgrade PostgreSQL database cluster to be usable with new - server. Use this if you upgraded your PostgreSQL server to - newer major version (currently from $PREVMAJORVERSION \ -to $PGMAJORVERSION). - -Environment: - PGSETUP_INITDB_OPTIONS Options carried by this variable are passed to - subsequent call of \`initdb\` binary (see man - initdb(1)). This variable is used also during - 'upgrade' mode because the new cluster is actually - re-initialized from the old one. - PGSETUP_PGUPGRADE_OPTIONS Options in this variable are passed next to the - subsequent call of \`pg_upgrade\`. For more info - about possible options please look at man - pg_upgrade(1). - PGSETUP_DEBUG Set to '1' if you want to see debugging output." - -# note that these options are useful at least for help2man processing -case "$1" in - --version) - echo "PostgreSQL setup script for version $PGVERSION" - exit 0 - ;; - --help|--usage) - echo "$USAGE_STRING" - exit 0 - ;; -esac - -# this parsing technique fails for PGDATA pathnames containing spaces, -# but there's not much I can do about it given systemctl's output format... -PGDATA=`systemctl show -p Environment "${SERVICE_NAME}.service" | - sed 's/^Environment=//' | tr ' ' '\n' | - sed -n 's/^PGDATA=//p' | tail -n 1` -if [ x"$PGDATA" = x ]; then - echo "failed to find PGDATA setting in ${SERVICE_NAME}.service" - exit 1 -fi - -# Find the unit file for new version. -if [ -f "/etc/systemd/system/${SERVICE_NAME}.service" ] -then - SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service" -elif [ -f "/usr/lib/systemd/system/${SERVICE_NAME}.service" ] -then - SERVICE_FILE="/usr/lib/systemd/system/${SERVICE_NAME}.service" -else - echo "Could not find systemd unit file ${SERVICE_NAME}.service" - exit 1 -fi - -# Log file for pg_upgrade -PGUPLOG=/var/lib/pgsql/$PGMAJORVERSION/pgupgrade.log -# Log file for initdb -PGLOG=/var/lib/pgsql/$PGMAJORVERSION/initdb.log - -export PGDATA - -# For SELinux we need to use 'runuser' not 'su' -if [ -x /sbin/runuser ] -then - SU=/sbin/runuser -else - SU=su -fi - -script_result=0 - -# code shared between initdb and upgrade actions -perform_initdb(){ - if [ ! -e "$PGDATA" ]; then - mkdir -p "$PGDATA" || return 1 - chown postgres:postgres "$PGDATA" - chmod go-rwx "$PGDATA" - fi - # Clean up SELinux tagging for PGDATA - [ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA" - - # Create the initdb log file if needed - if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]; then - touch "$PGLOG" || return 1 - chown postgres:postgres "$PGLOG" - chmod go-rwx "$PGLOG" - [ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG" - fi - - # Initialize the database - initdbcmd="$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" - initdbcmd+=" $PGSETUP_INITDB_OPTIONS" - - $SU -l postgres -c "$initdbcmd" >> "$PGLOG" 2>&1 < /dev/null - - # Create directory for postmaster log files - mkdir "$PGDATA/log" - chown postgres:postgres "$PGDATA/log" - chmod go-rwx "$PGDATA/log" - [ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA/log" - - if [ -f "$PGDATA/PG_VERSION" ]; then - return 0 - fi - return 1 -} - -initdb(){ - if [ -f "$PGDATA/PG_VERSION" ]; then - echo $"Data directory is not empty!" - echo - script_result=1 - else - echo -n $"Initializing database ... " - if perform_initdb; then - echo $"OK" - else - echo $"failed, see $PGLOG" - script_result=1 - fi - echo - fi -} - -check_upgrade(){ - # must see previous version in PG_VERSION - if [ ! -f "$PREVDATADIR/PG_VERSION" -o \ - x`cat "$PREVDATADIR/PG_VERSION"` != x"$PREVMAJORVERSION" ] - then - echo - echo $"Cannot upgrade because the database in $PGDATA is not of" - echo $"compatible previous version $PREVMAJORVERSION." - echo - exit 1 - fi - - # Set up log file for pg_upgrade - rm -f "$PGUPLOG" - touch "$PGUPLOG" || exit 1 - chown postgres:postgres "$PGUPLOG" - chmod go-rwx "$PGUPLOG" - [ -x /sbin/restorecon ] && /sbin/restorecon "$PGUPLOG" - - # Make sure that the user initdb'ed the new cluster: - if [ ! -f "$PGDATA/PG_VERSION" ] - then - echo - echo $"Please initialize the new cluster before upgrading." - echo $"You can run this script with the ''initdb'' parameter:" - echo $"" - echo $"$PGENGINE/postgresql-$PGVERSION-setup initdb" - echo - exit 1 - fi - - # Copy the current pg_hba.conf file to new cluster: - - HBA_CONF_BACKUP_EXISTS=0 - - cp "$PREVDATADIR/pg_hba.conf" "$PGDATA/" - HBA_CONF_BACKUP_EXISTS=1 - - # For fluent upgrade 'postgres' user should be able to connect - # to any database without password. Temporarily, no other type - # of connection is needed. - echo "local all postgres peer" > "$PREVDATADIR/pg_hba.conf" - - echo -n $"Performing upgrade check: " - - # Do the upgrade - $SU -l postgres -c "$PGENGINE/pg_upgrade \ - '--old-bindir=$PREVPGENGINE' \ - '--new-bindir=$PGENGINE' \ - '--old-datadir=$PREVDATADIR' \ - '--new-datadir=$PGDATA' \ - --check \ - --user=postgres \ - $PGSETUP_PGUPGRADE_OPTIONS" \ - >> "$PGUPLOG" 2>&1 < /dev/null - if [ $? -ne 0 ]; then - # pg_upgrade failed - script_result=1 - fi - if [ $script_result -eq 0 ]; then - echo $"OK" - else - # Clean up after failure - echo "Upgrade failed. Removing the new cluster. Please re-initdb the new cluster." - rm -rf "$PGDATA" - echo $"failed" - fi - echo - echo $"See $PGUPLOG for details." -} - - -upgrade(){ -# Perform the upgrade check first: -check_upgrade - echo -n $"Upgrading database: " - - # Do the upgrade - $SU -l postgres -c "$PGENGINE/pg_upgrade \ - '--old-bindir=$PREVPGENGINE' \ - '--new-bindir=$PGENGINE' \ - '--old-datadir=$PREVDATADIR' \ - '--new-datadir=$PGDATA' \ - --link \ - --user=postgres \ - $PGSETUP_PGUPGRADE_OPTIONS" \ - >> "$PGUPLOG" 2>&1 < /dev/null - if [ $? -ne 0 ]; then - # pg_upgrade failed - script_result=1 - fi - if [ $script_result -eq 0 ]; then - echo $"OK" - echo - echo $"pg_hba.conf configuration file of the new cluster was replaced by the one in the old cluster." - else - # Clean up after failure - rm -rf "$PGDATA" - echo $"failed" - fi - echo - echo $"See $PGUPLOG for details." -} - -# See how we were called. -case "$1" in - initdb) - initdb - ;; - upgrade) - upgrade - ;; - check_upgrade) - check_upgrade - ;; - *) - echo >&2 "$USAGE_STRING" - exit 2 -esac - -exit $script_result diff --git a/postgresql/postgresql-10-tmpfiles.d b/postgresql/postgresql-10-tmpfiles.d deleted file mode 100644 index 6c48e34ed1..0000000000 --- a/postgresql/postgresql-10-tmpfiles.d +++ /dev/null @@ -1 +0,0 @@ -d /run/postgresql 0755 postgres postgres - diff --git a/postgresql/postgresql-10.17.tar.bz2 b/postgresql/postgresql-10.17.tar.bz2 deleted file mode 100644 index 75e2203937..0000000000 Binary files a/postgresql/postgresql-10.17.tar.bz2 and /dev/null differ diff --git a/postgresql/postgresql-10.pam b/postgresql/postgresql-10.pam deleted file mode 100644 index 1d785946d3..0000000000 --- a/postgresql/postgresql-10.pam +++ /dev/null @@ -1,3 +0,0 @@ -#%PAM-1.0 -auth include password-auth -account include password-auth diff --git a/postgresql/postgresql-10.service b/postgresql/postgresql-10.service deleted file mode 100644 index e9476e651f..0000000000 --- a/postgresql/postgresql-10.service +++ /dev/null @@ -1,53 +0,0 @@ -# It's not recommended to modify this file in-place, because it will be -# overwritten during package upgrades. It is recommended to use systemd -# "dropin" feature; i.e. create file with suffix .conf under -# /etc/systemd/system/postgresql-10.service.d directory overriding the -# unit's defaults. You can also use "systemctl edit postgresql-10" -# Look at systemd.unit(5) manual page for more info. - -# Note: changing PGDATA will typically require adjusting SELinux -# configuration as well. - -# Note: do not use a PGDATA pathname containing spaces, or you will -# break postgresql-setup. -[Unit] -Description=PostgreSQL 10 database server -Documentation=https://www.postgresql.org/docs/10/static/ -After=syslog.target -After=network.target - -[Service] -Type=notify - -User=postgres -Group=postgres - -# Note: avoid inserting whitespace in these Environment= lines, or you may -# break postgresql-setup. - -# Location of database directory -Environment=PGDATA=/var/lib/pgsql/10/data/ - -# Where to send early-startup messages from the server (before the logging -# options of postgresql.conf take effect) -# This is normally controlled by the global default set by systemd -# StandardOutput=syslog - -# Disable OOM kill on the postmaster -OOMScoreAdjust=-1000 -Environment=PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj -Environment=PG_OOM_ADJUST_VALUE=0 - -ExecStartPre=/usr/pgsql-10/bin/postgresql-10-check-db-dir ${PGDATA} -ExecStart=/usr/pgsql-10/bin/postmaster -D ${PGDATA} -ExecReload=/bin/kill -HUP $MAINPID -KillMode=mixed -KillSignal=SIGINT - - -# Do not set any timeout value, so that systemd will not kill postmaster -# during crash recovery. -TimeoutSec=0 - -[Install] -WantedBy=multi-user.target diff --git a/postgresql/postgresql-10.spec.orig b/postgresql/postgresql-10.spec.orig deleted file mode 100644 index 11335c3503..0000000000 --- a/postgresql/postgresql-10.spec.orig +++ /dev/null @@ -1,1589 +0,0 @@ -# These are macros to be used with find_lang and other stuff -%global packageversion 100 -%global pgpackageversion 10 -%global prevmajorversion 9.6 -%global sname postgresql -%global pgbaseinstdir /usr/pgsql-%{pgmajorversion} - -%global beta 0 -%{?beta:%global __os_install_post /usr/lib/rpm/brp-compress} - -# Macros that define the configure parameters: -%{!?kerbdir:%global kerbdir "/usr"} -%{!?disablepgfts:%global disablepgfts 0} - -%if 0%{?rhel} || 0%{?suse_version} >= 1315 -%{!?enabletaptests:%global enabletaptests 0} -%else -%{!?enabletaptests:%global enabletaptests 1} -%endif - -%{!?icu:%global icu 1} -%{!?kerberos:%global kerberos 1} -%{!?ldap:%global ldap 1} -%{!?nls:%global nls 1} -%{!?pam:%global pam 1} -%{!?plpython2:%global plpython2 1} - -%if 0%{?rhel} && 0%{?rhel} < 7 -# RHEL 6 does not have Python 3 -%{!?plpython3:%global plpython3 0} -%else -# All Fedora releases use Python3 -# Support Python3 on RHEL 7.7+ natively -# RHEL 8 uses Python3 -%{!?plpython3:%global plpython3 1} -# This is the list of contrib modules that will be compiled with PY3 as well: -%global python3_build_list hstore_plpython ltree_plpython -%endif - -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -# Disable PL/Python 3 on SLES 12 -%{!?plpython3:%global plpython3 0} -%endif -%endif - -%{!?pltcl:%global pltcl 1} -%{!?plperl:%global plperl 1} -%{!?ssl:%global ssl 1} -%{!?test:%global test 1} -%{!?runselftest:%global runselftest 0} -%{!?uuid:%global uuid 1} -%{!?xml:%global xml 1} - -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?systemd_enabled:%global systemd_enabled 0} -%{!?sdt:%global sdt 0} -%{!?selinux:%global selinux 0} -%else -%{!?systemd_enabled:%global systemd_enabled 1} -%ifarch ppc64 ppc64le s390 s390x -%{!?sdt:%global sdt 0} -%else - %{!?sdt:%global sdt 1} -%endif -%{!?selinux:%global selinux 1} -%endif - -%if 0%{?fedora} > 23 -%global _hardened_build 1 -%endif - -%ifarch ppc64 ppc64le -# Define the AT version and path. -%global atstring at10.0 -%global atpath /opt/%{atstring} -%endif - -Summary: PostgreSQL client programs and libraries -Name: %{sname}%{pgmajorversion} -Version: 10.12 -Release: 1PGDG%{?dist} -License: PostgreSQL -Url: https://www.postgresql.org/ - -Source0: https://download.postgresql.org/pub/source/v%{version}/%{sname}-%{version}.tar.bz2 -Source4: %{sname}-%{pgmajorversion}-Makefile.regress -Source5: %{sname}-%{pgmajorversion}-pg_config.h -%if %{systemd_enabled} -Source6: %{sname}-%{pgmajorversion}-README-systemd.rpm-dist -%else -Source6: %{sname}-%{pgmajorversion}-README-init.rpm-dist -%endif -Source7: %{sname}-%{pgmajorversion}-ecpg_config.h -Source9: %{sname}-%{pgmajorversion}-libs.conf -Source12: https://www.postgresql.org/files/documentation/pdf/%{pgpackageversion}/%{sname}-%{pgpackageversion}-A4.pdf -Source14: %{sname}-%{pgmajorversion}.pam -Source16: %{sname}-%{pgmajorversion}-filter-requires-perl-Pg.sh -Source17: %{sname}-%{pgmajorversion}-setup -%if %{systemd_enabled} -Source10: %{sname}-%{pgmajorversion}-check-db-dir -Source18: %{sname}-%{pgmajorversion}.service -Source19: %{sname}-%{pgmajorversion}-tmpfiles.d -%else -Source3: %{sname}-%{pgmajorversion}.init -%endif - -Patch1: %{sname}-%{pgmajorversion}-rpm-pgsql.patch -Patch3: %{sname}-%{pgmajorversion}-logging.patch -Patch5: %{sname}-%{pgmajorversion}-var-run-socket.patch -Patch6: %{sname}-%{pgmajorversion}-perl-rpath.patch - -BuildRequires: perl glibc-devel bison flex >= 2.5.31 -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: readline-devel zlib-devel >= 1.0.4 - -# This dependency is needed for Source 16: -%if 0%{?fedora} || 0%{?rhel} > 7 -BuildRequires: perl-generators -%endif - -%ifarch ppc64 ppc64le -BuildRequires: advance-toolchain-%{atstring}-devel -%endif - -Requires: /sbin/ldconfig - -%if %icu -BuildRequires: libicu-devel -Requires: libicu -%endif - -%if %kerberos -BuildRequires: krb5-devel -BuildRequires: e2fsprogs-devel -%endif - -%if %ldap -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -BuildRequires: openldap2-devel -%endif -%else -BuildRequires: openldap-devel -%endif -%endif - -%if %nls -BuildRequires: gettext >= 0.10.35 -%endif - -%if %pam -BuildRequires: pam-devel -%endif - -%if %plperl -%if 0%{?rhel} && 0%{?rhel} >= 7 -BuildRequires: perl-ExtUtils-Embed -%endif -%if 0%{?fedora} >= 22 -BuildRequires: perl-ExtUtils-Embed -%endif -%endif - -%if %plpython2 -BuildRequires: python2-devel -%endif - -%if %plpython3 -BuildRequires: python3-devel -%endif - -%if %pltcl -BuildRequires: tcl-devel -%endif - -%if %sdt -BuildRequires: systemtap-sdt-devel -%endif - -%if %selinux -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -BuildRequires: libselinux-devel >= 2.0.93 -%endif -%else -BuildRequires: libselinux-devel >= 2.0.93 -%endif -BuildRequires: selinux-policy >= 3.9.13 -%endif - -%if %ssl -# We depend on the SSL libraries provided by Advance Toolchain on PPC, -# so use openssl-devel only on other platforms: -%ifnarch ppc64 ppc64le -%if 0%{?suse_version} >= 1315 && 0%{?suse_version} <= 1499 -BuildRequires: libopenssl-devel -%else -BuildRequires: openssl-devel -%endif -%endif -%endif - -%if %uuid -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -BuildRequires: uuid-devel -%endif -%else -BuildRequires: libuuid-devel -%endif -%endif - -%if %xml -BuildRequires: libxml2-devel libxslt-devel -%endif - -%if %{systemd_enabled} -BuildRequires: systemd, systemd-devel -# We require this to be present for %%{_prefix}/lib/tmpfiles.d -Requires: systemd -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -Requires(post): systemd-sysvinit -%endif -%else -Requires(post): systemd-sysv -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd -%endif -%else -Requires(post): chkconfig -Requires(preun): chkconfig -# This is for /sbin/service -Requires(preun): initscripts -Requires(postun): initscripts -%endif - -Requires: %{name}-libs%{?_isa} = %{version}-%{release} - -Requires(post): %{_sbindir}/update-alternatives -Requires(postun): %{_sbindir}/update-alternatives - -Provides: %{sname} >= %{version}-%{release} - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description -PostgreSQL is an advanced Object-Relational database management system (DBMS). -The base postgresql package contains the client programs that you'll need to -access a PostgreSQL DBMS server, as well as HTML documentation for the whole -system. These client programs can be located on the same machine as the -PostgreSQL server, or on a remote machine that accesses a PostgreSQL server -over a network connection. The PostgreSQL server can be found in the -postgresql%{pgmajorversion}-server sub-package. - -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%{pgmajorversion}-server package. - -%package libs -Summary: The shared libraries required for any PostgreSQL clients -Provides: postgresql-libs = %{pgmajorversion} -%if 0%{?rhel} && 0%{?rhel} <= 6 -Requires: openssl -%else -%if 0%{?suse_version} >= 1315 && 0%{?suse_version} <= 1499 -Requires: libopenssl1_0_0 -%else -Requires: openssl-libs >= 1.0.2k -%endif -%endif - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description libs -The postgresql%{pgmajorversion}-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 -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Requires(pre): /usr/sbin/useradd /usr/sbin/groupadd -# for /sbin/ldconfig -Requires(post): glibc -Requires(postun): glibc -%if %{systemd_enabled} -# pre/post stuff needs systemd too - -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -Requires(post): systemd -%endif -%else -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd -%endif -%else -Requires: /usr/sbin/useradd, /sbin/chkconfig -%endif -Provides: postgresql-server >= %{version}-%{release} - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description server -PostgreSQL is an advanced Object-Relational database management system (DBMS). -The postgresql%{pgmajorversion}-server package contains the programs needed to create -and run a PostgreSQL server, which will in turn allow you to create -and maintain PostgreSQL databases. - -%package docs -Summary: Extra documentation for PostgreSQL -Provides: postgresql-docs >= %{version}-%{release} - -%description docs -The postgresql%{pgmajorversion}-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 -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Provides: postgresql-contrib >= %{version}-%{release} - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description contrib -The postgresql%{pgmajorversion}-contrib package contains various extension modules that are -included in the PostgreSQL distribution. - -%package devel -Summary: PostgreSQL development header files and libraries -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -%if %icu -Requires: libicu-devel -%endif - -%if %enabletaptests -%if 0%{?suse_version} && 0%{?suse_version} >= 1315 -Requires: perl-IPC-Run -BuildRequires: perl-IPC-Run -%endif -%if 0%{?rhel} && 0%{?rhel} <= 7 -Requires: perl-Test-Simple -BuildRequires: perl-Test-Simple -%endif -%if 0%{?fedora} -Requires: perl-IPC-Run -BuildRequires: perl-IPC-Run -%endif -%endif - -Provides: postgresql-devel >= %{version}-%{release} - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description devel -The postgresql%{pgmajorversion}-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. It also contains 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 -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -%ifarch ppc ppc64 -BuildRequires: perl-devel -%endif -Obsoletes: postgresql%{pgmajorversion}-pl <= %{version}-%{release} -Provides: postgresql-plperl >= %{version}-%{release} - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description plperl -The postgresql%{pgmajorversion}-plperl package contains the PL/Perl procedural language, -which is an extension to the PostgreSQL database server. -Install this if you want to write database functions in Perl. - -%endif - -%if %plpython2 -%package plpython -Summary: The Python procedural language for PostgreSQL -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Obsoletes: %{name}-pl <= %{version}-%{release} -Provides: postgresql-plpython >= %{version}-%{release} -Provides: %{name}-plpython2%{?_isa} = %{version}-%{release} -%if 0%{?rhel} && 0%{?rhel} <= 6 -Requires: python-libs -%else -Requires: python2-libs -%endif - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description plpython -The postgresql%{pgmajorversion}-plpython package contains the PL/Python procedural language, -which is an extension to the PostgreSQL database server. -Install this if you want to write database functions in Python. - -%endif - -%if %plpython3 -%package plpython3 -Summary: The Python3 procedural language for PostgreSQL -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Obsoletes: %{name}-pl <= %{version}-%{release} -Provides: postgresql-plpython3 >= %{version}-%{release} -Requires: python3-libs - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description plpython3 -The postgresql%{pgmajorversion}-plpython3 package contains the PL/Python3 procedural language, -which is an extension to the PostgreSQL database server. -Install this if you want to write database functions in Python 3. - -%endif - -%if %pltcl -%package pltcl -Summary: The Tcl procedural language for PostgreSQL -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Requires: tcl -Obsoletes: %{name}-pl <= %{version}-%{release} -Provides: postgresql-pltcl >= %{version}-%{release} - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description pltcl -PostgreSQL is an advanced Object-Relational database management -system. The %{name}-pltcl package contains the PL/Tcl language -for the backend. -%endif - -%if %test -%package test -Summary: The test suite distributed with PostgreSQL -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Requires: %{name}-devel%{?_isa} = %{version}-%{release} -Provides: postgresql-test >= %{version}-%{release} - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description test -The postgresql%{pgmajorversion}-test package contains files needed for various tests for the -PostgreSQL database management system, including regression tests and -benchmarks. -%endif - -%global __perl_requires %{SOURCE16} - -%prep -%setup -q -n %{sname}-%{version} -%patch1 -p1 -%patch3 -p0 -%patch5 -p0 -%patch6 -p0 - -%{__cp} -p %{SOURCE12} . - -%build - -# fail quickly and obviously if user tries to build as root -%if %runselftest - if [ x"`id -u`" = x0 ]; then - echo "postgresql's regression tests fail if run as root." - echo "If you really need to build the RPM as root, use" - echo "--define='runselftest 0' to skip the regression tests." - exit 1 - fi -%endif - -CFLAGS="${CFLAGS:-%optflags}" -%ifarch ppc64 ppc64le - CFLAGS="${CFLAGS} $(echo %{__global_cflags} | sed 's/-O2/-O3/g') -m64 -mcpu=power8 -mtune=power8 -I%{atpath}/include" - CXXFLAGS="${CXXFLAGS} $(echo %{__global_cflags} | sed 's/-O2/-O3/g') -m64 -mcpu=power8 -mtune=power8 -I%{atpath}/include" - LDFLAGS="-L%{atpath}/%{_lib}" - CC=%{atpath}/bin/gcc; export CC -%else - # Strip out -ffast-math from CFLAGS.... - CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100` - %if 0%{?rhel} - LDFLAGS="-Wl,--as-needed"; export LDFLAGS - %endif -%endif - -export CFLAGS - -%if %icu -# Export ICU flags on RHEL 6: -%if 0%{?rhel} && 0%{?rhel} <= 6 - ICU_CFLAGS='-I%{_includedir}'; export ICU_CFLAGS - ICU_LIBS='-L%{_libdir} -licui18n -licuuc -licudata'; export ICU_LIBS -%endif -%endif - -# plpython requires separate configure/build runs to build against python 2 -# versus python 3. Our strategy is to do the python 3 run first, then make -# distclean and do it again for the "normal" build. Note that the installed -# Makefile.global will reflect the python 2 build, which seems appropriate -# since that's still considered the default plpython version. -%if %plpython3 - -export PYTHON=/usr/bin/python3 - -# These configure options must match main build -./configure --enable-rpath \ - --prefix=%{pgbaseinstdir} \ - --includedir=%{pgbaseinstdir}/include \ - --mandir=%{pgbaseinstdir}/share/man \ - --datadir=%{pgbaseinstdir}/share \ - --libdir=%{pgbaseinstdir}/lib \ -%if %beta - --enable-debug \ - --enable-cassert \ -%endif -%if %enabletaptests - --enable-tap-tests \ -%endif -%if %icu - --with-icu \ -%endif -%if %plperl - --with-perl \ -%endif -%if %plpython3 - --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 %sdt - --enable-dtrace \ -%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 -%if %selinux - --with-selinux \ -%endif -%if %{systemd_enabled} - --with-systemd \ -%endif -%ifarch ppc64 ppc64le - --with-includes=%{atpath}/include \ - --with-libraries=%{atpath}/lib64 \ -%endif - --with-system-tzdata=%{_datadir}/zoneinfo \ - --sysconfdir=/etc/sysconfig/pgsql \ - --docdir=%{pgbaseinstdir}/doc \ - --htmldir=%{pgbaseinstdir}/doc/html -# We need to build PL/Python and a few extensions: -# Build PL/Python -cd src/backend -%{__make} submake-errcodes -cd ../.. -cd src/pl/plpython -%{__make} %{?_smp_mflags} all -cd .. -# save built form in a directory that "make distclean" won't touch -%{__cp} -a plpython plpython3 -cd ../.. -# Build some of the extensions with PY3 support -for p3bl in %{python3_build_list} ; do - p3blpy3dir="$p3bl"3 - pushd contrib/$p3bl - %{__make} %{?_smp_mflags} all - cd .. - # save built form in a directory that "make distclean" won't touch - %{__cp} -a $p3bl $p3blpy3dir - popd -done - - -# must also save this version of Makefile.global for later -%{__cp} src/Makefile.global src/Makefile.global.python3 - -%{__make} distclean - -%endif - -unset PYTHON -# Explicitly run Python2 here -- in future releases, -# Python3 will be the default. -export PYTHON=/usr/bin/python2 - -# Normal (not python3) build begins here -./configure --enable-rpath \ - --prefix=%{pgbaseinstdir} \ - --includedir=%{pgbaseinstdir}/include \ - --libdir=%{pgbaseinstdir}/lib \ - --mandir=%{pgbaseinstdir}/share/man \ - --datadir=%{pgbaseinstdir}/share \ -%if %beta - --enable-debug \ - --enable-cassert \ -%endif -%if %enabletaptests - --enable-tap-tests \ -%endif -%if %icu - --with-icu \ -%endif -%if %plperl - --with-perl \ -%endif -%if %plpython2 - --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 %sdt - --enable-dtrace \ -%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 -%if %selinux - --with-selinux \ -%endif -%if %{systemd_enabled} - --with-systemd \ -%endif -%ifarch ppc64 ppc64le - --with-includes=%{atpath}/include \ - --with-libraries=%{atpath}/lib64 \ -%endif - --with-system-tzdata=%{_datadir}/zoneinfo \ - --sysconfdir=/etc/sysconfig/pgsql \ - --docdir=%{pgbaseinstdir}/doc \ - --htmldir=%{pgbaseinstdir}/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=%{pgbaseinstdir}/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} clean -C "src/test/regress" - run_testsuite "src/pl" -%if %plpython3 - # must install Makefile.global that selects python3 - %{__mv} src/Makefile.global src/Makefile.global.save - %{__cp} src/Makefile.global.python3 src/Makefile.global - touch -r src/Makefile.global.save src/Makefile.global - # because "make check" does "make install" on the whole tree, - # we must temporarily install plpython3 as src/pl/plpython, - # since that is the subdirectory src/pl/Makefile knows about - %{__mv} src/pl/plpython src/pl/plpython2 - %{__mv} src/pl/plpython3 src/pl/plpython - - run_testsuite "src/pl/plpython" - - # and clean up our mess - %{__mv} src/pl/plpython src/pl/plpython3 - %{__mv} src/pl/plpython2 src/pl/plpython - %{__mv} -f src/Makefile.global.save src/Makefile.global -%endif - run_testsuite "contrib" -%endif - -%if %test - pushd src/test/regress - %{__make} all - popd -%endif - -%install -%{__rm} -rf %{buildroot} - -%{__make} DESTDIR=%{buildroot} install - -%if %plpython3 - %{__mv} src/Makefile.global src/Makefile.global.save - %{__cp} src/Makefile.global.python3 src/Makefile.global - touch -r src/Makefile.global.save src/Makefile.global - # Install PL/Python3 - pushd src/pl/plpython3 - %{__make} DESTDIR=%{buildroot} install - popd - - for p3bl in %{python3_build_list} ; do - p3blpy3dir="$p3bl"3 - pushd contrib/$p3blpy3dir - %{__make} DESTDIR=%{buildroot} install - popd - done - - %{__mv} -f src/Makefile.global.save src/Makefile.global -%endif - -%{__mkdir} -p %{buildroot}%{pgbaseinstdir}/share/extensions/ -%{__make} -C contrib DESTDIR=%{buildroot} install -%if %uuid -%{__make} -C contrib/uuid-ossp DESTDIR=%{buildroot} install -%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 | ppc | ppc64 | s390 | s390x) - %{__mv} %{buildroot}%{pgbaseinstdir}/include/pg_config.h %{buildroot}%{pgbaseinstdir}/include/pg_config_`uname -i`.h - %{__install} -m 644 %{SOURCE5} %{buildroot}%{pgbaseinstdir}/include/pg_config.h - %{__mv} %{buildroot}%{pgbaseinstdir}/include/server/pg_config.h %{buildroot}%{pgbaseinstdir}/include/server/pg_config_`uname -i`.h - %{__install} -m 644 %{SOURCE5} %{buildroot}%{pgbaseinstdir}/include/server/pg_config.h - %{__mv} %{buildroot}%{pgbaseinstdir}/include/ecpg_config.h %{buildroot}%{pgbaseinstdir}/include/ecpg_config_`uname -i`.h - %{__install} -m 644 %{SOURCE7} %{buildroot}%{pgbaseinstdir}/include/ecpg_config.h - ;; - *) - ;; -esac - -# This is only for systemd supported distros: -%if %{systemd_enabled} -# prep the setup script, including insertion of some values it needs -sed -e 's|^PGVERSION=.*$|PGVERSION=%{pgmajorversion}|' \ - -e 's|^PGENGINE=.*$|PGENGINE=%{pgbaseinstdir}/bin|' \ - -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ - <%{SOURCE17} >postgresql-%{pgmajorversion}-setup -%{__install} -m 755 postgresql-%{pgmajorversion}-setup %{buildroot}%{pgbaseinstdir}/bin/postgresql-%{pgmajorversion}-setup - -# prep the startup check script, including insertion of some values it needs -sed -e 's|^PGVERSION=.*$|PGVERSION=%{pgmajorversion}|' \ - -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ - -e 's|^PGDOCDIR=.*$|PGDOCDIR=%{_pkgdocdir}|' \ - <%{SOURCE10} >%{sname}-%{pgmajorversion}-check-db-dir -touch -r %{SOURCE10} %{sname}-%{pgmajorversion}-check-db-dir -%{__install} -m 755 %{sname}-%{pgmajorversion}-check-db-dir %{buildroot}%{pgbaseinstdir}/bin/%{sname}-%{pgmajorversion}-check-db-dir - -%{__install} -d %{buildroot}%{_unitdir} -%{__install} -m 644 %{SOURCE18} %{buildroot}%{_unitdir}/%{sname}-%{pgmajorversion}.service -%else -%{__install} -d %{buildroot}%{_initrddir} -sed 's/^PGVERSION=.*$/PGVERSION=%{version}/' <%{SOURCE3} > %{sname}.init -%{__install} -m 755 %{sname}.init %{buildroot}%{_initrddir}/%{sname}-%{pgmajorversion} -%endif - -%if %pam -%{__install} -d %{buildroot}/etc/pam.d -%{__install} -m 644 %{SOURCE14} %{buildroot}/etc/pam.d/%{sname} -%endif - -# Create the directory for sockets. -%{__install} -d -m 755 %{buildroot}/var/run/%{sname} -%if %{systemd_enabled} -# ... and make a tmpfiles script to recreate it at reboot. -%{__mkdir} -p %{buildroot}/%{_tmpfilesdir} -%{__install} -m 0644 %{SOURCE19} %{buildroot}/%{_tmpfilesdir}/%{sname}-%{pgmajorversion}.conf -%endif - -# PGDATA needs removal of group and world permissions due to pg_pwd hole. -%{__install} -d -m 700 %{buildroot}/var/lib/pgsql/%{pgmajorversion}/data - -# backups of data go here... -%{__install} -d -m 700 %{buildroot}/var/lib/pgsql/%{pgmajorversion}/backups - -# Create the multiple postmaster startup directory -%{__install} -d -m 700 %{buildroot}/etc/sysconfig/pgsql/%{pgmajorversion} - -# Install linker conf file under postgresql installation directory. -# We will install the latest version via alternatives. -%{__install} -d -m 755 %{buildroot}%{pgbaseinstdir}/share/ -%{__install} -m 700 %{SOURCE9} %{buildroot}%{pgbaseinstdir}/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}%{pgbaseinstdir}/lib/test - %{__cp} -a src/test/regress %{buildroot}%{pgbaseinstdir}/lib/test - %{__install} -m 0755 contrib/spi/refint.so %{buildroot}%{pgbaseinstdir}/lib/test/regress - %{__install} -m 0755 contrib/spi/autoinc.so %{buildroot}%{pgbaseinstdir}/lib/test/regress - pushd %{buildroot}%{pgbaseinstdir}/lib/test/regress - strip *.so - %{__rm} -f GNUmakefile Makefile *.o - chmod 0755 pg_regress regress.so - popd - %{__cp} %{SOURCE4} %{buildroot}%{pgbaseinstdir}/lib/test/regress/Makefile - chmod 0644 %{buildroot}%{pgbaseinstdir}/lib/test/regress/Makefile -%endif - -# Fix some more documentation -# gzip doc/internals.ps -%{__cp} %{SOURCE6} README.rpm-dist -%{__mkdir} -p %{buildroot}%{pgbaseinstdir}/share/doc/html -%{__mv} doc/src/sgml/html doc -%{__mkdir} -p %{buildroot}%{pgbaseinstdir}/share/man/ -%{__mv} doc/src/sgml/man1 doc/src/sgml/man3 doc/src/sgml/man7 %{buildroot}%{pgbaseinstdir}/share/man/ -%{__rm} -rf %{buildroot}%{_docdir}/pgsql - -# Quick hack for RHEL <= 7 and not compiled with PL/Python3 support: -%if 0%{?rhel} <= 7 && ! 0%{?plpython3} -%{__rm} -f %{buildroot}/%{pgbaseinstdir}/share/extension/hstore_plpython3u* -%{__rm} -f %{buildroot}/%{pgbaseinstdir}/share/extension/ltree_plpython3u* -%endif - -# 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 -%{__cp} /dev/null pg_plpython3.lst - -%if %nls -%find_lang ecpg-%{pgmajorversion} -%find_lang ecpglib6-%{pgmajorversion} -%find_lang initdb-%{pgmajorversion} -%find_lang libpq5-%{pgmajorversion} -%find_lang pg_archivecleanup-%{pgmajorversion} -%find_lang pg_basebackup-%{pgmajorversion} -%find_lang pg_config-%{pgmajorversion} -%find_lang pg_controldata-%{pgmajorversion} -%find_lang pg_ctl-%{pgmajorversion} -%find_lang pg_dump-%{pgmajorversion} -%find_lang pg_resetwal-%{pgmajorversion} -%find_lang pg_rewind-%{pgmajorversion} -%find_lang pg_test_fsync-%{pgmajorversion} -%find_lang pg_test_timing-%{pgmajorversion} -%find_lang pg_upgrade-%{pgmajorversion} -%find_lang pg_waldump-%{pgmajorversion} -%find_lang pgscripts-%{pgmajorversion} -%if %plperl -%find_lang plperl-%{pgmajorversion} -cat plperl-%{pgmajorversion}.lang > pg_plperl.lst -%endif -%find_lang plpgsql-%{pgmajorversion} -%if %plpython2 -%find_lang plpython-%{pgmajorversion} -cat plpython-%{pgmajorversion}.lang > pg_plpython.lst -%endif -%if %plpython3 -# plpython3 shares message files with plpython -%find_lang plpython-%{pgmajorversion} -cat plpython-%{pgmajorversion}.lang >> pg_plpython3.lst -%endif - -%if %pltcl -%find_lang pltcl-%{pgmajorversion} -cat pltcl-%{pgmajorversion}.lang > pg_pltcl.lst -%endif -%find_lang postgres-%{pgmajorversion} -%find_lang psql-%{pgmajorversion} - -cat libpq5-%{pgmajorversion}.lang > pg_libpq5.lst -cat pg_config-%{pgmajorversion}.lang ecpg-%{pgmajorversion}.lang ecpglib6-%{pgmajorversion}.lang > pg_devel.lst -cat initdb-%{pgmajorversion}.lang pg_ctl-%{pgmajorversion}.lang psql-%{pgmajorversion}.lang pg_dump-%{pgmajorversion}.lang pg_basebackup-%{pgmajorversion}.lang pg_rewind-%{pgmajorversion}.lang pg_upgrade-%{pgmajorversion}.lang pg_test_timing-%{pgmajorversion}.lang pg_test_fsync-%{pgmajorversion}.lang pg_archivecleanup-%{pgmajorversion}.lang pg_waldump-%{pgmajorversion}.lang pgscripts-%{pgmajorversion}.lang > pg_main.lst -cat postgres-%{pgmajorversion}.lang pg_resetwal-%{pgmajorversion}.lang pg_controldata-%{pgmajorversion}.lang plpgsql-%{pgmajorversion}.lang > pg_server.lst -%endif - -%pre server -groupadd -g 26 -o -r postgres >/dev/null 2>&1 || : -useradd -M -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ - -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || : - -%post server -/sbin/ldconfig -if [ $1 -eq 1 ] ; then - %if %{systemd_enabled} - /bin/systemctl daemon-reload >/dev/null 2>&1 || : - %if 0%{?suse_version} - %if 0%{?suse_version} >= 1315 - %service_add_pre postgresql-%{pgpackageversion}.service - %endif - %else - %systemd_post %{sname}-%{pgpackageversion}.service - %endif - %else - chkconfig --add %{sname}-%{pgpackageversion} - %endif -fi - -# postgres' .bash_profile. -# We now don't install .bash_profile as we used to in pre 9.0. Instead, use cat, -# so that package manager will be happy during upgrade to new major version. -echo "[ -f /etc/profile ] && source /etc/profile -PGDATA=/var/lib/pgsql/%{pgmajorversion}/data -export PGDATA -# If you want to customize your settings, -# Use the file below. This is not overridden -# by the RPMS. -[ -f /var/lib/pgsql/.pgsql_profile ] && source /var/lib/pgsql/.pgsql_profile" > /var/lib/pgsql/.bash_profile -chown postgres: /var/lib/pgsql/.bash_profile -chmod 700 /var/lib/pgsql/.bash_profile - -%preun server -if [ $1 -eq 0 ] ; then -%if %{systemd_enabled} - # Package removal, not upgrade - /bin/systemctl --no-reload disable %{sname}-%{pgmajorversion}.service >/dev/null 2>&1 || : - /bin/systemctl stop %{sname}-%{pgmajorversion}.service >/dev/null 2>&1 || : -%else - /sbin/service %{sname}-%{pgmajorversion} condstop >/dev/null 2>&1 - chkconfig --del %{sname}-%{pgmajorversion} - -%endif -fi - -%postun server -/sbin/ldconfig -%if %{systemd_enabled} - /bin/systemctl daemon-reload >/dev/null 2>&1 || : -%else - /sbin/service %{sname}-%{pgmajorversion} condrestart >/dev/null 2>&1 -%endif -if [ $1 -ge 1 ] ; then - %if %{systemd_enabled} - # Package upgrade, not uninstall - /bin/systemctl try-restart %{sname}-%{pgmajorversion}.service >/dev/null 2>&1 || : - %else - /sbin/service %{sname}-%{pgmajorversion} condrestart >/dev/null 2>&1 - %endif -fi - -# Create alternatives entries for common binaries and man files -%post -%{_sbindir}/update-alternatives --install %{_bindir}/psql pgsql-psql %{pgbaseinstdir}/bin/psql %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/clusterdb pgsql-clusterdb %{pgbaseinstdir}/bin/clusterdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/createdb pgsql-createdb %{pgbaseinstdir}/bin/createdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/createuser pgsql-createuser %{pgbaseinstdir}/bin/createuser %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/dropdb pgsql-dropdb %{pgbaseinstdir}/bin/dropdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/dropuser pgsql-dropuser %{pgbaseinstdir}/bin/dropuser %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/pg_basebackup pgsql-pg_basebackup %{pgbaseinstdir}/bin/pg_basebackup %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/pg_dump pgsql-pg_dump %{pgbaseinstdir}/bin/pg_dump %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/pg_dumpall pgsql-pg_dumpall %{pgbaseinstdir}/bin/pg_dumpall %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/pg_restore pgsql-pg_restore %{pgbaseinstdir}/bin/pg_restore %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/reindexdb pgsql-reindexdb %{pgbaseinstdir}/bin/reindexdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/vacuumdb pgsql-vacuumdb %{pgbaseinstdir}/bin/vacuumdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/clusterdb.1 pgsql-clusterdbman %{pgbaseinstdir}/share/man/man1/clusterdb.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/createdb.1 pgsql-createdbman %{pgbaseinstdir}/share/man/man1/createdb.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/createuser.1 pgsql-createuserman %{pgbaseinstdir}/share/man/man1/createuser.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/dropdb.1 pgsql-dropdbman %{pgbaseinstdir}/share/man/man1/dropdb.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/dropuser.1 pgsql-dropuserman %{pgbaseinstdir}/share/man/man1/dropuser.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/pg_basebackup.1 pgsql-pg_basebackupman %{pgbaseinstdir}/share/man/man1/pg_basebackup.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/pg_dump.1 pgsql-pg_dumpman %{pgbaseinstdir}/share/man/man1/pg_dump.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/pg_dumpall.1 pgsql-pg_dumpallman %{pgbaseinstdir}/share/man/man1/pg_dumpall.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/pg_restore.1 pgsql-pg_restoreman %{pgbaseinstdir}/share/man/man1/pg_restore.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/psql.1 pgsql-psqlman %{pgbaseinstdir}/share/man/man1/psql.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/reindexdb.1 pgsql-reindexdbman %{pgbaseinstdir}/share/man/man1/reindexdb.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/vacuumdb.1 pgsql-vacuumdbman %{pgbaseinstdir}/share/man/man1/vacuumdb.1 %{packageversion}0 - -%post libs -%{_sbindir}/update-alternatives --install /etc/ld.so.conf.d/%{sname}-pgdg-libs.conf pgsql-ld-conf %{pgbaseinstdir}/share/%{sname}-%{pgmajorversion}-libs.conf %{packageversion}0 -/sbin/ldconfig - -# 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) - %{_sbindir}/update-alternatives --remove pgsql-psql %{pgbaseinstdir}/bin/psql - %{_sbindir}/update-alternatives --remove pgsql-clusterdb %{pgbaseinstdir}/bin/clusterdb - %{_sbindir}/update-alternatives --remove pgsql-clusterdbman %{pgbaseinstdir}/share/man/man1/clusterdb.1 - %{_sbindir}/update-alternatives --remove pgsql-createdb %{pgbaseinstdir}/bin/createdb - %{_sbindir}/update-alternatives --remove pgsql-createdbman %{pgbaseinstdir}/share/man/man1/createdb.1 - %{_sbindir}/update-alternatives --remove pgsql-createuser %{pgbaseinstdir}/bin/createuser - %{_sbindir}/update-alternatives --remove pgsql-createuserman %{pgbaseinstdir}/share/man/man1/createuser.1 - %{_sbindir}/update-alternatives --remove pgsql-dropdb %{pgbaseinstdir}/bin/dropdb - %{_sbindir}/update-alternatives --remove pgsql-dropdbman %{pgbaseinstdir}/share/man/man1/dropdb.1 - %{_sbindir}/update-alternatives --remove pgsql-dropuser %{pgbaseinstdir}/bin/dropuser - %{_sbindir}/update-alternatives --remove pgsql-dropuserman %{pgbaseinstdir}/share/man/man1/dropuser.1 - %{_sbindir}/update-alternatives --remove pgsql-pg_basebackup %{pgbaseinstdir}/bin/pg_basebackup - %{_sbindir}/update-alternatives --remove pgsql-pg_dump %{pgbaseinstdir}/bin/pg_dump - %{_sbindir}/update-alternatives --remove pgsql-pg_dumpall %{pgbaseinstdir}/bin/pg_dumpall - %{_sbindir}/update-alternatives --remove pgsql-pg_dumpallman %{pgbaseinstdir}/share/man/man1/pg_dumpall.1 - %{_sbindir}/update-alternatives --remove pgsql-pg_basebackupman %{pgbaseinstdir}/share/man/man1/pg_basebackup.1 - %{_sbindir}/update-alternatives --remove pgsql-pg_dumpman %{pgbaseinstdir}/share/man/man1/pg_dump.1 - %{_sbindir}/update-alternatives --remove pgsql-pg_restore %{pgbaseinstdir}/bin/pg_restore - %{_sbindir}/update-alternatives --remove pgsql-pg_restoreman %{pgbaseinstdir}/share/man/man1/pg_restore.1 - %{_sbindir}/update-alternatives --remove pgsql-psqlman %{pgbaseinstdir}/share/man/man1/psql.1 - %{_sbindir}/update-alternatives --remove pgsql-reindexdb %{pgbaseinstdir}/bin/reindexdb - %{_sbindir}/update-alternatives --remove pgsql-reindexdbman %{pgbaseinstdir}/share/man/man1/reindexdb.1 - %{_sbindir}/update-alternatives --remove pgsql-vacuumdb %{pgbaseinstdir}/bin/vacuumdb - %{_sbindir}/update-alternatives --remove pgsql-vacuumdbman %{pgbaseinstdir}/share/man/man1/vacuumdb.1 - fi - -%postun libs -if [ "$1" -eq 0 ] - then - %{_sbindir}/update-alternatives --remove pgsql-ld-conf %{pgbaseinstdir}/share/%{sname}-%{pgmajorversion}-libs.conf - /sbin/ldconfig -fi - -%clean -%{__rm} -rf %{buildroot} - -# FILES section. - -%files -f pg_main.lst -%defattr(-,root,root) -%doc doc/KNOWN_BUGS doc/MISSING_FEATURES -%doc COPYRIGHT doc/bug.template -%doc README.rpm-dist -%{pgbaseinstdir}/bin/clusterdb -%{pgbaseinstdir}/bin/createdb -%{pgbaseinstdir}/bin/createuser -%{pgbaseinstdir}/bin/dropdb -%{pgbaseinstdir}/bin/dropuser -%{pgbaseinstdir}/bin/pgbench -%{pgbaseinstdir}/bin/pg_archivecleanup -%{pgbaseinstdir}/bin/pg_basebackup -%{pgbaseinstdir}/bin/pg_config -%{pgbaseinstdir}/bin/pg_dump -%{pgbaseinstdir}/bin/pg_dumpall -%{pgbaseinstdir}/bin/pg_isready -%{pgbaseinstdir}/bin/pg_restore -%{pgbaseinstdir}/bin/pg_rewind -%{pgbaseinstdir}/bin/pg_test_fsync -%{pgbaseinstdir}/bin/pg_test_timing -%{pgbaseinstdir}/bin/pg_receivewal -%{pgbaseinstdir}/bin/pg_upgrade -%{pgbaseinstdir}/bin/pg_waldump -%{pgbaseinstdir}/bin/psql -%{pgbaseinstdir}/bin/reindexdb -%{pgbaseinstdir}/bin/vacuumdb -%{pgbaseinstdir}/share/man/man1/clusterdb.* -%{pgbaseinstdir}/share/man/man1/createdb.* -%{pgbaseinstdir}/share/man/man1/createuser.* -%{pgbaseinstdir}/share/man/man1/dropdb.* -%{pgbaseinstdir}/share/man/man1/dropuser.* -%{pgbaseinstdir}/share/man/man1/pgbench.1 -%{pgbaseinstdir}/share/man/man1/pg_archivecleanup.1 -%{pgbaseinstdir}/share/man/man1/pg_basebackup.* -%{pgbaseinstdir}/share/man/man1/pg_config.* -%{pgbaseinstdir}/share/man/man1/pg_dump.* -%{pgbaseinstdir}/share/man/man1/pg_dumpall.* -%{pgbaseinstdir}/share/man/man1/pg_isready.* -%{pgbaseinstdir}/share/man/man1/pg_receivewal.* -%{pgbaseinstdir}/share/man/man1/pg_restore.* -%{pgbaseinstdir}/share/man/man1/pg_rewind.1 -%{pgbaseinstdir}/share/man/man1/pg_test_fsync.1 -%{pgbaseinstdir}/share/man/man1/pg_test_timing.1 -%{pgbaseinstdir}/share/man/man1/pg_upgrade.1 -%{pgbaseinstdir}/share/man/man1/pg_waldump.1 -%{pgbaseinstdir}/share/man/man1/psql.* -%{pgbaseinstdir}/share/man/man1/reindexdb.* -%{pgbaseinstdir}/share/man/man1/vacuumdb.* -%{pgbaseinstdir}/share/man/man3/* -%{pgbaseinstdir}/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 %{pgbaseinstdir}/doc/extension/*.example -%{pgbaseinstdir}/lib/_int.so -%{pgbaseinstdir}/lib/adminpack.so -%{pgbaseinstdir}/lib/amcheck.so -%{pgbaseinstdir}/lib/auth_delay.so -%{pgbaseinstdir}/lib/autoinc.so -%{pgbaseinstdir}/lib/auto_explain.so -%{pgbaseinstdir}/lib/bloom.so -%{pgbaseinstdir}/lib/btree_gin.so -%{pgbaseinstdir}/lib/btree_gist.so -%{pgbaseinstdir}/lib/chkpass.so -%{pgbaseinstdir}/lib/citext.so -%{pgbaseinstdir}/lib/cube.so -%{pgbaseinstdir}/lib/dblink.so -%{pgbaseinstdir}/lib/earthdistance.so -%{pgbaseinstdir}/lib/file_fdw.so* -%{pgbaseinstdir}/lib/fuzzystrmatch.so -%{pgbaseinstdir}/lib/insert_username.so -%{pgbaseinstdir}/lib/isn.so -%{pgbaseinstdir}/lib/hstore.so -%if %plperl -%{pgbaseinstdir}/lib/hstore_plperl.so -%endif -%{pgbaseinstdir}/lib/lo.so -%{pgbaseinstdir}/lib/ltree.so -%{pgbaseinstdir}/lib/moddatetime.so -%{pgbaseinstdir}/lib/pageinspect.so -%{pgbaseinstdir}/lib/passwordcheck.so -%{pgbaseinstdir}/lib/pgcrypto.so -%{pgbaseinstdir}/lib/pgrowlocks.so -%{pgbaseinstdir}/lib/pgstattuple.so -%{pgbaseinstdir}/lib/pg_buffercache.so -%{pgbaseinstdir}/lib/pg_freespacemap.so -%{pgbaseinstdir}/lib/pg_prewarm.so -%{pgbaseinstdir}/lib/pg_stat_statements.so -%{pgbaseinstdir}/lib/pg_trgm.so -%{pgbaseinstdir}/lib/pg_visibility.so -%{pgbaseinstdir}/lib/postgres_fdw.so -%{pgbaseinstdir}/lib/refint.so -%{pgbaseinstdir}/lib/seg.so -%if %ssl -%{pgbaseinstdir}/lib/sslinfo.so -%endif -%if %selinux -%{pgbaseinstdir}/lib/sepgsql.so -%{pgbaseinstdir}/share/contrib/sepgsql.sql -%endif -%{pgbaseinstdir}/lib/tablefunc.so -%{pgbaseinstdir}/lib/tcn.so -%{pgbaseinstdir}/lib/test_decoding.so -%{pgbaseinstdir}/lib/timetravel.so -%{pgbaseinstdir}/lib/tsm_system_rows.so -%{pgbaseinstdir}/lib/tsm_system_time.so -%{pgbaseinstdir}/lib/unaccent.so -%if %xml -%{pgbaseinstdir}/lib/pgxml.so -%endif -%if %uuid -%{pgbaseinstdir}/lib/uuid-ossp.so -%endif -%{pgbaseinstdir}/share/extension/adminpack* -%{pgbaseinstdir}/share/extension/amcheck* -%{pgbaseinstdir}/share/extension/autoinc* -%{pgbaseinstdir}/share/extension/bloom* -%{pgbaseinstdir}/share/extension/btree_gin* -%{pgbaseinstdir}/share/extension/btree_gist* -%{pgbaseinstdir}/share/extension/chkpass* -%{pgbaseinstdir}/share/extension/citext* -%{pgbaseinstdir}/share/extension/cube* -%{pgbaseinstdir}/share/extension/dblink* -%{pgbaseinstdir}/share/extension/dict_int* -%{pgbaseinstdir}/share/extension/dict_xsyn* -%{pgbaseinstdir}/share/extension/earthdistance* -%{pgbaseinstdir}/share/extension/file_fdw* -%{pgbaseinstdir}/share/extension/fuzzystrmatch* -%{pgbaseinstdir}/share/extension/hstore.control -%{pgbaseinstdir}/share/extension/hstore--*.sql -%{pgbaseinstdir}/share/extension/hstore_plperl* -%{pgbaseinstdir}/share/extension/insert_username* -%{pgbaseinstdir}/share/extension/intagg* -%{pgbaseinstdir}/share/extension/intarray* -%{pgbaseinstdir}/share/extension/isn* -%{pgbaseinstdir}/share/extension/lo* -%{pgbaseinstdir}/share/extension/ltree.control -%{pgbaseinstdir}/share/extension/ltree--*.sql -%{pgbaseinstdir}/share/extension/moddatetime* -%{pgbaseinstdir}/share/extension/pageinspect* -%{pgbaseinstdir}/share/extension/pg_buffercache* -%{pgbaseinstdir}/share/extension/pg_freespacemap* -%{pgbaseinstdir}/share/extension/pg_prewarm* -%{pgbaseinstdir}/share/extension/pg_stat_statements* -%{pgbaseinstdir}/share/extension/pg_trgm* -%{pgbaseinstdir}/share/extension/pg_visibility* -%{pgbaseinstdir}/share/extension/pgcrypto* -%{pgbaseinstdir}/share/extension/pgrowlocks* -%{pgbaseinstdir}/share/extension/pgstattuple* -%{pgbaseinstdir}/share/extension/postgres_fdw* -%{pgbaseinstdir}/share/extension/refint* -%{pgbaseinstdir}/share/extension/seg* -%if %ssl -%{pgbaseinstdir}/share/extension/sslinfo* -%endif -%{pgbaseinstdir}/share/extension/tablefunc* -%{pgbaseinstdir}/share/extension/tcn* -%{pgbaseinstdir}/share/extension/timetravel* -%{pgbaseinstdir}/share/extension/tsm_system_rows* -%{pgbaseinstdir}/share/extension/tsm_system_time* -%{pgbaseinstdir}/share/extension/unaccent* -%if %uuid -%{pgbaseinstdir}/share/extension/uuid-ossp* -%endif -%if %xml -%{pgbaseinstdir}/share/extension/xml2* -%endif -%{pgbaseinstdir}/bin/oid2name -%{pgbaseinstdir}/bin/vacuumlo -%{pgbaseinstdir}/bin/pg_recvlogical -%{pgbaseinstdir}/bin/pg_standby -%{pgbaseinstdir}/share/man/man1/oid2name.1 -%{pgbaseinstdir}/share/man/man1/pg_recvlogical.1 -%{pgbaseinstdir}/share/man/man1/pg_standby.1 -%{pgbaseinstdir}/share/man/man1/vacuumlo.1 - -%files libs -f pg_libpq5.lst -%defattr(-,root,root) -%{pgbaseinstdir}/lib/libpq.so.* -%{pgbaseinstdir}/lib/libecpg.so* -%{pgbaseinstdir}/lib/libpgfeutils.a -%{pgbaseinstdir}/lib/libpgtypes.so.* -%{pgbaseinstdir}/lib/libecpg_compat.so.* -%{pgbaseinstdir}/lib/libpqwalreceiver.so -%config(noreplace) %attr (644,root,root) %{pgbaseinstdir}/share/%{sname}-%{pgmajorversion}-libs.conf - -%files server -f pg_server.lst -%defattr(-,root,root) -%if %{systemd_enabled} -%{pgbaseinstdir}/bin/%{sname}-%{pgmajorversion}-setup -%{pgbaseinstdir}/bin/%{sname}-%{pgmajorversion}-check-db-dir -%{_tmpfilesdir}/%{sname}-%{pgmajorversion}.conf -%{_unitdir}/%{sname}-%{pgmajorversion}.service -%else -%config(noreplace) %{_initrddir}/%{sname}-%{pgmajorversion} -%endif -%if %pam -%config(noreplace) /etc/pam.d/%{sname} -%endif -%attr (755,root,root) %dir /etc/sysconfig/pgsql -%{pgbaseinstdir}/bin/initdb -%{pgbaseinstdir}/bin/pg_controldata -%{pgbaseinstdir}/bin/pg_ctl -%{pgbaseinstdir}/bin/pg_resetwal -%{pgbaseinstdir}/bin/postgres -%{pgbaseinstdir}/bin/postmaster -%{pgbaseinstdir}/share/man/man1/initdb.* -%{pgbaseinstdir}/share/man/man1/pg_controldata.* -%{pgbaseinstdir}/share/man/man1/pg_ctl.* -%{pgbaseinstdir}/share/man/man1/pg_resetwal.* -%{pgbaseinstdir}/share/man/man1/postgres.* -%{pgbaseinstdir}/share/man/man1/postmaster.* -%{pgbaseinstdir}/share/postgres.bki -%{pgbaseinstdir}/share/postgres.description -%{pgbaseinstdir}/share/postgres.shdescription -%{pgbaseinstdir}/share/system_views.sql -%{pgbaseinstdir}/share/*.sample -%{pgbaseinstdir}/share/timezonesets/* -%{pgbaseinstdir}/share/tsearch_data/*.affix -%{pgbaseinstdir}/share/tsearch_data/*.dict -%{pgbaseinstdir}/share/tsearch_data/*.ths -%{pgbaseinstdir}/share/tsearch_data/*.rules -%{pgbaseinstdir}/share/tsearch_data/*.stop -%{pgbaseinstdir}/share/tsearch_data/*.syn -%{pgbaseinstdir}/lib/dict_int.so -%{pgbaseinstdir}/lib/dict_snowball.so -%{pgbaseinstdir}/lib/dict_xsyn.so -%{pgbaseinstdir}/lib/euc2004_sjis2004.so -%{pgbaseinstdir}/lib/pgoutput.so -%{pgbaseinstdir}/lib/plpgsql.so -%dir %{pgbaseinstdir}/share/extension -%{pgbaseinstdir}/share/extension/plpgsql* - -%dir %{pgbaseinstdir}/lib -%dir %{pgbaseinstdir}/share -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -%endif -%else -%attr(700,postgres,postgres) %dir /var/lib/pgsql -%endif -%attr(700,postgres,postgres) %dir /var/lib/pgsql/%{pgmajorversion} -%attr(700,postgres,postgres) %dir /var/lib/pgsql/%{pgmajorversion}/data -%attr(700,postgres,postgres) %dir /var/lib/pgsql/%{pgmajorversion}/backups -%attr(755,postgres,postgres) %dir /var/run/%{sname} -%{pgbaseinstdir}/lib/*_and_*.so -%{pgbaseinstdir}/share/conversion_create.sql -%{pgbaseinstdir}/share/information_schema.sql -%{pgbaseinstdir}/share/snowball_create.sql -%{pgbaseinstdir}/share/sql_features.txt - -%files devel -f pg_devel.lst -%defattr(-,root,root) -%{pgbaseinstdir}/include/* -%{pgbaseinstdir}/bin/ecpg -%{pgbaseinstdir}/lib/libpq.so -%{pgbaseinstdir}/lib/libecpg.so -%{pgbaseinstdir}/lib/libpq.a -%{pgbaseinstdir}/lib/libecpg.a -%{pgbaseinstdir}/lib/libecpg_compat.so -%{pgbaseinstdir}/lib/libecpg_compat.a -%{pgbaseinstdir}/lib/libpgcommon.a -%{pgbaseinstdir}/lib/libpgport.a -%{pgbaseinstdir}/lib/libpgtypes.so -%{pgbaseinstdir}/lib/libpgtypes.a -%{pgbaseinstdir}/lib/pgxs/* -%{pgbaseinstdir}/lib/pkgconfig/* -%{pgbaseinstdir}/share/man/man1/ecpg.* - -%if %plperl -%files plperl -f pg_plperl.lst -%defattr(-,root,root) -%{pgbaseinstdir}/lib/plperl.so -%{pgbaseinstdir}/share/extension/plperl* -%endif - -%if %pltcl -%files pltcl -f pg_pltcl.lst -%defattr(-,root,root) -%{pgbaseinstdir}/lib/pltcl.so -%{pgbaseinstdir}/share/extension/pltcl* -%endif - -%if %plpython2 -%files plpython -f pg_plpython.lst -%defattr(-,root,root) -%{pgbaseinstdir}/lib/plpython2.so -%{pgbaseinstdir}/share/extension/plpython2u* -%{pgbaseinstdir}/share/extension/plpythonu* -%{pgbaseinstdir}/lib/hstore_plpython2.so -%{pgbaseinstdir}/lib/ltree_plpython2.so -%{pgbaseinstdir}/share/extension/*_plpythonu* -%{pgbaseinstdir}/share/extension/*_plpython2u* -%endif - -%if %plpython3 -%files plpython3 -f pg_plpython3.lst -%{pgbaseinstdir}/share/extension/plpython3* -%{pgbaseinstdir}/lib/plpython3.so -%{pgbaseinstdir}/lib/hstore_plpython3.so -%{pgbaseinstdir}/lib/ltree_plpython3.so -%{pgbaseinstdir}/share/extension/*_plpython3u* -%endif - -%if %test -%files test -%defattr(-,postgres,postgres) -%attr(-,postgres,postgres) %{pgbaseinstdir}/lib/test/* -%attr(-,postgres,postgres) %dir %{pgbaseinstdir}/lib/test -%endif - -%changelog -* Tue Feb 11 2020 Devrim Gündüz - 10.12-1PGDG -- Update to 10.12, per changes described at - https://www.postgresql.org/docs/release/10.12/ - -* Mon Jan 27 2020 Devrim Gündüz - 10.11-3PGDG -- SLES 12 fixes - -* Sat Nov 30 2019 Devrim Gündüz - 10.11-2PGDG -- Fix PL/Python 3 packaging. - -* Mon Nov 11 2019 Devrim Gündüz - 10.11-1PGDG -- Update to 10.11, per changes described at - https://www.postgresql.org/docs/release/10.11/ -- Fix Python dependency issue in the main package, and move all - plpython* packages into their respective subpackages. -- Use correct openssl-libs dependency, per John Harvey. - -* Mon Oct 28 2019 Devrim Gündüz - 10.10-2PGDG -- Remove obsoleted tmpfiles_create macro. We don't need it anyway, - already manually install the file. - -* Tue Aug 6 2019 Devrim Gündüz - 10.10-1PGDG -- Update to 10.10, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-10.html - -* Wed Jun 19 2019 Devrim Gündüz - 10.9-1PGDG -- Update to 10.9, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-9.html - -* Mon May 6 2019 Devrim Gündüz - 10.8-1PGDG -- Update to 10.8, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-8.html - -* Sun Feb 24 2019 Devrim Gündüz - 10.7-2PGDG -- Disable jit on s390. Patch from Mark Wong. -- Fix PL/Python3 builds. - -* Tue Feb 12 2019 Devrim Gündüz - 10.7-1PGDG -- Update to 10.7, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-7.html - -* Wed Nov 21 2018 Devrim Gündüz - 10.6-2PGDG -- Initial attempt for RHEL 8 packaging updates. -- Rename plpython macro to plpython2, to stress that it is for Python 2. - -* Tue Nov 6 2018 Devrim Gündüz - 10.6-1PGDG -- Update to 10.6, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-6.html -- Fix upgrade path setup script, and add check_upgrade as well. - -* Thu Aug 9 2018 Devrim Gündüz - 10.5-1PGDG -- Update to 10.5, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-5.html - -* Tue May 8 2018 Devrim Gündüz - 10.4-1PGDG -- Update to 10.4, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-4.html -- Build hstore_plpyton and ltree_plpython with PY3 as well. This - is a backport of 969cf62e70e6f97725f53ac70bf07214555df45d . - -* Mon Feb 26 2018 Devrim Gündüz - 10.3-1PGDG -- Update to 10.3, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-3.html - -* Tue Feb 6 2018 Devrim Gündüz - 10.2-1PGDG -- Update to 10.2, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-2.html - -* Tue Dec 12 2017 Devrim Gündüz - 10.1-6PGDG -- Revert TimeOutSec changes in unit file, because infinity is only - valid in systemd >= 229. - -* Mon Dec 11 2017 Devrim Gündüz - 10.1-5PGDG -- RHEL 6 only: Fix startup issue in init script, per - https://redmine.postgresql.org/issues/2941 - -* Mon Dec 11 2017 Devrim Gündüz - 10.1-4PGDG -- RHEL 6 only: Fix regression in init script. Fixes PostgreSQL bug - #14957 and many other reports. - -* Thu Dec 7 2017 John K. Harvey - 10.1-3PGDG -- Fixes for CVE-2017-12172 (EL-6 only) -- Update TimeOutSec parameter to match systemd docs (EL-7 only) - -* Wed Nov 29 2017 Devrim Gündüz - 10.1-2PGDG -- Fixes for CVE-2017-12172 (RHEL-6 only) - -* Tue Nov 7 2017 Devrim Gündüz - 10.1-1PGDG -- Update to 10.1, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-1.html - -- Fix #1289 (OOM killer control for PostgreSQL) -* Sun Oct 15 2017 Devrim Gündüz - 10.0-2PGDG -- Fix #1289 (OOM killer control for PostgreSQL) -- Do not set any timeout value, so that systemd will not kill postmaster - during crash recovery. Fixes #2786. - -* Tue Oct 3 2017 Devrim Gündüz - 10.0-1PGDG -- Update to 10.0 - -* Mon Sep 18 2017 Devrim Gündüz - 10.0rc1-1PGDG -- Update to 10 rc1 - -* Tue Aug 29 2017 Devrim Gündüz - 10.0beta4-1PGDG -- Update to 10 beta4 - -* Mon Aug 7 2017 Devrim Gündüz - 10.0beta3-1PGDG -- Update to 10 beta3 - -* Fri Jul 14 2017 Devrim Gündüz - 10.0beta2-3PGDG -- Fix version calculation in RHEL 6 init script, per Justin Pryzby. -- Add tcl as a dependency to pltcl subpackage, per Fahar Abbas. - -* Fri Jul 14 2017 Devrim Gündüz - 10.0beta2-2PGDG -- Fix version calculation in RHEL 6 init script, per Justin Pryzby. - -* Tue Jul 11 2017 Devrim Gündüz - 10.0beta2-1PGDG -- Update to 10 beta2 - -* Sat Jul 8 2017 Devrim Gündüz - 10.0beta1-3PGDG -- Bump up the version for SLES support. - -* Mon Jun 12 2017 Devrim Gündüz - 10.0beta1-2PGDG -- Use separate README files for RHEL6 and others. Fixes #2471. -- Add missing macro, per #2416 . - -* Wed May 17 2017 Devrim Gündüz - 10.0beta1-1PGDG -- Initial cut for PostgreSQL 10 Beta 1 -- Rename all patches and sources, and add the same prefix to all of them. -- Rename -setup and -check-db-dir scripts for consistency. -- Trim up the header significantly, remove pretty much obsoleted information. -- Add new translations. - -* Wed Apr 12 2017 Devrim Gündüz - 10.0-20170412_1PGDG -- Initial attempt for Power RPMs. -- Cleanups for rpmlint warnings - -* Wed Feb 22 2017 Devrim Gündüz - 10.0-20170222_1PGDG -- Update to Feb 22 2017 snapshot -- Fix creating parent directory issue in setup script, per report and fix - from Magnus. Fixes #2188 - -* Wed Feb 8 2017 Devrim Gündüz - 10.0-20170208_1PGDG -- Update to Feb 8 2017 snapshot -- Fix version numbering (MMMYYYDD) - -* Mon Jan 23 2017 Devrim Gündüz - 10.0-20172301_1PGDG -- Update to Jan 23, 2017 snapshot - -* Wed Jan 4 2017 Devrim Gündüz - 10.0-20170301_1PGDG -- Initial cut for 10.0 development - diff --git a/postgresql/unibuild-packaging/postgresql-10-logging.patch b/postgresql/unibuild-packaging/postgresql-10-logging.patch deleted file mode 100644 index 53d9794d40..0000000000 --- a/postgresql/unibuild-packaging/postgresql-10-logging.patch +++ /dev/null @@ -1,64 +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-%a.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 ---- src/test/perl/PostgresNode.pm.old 2019-06-19 20:37:21.541015301 +0300 -+++ src/test/perl/PostgresNode.pm 2019-06-19 20:37:38.676127250 +0300 -@@ -420,6 +420,7 @@ - print $conf "fsync = off\n"; - print $conf "restart_after_crash = off\n"; - print $conf "log_line_prefix = '%m [%p] %q%a '\n"; -+ print $conf "logging_collector = off\n"; - print $conf "log_statement = all\n"; - print $conf "wal_retrieve_retry_interval = '500ms'\n"; - diff --git a/postgresql/unibuild-packaging/postgresql-10-perl-rpath.patch b/postgresql/unibuild-packaging/postgresql-10-perl-rpath.patch deleted file mode 100644 index 6259238990..0000000000 --- a/postgresql/unibuild-packaging/postgresql-10-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/postgresql/unibuild-packaging/postgresql-10-rpm-pgsql.patch b/postgresql/unibuild-packaging/postgresql-10-rpm-pgsql.patch deleted file mode 100644 index 4770b09314..0000000000 --- a/postgresql/unibuild-packaging/postgresql-10-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/postgresql/unibuild-packaging/postgresql-10-var-run-socket.patch b/postgresql/unibuild-packaging/postgresql-10-var-run-socket.patch deleted file mode 100644 index e8051dc7b8..0000000000 --- a/postgresql/unibuild-packaging/postgresql-10-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/postgresql/unibuild-packaging/rpm/README.md b/postgresql/unibuild-packaging/rpm/README.md deleted file mode 100644 index a6d4d94aa0..0000000000 --- a/postgresql/unibuild-packaging/rpm/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# Notes on Building PostgreSQL - -This is temporarily in the sources until we sort out how PgSQL will be -distributed. PGDG's distribution points are all off-R&E. - -The SRPMs can be found at https://yum.postgresql.org/srpms/12/redhat. - -Generally, you'll want the `rhel--` version. - -## To Change to a New Version - -Run a diff between the existing RPM spec and the original stored along -side it and hold onto the results. - -Remove all traces of the old version from the directory and Git. This should - -Fetch the SRPM from PGDG. For Pg 10.12, the command was: -``` -wget https://yum.postgresql.org/srpms/10/redhat/rhel-7-x86_64/postgresql10-10.12-1PGDG.rhel7.src.rpm -``` - -Unpack the SRPM: -``` -rpm2cpio postgresql10-10.12-1PGDG.rhel7.src.rpm | cpio -i -``` - -Preserve the RPM spec: -``` -cp postgresql-12.spec postgresql-12.spec.orig -``` - -See if the RPM spec wil build as-is (unlikely). If not, go through -the changes to the previous version's spec and apply similar changes -to the new one. diff --git a/postgresql/unibuild-packaging/rpm/postgresql-10.spec b/postgresql/unibuild-packaging/rpm/postgresql-10.spec deleted file mode 100644 index 86a31cf3aa..0000000000 --- a/postgresql/unibuild-packaging/rpm/postgresql-10.spec +++ /dev/null @@ -1,1723 +0,0 @@ -# These are macros to be used with find_lang and other stuff -%global packageversion 100 -%global pgpackageversion 10 -%global prevmajorversion 9.6 -%global sname postgresql -%global pgbaseinstdir /usr/pgsql-%{pgmajorversion} - -# Don't produce this. It causes problems. -%global debug_package %{nil} - -# Things that were missing or that we override globally -BuildRequires: gcc -%global pgmajorversion %{pgpackageversion} - - -%global beta 0 -%{?beta:%global __os_install_post /usr/lib/rpm/brp-compress} - -# Macros that define the configure parameters: -%{!?kerbdir:%global kerbdir "/usr"} -%{!?disablepgfts:%global disablepgfts 0} - -%if 0%{?rhel} || 0%{?suse_version} >= 1315 -%{!?enabletaptests:%global enabletaptests 0} -%else -%{!?enabletaptests:%global enabletaptests 1} -%endif - -%{!?icu:%global icu 1} -%{!?kerberos:%global kerberos 1} -%{!?ldap:%global ldap 1} -%{!?nls:%global nls 1} -%{!?pam:%global pam 1} - -%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 || 0%{?suse_version} >= 1500 -%{!?plpython2:%global plpython2 0} -%else -%{!?plpython2:%global plpython2 1} -%endif - -%if 0%{?rhel} && 0%{?rhel} < 7 -# RHEL 6 does not have Python 3 -%{!?plpython3:%global plpython3 0} -%else -# All Fedora releases use Python3 -# Support Python3 on RHEL 7.7+ natively -# RHEL 8 uses Python3 -%{!?plpython3:%global plpython3 1} -%endif - -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -# Disable PL/Python 3 on SLES 12 -%{!?plpython3:%global plpython3 0} -%endif -%endif - -# This is the list of contrib modules that will be compiled with PY3 as well: -%global python3_build_list hstore_plpython ltree_plpython - -%{!?pltcl:%global pltcl 1} -%{!?plperl:%global plperl 1} -%{!?ssl:%global ssl 1} -%{!?test:%global test 1} -%{!?runselftest:%global runselftest 0} -%{!?uuid:%global uuid 1} -%{!?xml:%global xml 1} - -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?systemd_enabled:%global systemd_enabled 0} -%{!?sdt:%global sdt 0} -%{!?selinux:%global selinux 0} -%else -%{!?systemd_enabled:%global systemd_enabled 1} -%ifarch ppc64 ppc64le s390 s390x armv7hl -%{!?sdt:%global sdt 0} -%else - %{!?sdt:%global sdt 1} -%endif -%{!?selinux:%global selinux 1} -%endif - -%if 0%{?fedora} > 23 -%global _hardened_build 1 -%endif - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -%pgdg_set_ppc64le_compiler_at10 -%endif -%endif - -Summary: PostgreSQL client programs and libraries -Name: %{sname}%{pgmajorversion} -Version: 10.17 -Release: 1PGDG%{?dist} -License: PostgreSQL -Url: https://www.postgresql.org/ - -Source0: %{sname}-%{version}.tar.bz2 -Source4: %{sname}-%{pgmajorversion}-Makefile.regress -Source5: %{sname}-%{pgmajorversion}-pg_config.h -%if %{systemd_enabled} -Source6: %{sname}-%{pgmajorversion}-README-systemd.rpm-dist -%else -Source6: %{sname}-%{pgmajorversion}-README-init.rpm-dist -%endif -Source7: %{sname}-%{pgmajorversion}-ecpg_config.h -Source9: %{sname}-%{pgmajorversion}-libs.conf -Source12: %{sname}-%{pgpackageversion}-A4.pdf -Source14: %{sname}-%{pgmajorversion}.pam -Source16: %{sname}-%{pgmajorversion}-filter-requires-perl-Pg.sh -Source17: %{sname}-%{pgmajorversion}-setup -%if %{systemd_enabled} -Source10: %{sname}-%{pgmajorversion}-check-db-dir -Source18: %{sname}-%{pgmajorversion}.service -Source19: %{sname}-%{pgmajorversion}-tmpfiles.d -%else -Source3: %{sname}-%{pgmajorversion}.init -%endif - -Patch1: %{sname}-%{pgmajorversion}-rpm-pgsql.patch -Patch3: %{sname}-%{pgmajorversion}-logging.patch -Patch5: %{sname}-%{pgmajorversion}-var-run-socket.patch -Patch6: %{sname}-%{pgmajorversion}-perl-rpath.patch - -BuildRequires: perl glibc-devel bison flex >= 2.5.31 pgdg-srpm-macros >= 1.0.14 -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: readline-devel zlib-devel >= 1.0.4 - -# This dependency is needed for Source 16: -%if 0%{?fedora} || 0%{?rhel} > 7 -BuildRequires: perl-generators -%endif - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -BuildRequires: advance-toolchain-%{atstring}-devel -%endif -%endif - -Requires: /sbin/ldconfig - -%if %icu -BuildRequires: libicu-devel -Requires: libicu -%endif - -%if %kerberos -BuildRequires: krb5-devel -BuildRequires: e2fsprogs-devel -%endif - -%if %ldap -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -BuildRequires: openldap2-devel -%endif -%else -BuildRequires: openldap-devel -%endif -%endif - -%if %nls -BuildRequires: gettext >= 0.10.35 -%endif - -%if %pam -BuildRequires: pam-devel -%endif - -%if %plperl -%if 0%{?rhel} && 0%{?rhel} >= 7 -BuildRequires: perl-ExtUtils-Embed -%endif -%if 0%{?fedora} >= 22 -BuildRequires: perl-ExtUtils-Embed -%endif -%endif - -%if %plpython2 -BuildRequires: python2-devel -%endif - -%if %plpython3 -BuildRequires: python3-devel -%endif - -%if %pltcl -BuildRequires: tcl-devel -%endif - -%if %sdt -BuildRequires: systemtap-sdt-devel -%endif - -%if %selinux -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -BuildRequires: libselinux-devel >= 2.0.93 -%endif -%else -BuildRequires: libselinux-devel >= 2.0.93 -%endif -BuildRequires: selinux-policy >= 3.9.13 -%endif - -%if %ssl -# We depend on the SSL libraries provided by Advance Toolchain on PPC, -# so use openssl-devel only on other platforms: -%ifnarch ppc64 ppc64le -%if 0%{?suse_version} >= 1315 && 0%{?suse_version} <= 1499 -BuildRequires: libopenssl-devel -%else -BuildRequires: openssl-devel -%endif -%endif -%endif - -%if %uuid -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -BuildRequires: uuid-devel -%endif -%else -BuildRequires: libuuid-devel -%endif -%endif - -%if %xml -BuildRequires: libxml2-devel libxslt-devel -%endif - -%if %{systemd_enabled} -BuildRequires: systemd, systemd-devel -# We require this to be present for %%{_prefix}/lib/tmpfiles.d -Requires: systemd -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -Requires(post): systemd-sysvinit -%endif -%else -Requires(post): systemd-sysv -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd -%endif -%else -Requires(post): chkconfig -Requires(preun): chkconfig -# This is for /sbin/service -Requires(preun): initscripts -Requires(postun): initscripts -%endif - -Requires: %{name}-libs%{?_isa} = %{version}-%{release} - -Requires(post): %{_sbindir}/update-alternatives -Requires(postun): %{_sbindir}/update-alternatives - -Provides: %{sname} >= %{version}-%{release} - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description -PostgreSQL is an advanced Object-Relational database management system (DBMS). -The base postgresql package contains the client programs that you'll need to -access a PostgreSQL DBMS server, as well as HTML documentation for the whole -system. These client programs can be located on the same machine as the -PostgreSQL server, or on a remote machine that accesses a PostgreSQL server -over a network connection. The PostgreSQL server can be found in the -postgresql%{pgmajorversion}-server sub-package. - -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%{pgmajorversion}-server package. - -%package libs -Summary: The shared libraries required for any PostgreSQL clients -Provides: postgresql-libs = %{pgmajorversion} libpq5 >= 10.0 - -%if 0%{?rhel} && 0%{?rhel} <= 6 -Requires: openssl -%else -%if 0%{?suse_version} >= 1315 && 0%{?suse_version} <= 1499 -Requires: libopenssl1_0_0 -%else -%if 0%{?suse_version} >= 1500 -Requires: libopenssl1_1 -%else -Requires: openssl-libs >= 1.0.2k -%endif -%endif -%endif - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description libs -The postgresql%{pgmajorversion}-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 -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Requires(pre): /usr/sbin/useradd /usr/sbin/groupadd -# for /sbin/ldconfig -Requires(post): glibc -Requires(postun): glibc -%if %{systemd_enabled} -# pre/post stuff needs systemd too - -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -Requires(post): systemd -%endif -%else -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd -%endif -%else -Requires: /usr/sbin/useradd, /sbin/chkconfig -%endif -Provides: postgresql-server >= %{version}-%{release} - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description server -PostgreSQL is an advanced Object-Relational database management system (DBMS). -The postgresql%{pgmajorversion}-server package contains the programs needed to create -and run a PostgreSQL server, which will in turn allow you to create -and maintain PostgreSQL databases. - -%package docs -Summary: Extra documentation for PostgreSQL -Provides: postgresql-docs >= %{version}-%{release} - -%description docs -The postgresql%{pgmajorversion}-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 -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Provides: postgresql-contrib >= %{version}-%{release} - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description contrib -The postgresql%{pgmajorversion}-contrib package contains various extension modules that are -included in the PostgreSQL distribution. - -%package devel -Summary: PostgreSQL development header files and libraries -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -%if %icu -Requires: libicu-devel -%endif - -%if %enabletaptests -%if 0%{?suse_version} && 0%{?suse_version} >= 1315 -Requires: perl-IPC-Run -BuildRequires: perl-IPC-Run -%endif -%if 0%{?rhel} && 0%{?rhel} <= 7 -Requires: perl-Test-Simple -BuildRequires: perl-Test-Simple -%endif -%if 0%{?fedora} -Requires: perl-IPC-Run -BuildRequires: perl-IPC-Run -%endif -%endif - -Provides: postgresql-devel >= %{version}-%{release} -Obsoletes: libpq-devel - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description devel -The postgresql%{pgmajorversion}-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. It also contains 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 -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -%ifarch ppc ppc64 -BuildRequires: perl-devel -%endif -Obsoletes: postgresql%{pgmajorversion}-pl <= %{version}-%{release} -Provides: postgresql-plperl >= %{version}-%{release} - -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif - -%description plperl -The postgresql%{pgmajorversion}-plperl package contains the PL/Perl procedural language, -which is an extension to the PostgreSQL database server. -Install this if you want to write database functions in Perl. - -%endif - -%if %plpython2 -%package plpython -Summary: The Python procedural language for PostgreSQL -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Obsoletes: %{name}-pl <= %{version}-%{release} -Provides: postgresql-plpython >= %{version}-%{release} -Provides: %{name}-plpython2%{?_isa} = %{version}-%{release} -%if 0%{?rhel} && 0%{?rhel} <= 6 -Requires: python-libs -%endif -%if 0%{?rhel} == 7 || 0%{?rhel} == 8 -Requires: python2-libs -%endif -%if 0%{?fedora} && 0%{?fedora} <= 31 -Requires: python2-libs -%endif -%if 0%{?fedora} >= 32 -Requires: python27 -%endif - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description plpython -The postgresql%{pgmajorversion}-plpython package contains the PL/Python procedural language, -which is an extension to the PostgreSQL database server. -Install this if you want to write database functions in Python. - -%endif - -%if %plpython3 -%package plpython3 -Summary: The Python3 procedural language for PostgreSQL -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Obsoletes: %{name}-pl <= %{version}-%{release} -Provides: postgresql-plpython3 >= %{version}-%{release} -Requires: python3-libs - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description plpython3 -The postgresql%{pgmajorversion}-plpython3 package contains the PL/Python3 procedural language, -which is an extension to the PostgreSQL database server. -Install this if you want to write database functions in Python 3. - -%endif - -%if %pltcl -%package pltcl -Summary: The Tcl procedural language for PostgreSQL -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Requires: tcl -Obsoletes: %{name}-pl <= %{version}-%{release} -Provides: postgresql-pltcl >= %{version}-%{release} - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description pltcl -PostgreSQL is an advanced Object-Relational database management -system. The %{name}-pltcl package contains the PL/Tcl language -for the backend. -%endif - -%if %test -%package test -Summary: The test suite distributed with PostgreSQL -Requires: %{name}-server%{?_isa} = %{version}-%{release} -Requires: %{name}-devel%{?_isa} = %{version}-%{release} -Provides: postgresql-test >= %{version}-%{release} - -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le -AutoReq: 0 -Requires: advance-toolchain-%{atstring}-runtime -%endif -%endif - -%description test -The postgresql%{pgmajorversion}-test package contains files needed for various tests for the -PostgreSQL database management system, including regression tests and -benchmarks. -%endif - -%global __perl_requires %{SOURCE16} - -%prep -%setup -q -n %{sname}-%{version} -%patch1 -p1 -%patch3 -p0 -%patch5 -p0 -%patch6 -p0 - -%{__cp} -p %{SOURCE12} . - -%build - -# fail quickly and obviously if user tries to build as root -%if %runselftest - if [ x"`id -u`" = x0 ]; then - echo "postgresql's regression tests fail if run as root." - echo "If you really need to build the RPM as root, use" - echo "--define='runselftest 0' to skip the regression tests." - exit 1 - fi -%endif - -CFLAGS="${CFLAGS:-%optflags}" -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le - CFLAGS="${CFLAGS} $(echo %{__global_cflags} | sed 's/-O2/-O3/g') -m64 -mcpu=power8 -mtune=power8 -I%{atpath}/include" - CXXFLAGS="${CXXFLAGS} $(echo %{__global_cflags} | sed 's/-O2/-O3/g') -m64 -mcpu=power8 -mtune=power8 -I%{atpath}/include" - LDFLAGS="-L%{atpath}/%{_lib}" - CC=%{atpath}/bin/gcc; export CC -%endif -%else - # Strip out -ffast-math from CFLAGS.... - CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100` - %if 0%{?rhel} - LDFLAGS="-Wl,--as-needed"; export LDFLAGS - %endif -%endif - -export CFLAGS - -%if %icu -# Export ICU flags on RHEL 6: -%if 0%{?rhel} && 0%{?rhel} <= 6 - ICU_CFLAGS='-I%{_includedir}'; export ICU_CFLAGS - ICU_LIBS='-L%{_libdir} -licui18n -licuuc -licudata'; export ICU_LIBS -%endif -%endif - -# plpython requires separate configure/build runs to build against python 2 -# versus python 3. Our strategy is to do the python 3 run first, then make -# distclean and do it again for the "normal" build. Note that the installed -# Makefile.global will reflect the python 2 build, which seems appropriate -# since that's still considered the default plpython version. -%if %plpython3 - -export PYTHON=/usr/bin/python3 - -# These configure options must match main build -./configure --enable-rpath \ - --prefix=%{pgbaseinstdir} \ - --includedir=%{pgbaseinstdir}/include \ - --mandir=%{pgbaseinstdir}/share/man \ - --datadir=%{pgbaseinstdir}/share \ - --libdir=%{pgbaseinstdir}/lib \ -%if %beta - --enable-debug \ - --enable-cassert \ -%endif -%if %enabletaptests - --enable-tap-tests \ -%endif -%if %icu - --with-icu \ -%endif -%if %plperl - --with-perl \ -%endif -%if %plpython3 - --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 %sdt - --enable-dtrace \ -%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 -%if %selinux - --with-selinux \ -%endif -%if %{systemd_enabled} - --with-systemd \ -%endif -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le - --with-includes=%{atpath}/include \ - --with-libraries=%{atpath}/lib64 \ -%endif -%endif - --with-system-tzdata=%{_datadir}/zoneinfo \ - --sysconfdir=/etc/sysconfig/pgsql \ - --docdir=%{pgbaseinstdir}/doc \ - --htmldir=%{pgbaseinstdir}/doc/html -# We need to build PL/Python 3 and a few extensions: -# Build PL/Python 3 -cd src/backend -%{__make} submake-errcodes -cd ../.. -cd src/pl/plpython -%{__make} %{?_smp_mflags} all -cd .. -# save built form in a directory that "make distclean" won't touch -%{__cp} -a plpython plpython3 -cd ../.. -# Build some of the extensions with PY3 support -for p3bl in %{python3_build_list} ; do - p3blpy3dir="$p3bl"3 - pushd contrib/$p3bl - %{__make} %{?_smp_mflags} all - cd .. - # save built form in a directory that "make distclean" won't touch - %{__cp} -a $p3bl $p3blpy3dir - popd -done -# must also save this version of Makefile.global for later -# on platforms where Python 2 is still available: -%{__cp} src/Makefile.global src/Makefile.global.python3 - -%if %plpython2 -# Clean up the tree. -%{__make} distclean -%endif - -%endif -# NOTE: PL/Python3 (END) - -# NOTE: PL/Python 2 -%if %{?plpython2} - -unset PYTHON -# Explicitly run Python2 here -- in future releases, -# Python3 will be the default. -export PYTHON=/usr/bin/python2 - -# Normal (not python3) build begins here -./configure --enable-rpath \ - --prefix=%{pgbaseinstdir} \ - --includedir=%{pgbaseinstdir}/include \ - --libdir=%{pgbaseinstdir}/lib \ - --mandir=%{pgbaseinstdir}/share/man \ - --datadir=%{pgbaseinstdir}/share \ -%if %beta - --enable-debug \ - --enable-cassert \ -%endif -%if %enabletaptests - --enable-tap-tests \ -%endif -%if %icu - --with-icu \ -%endif -%if %plperl - --with-perl \ -%endif -%if %plpython2 - --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 %sdt - --enable-dtrace \ -%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 -%if %selinux - --with-selinux \ -%endif -%if %{systemd_enabled} - --with-systemd \ -%endif -%if 0%{?rhel} && 0%{?rhel} == 7 -%ifarch ppc64 ppc64le - --with-includes=%{atpath}/include \ - --with-libraries=%{atpath}/lib64 \ -%endif -%endif - --with-system-tzdata=%{_datadir}/zoneinfo \ - --sysconfdir=/etc/sysconfig/pgsql \ - --docdir=%{pgbaseinstdir}/doc \ - --htmldir=%{pgbaseinstdir}/doc/html - -# We need to build PL/Python 2 and a few extensions: -# Build PL/Python 2 -cd src/backend -MAKELEVEL=0 %{__make} submake-generated-headers -cd ../.. -cd src/pl/plpython -%{__make} all -cd .. -# save built form in a directory that "make distclean" won't touch -%{__cp} -a plpython plpython2 -cd ../.. -# Build some of the extensions with PY2 support as well. -for p2bl in %{python3_build_list} ; do - p2blpy2dir="$p2bl"2 - pushd contrib/$p2bl - MAKELEVEL=0 %{__make} %{?_smp_mflags} all - # save built form in a directory that "make distclean" won't touch - cd .. - %{__cp} -a $p2bl $p2blpy2dir - popd -done -%endif -# NOTE: PL/Python 2 (END) - - -MAKELEVEL=0 %{__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=%{pgbaseinstdir}/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} clean -C "src/test/regress" - run_testsuite "src/pl" -%if %plpython3 - # must install Makefile.global that selects python3 - %{__mv} src/Makefile.global src/Makefile.global.save - %{__cp} src/Makefile.global.python3 src/Makefile.global - touch -r src/Makefile.global.save src/Makefile.global - # because "make check" does "make install" on the whole tree, - # we must temporarily install plpython3 as src/pl/plpython, - # since that is the subdirectory src/pl/Makefile knows about - %{__mv} src/pl/plpython src/pl/plpython2 - %{__mv} src/pl/plpython3 src/pl/plpython - - run_testsuite "src/pl/plpython" - - # and clean up our mess - %{__mv} src/pl/plpython src/pl/plpython3 - %{__mv} src/pl/plpython2 src/pl/plpython - %{__mv} -f src/Makefile.global.save src/Makefile.global -%endif - run_testsuite "contrib" -%endif - -%if %test - pushd src/test/regress - %{__make} all - popd -%endif - -%install -%{__rm} -rf %{buildroot} - -%{__make} DESTDIR=%{buildroot} install - -%if %plpython3 - %{__mv} src/Makefile.global src/Makefile.global.save - %{__cp} src/Makefile.global.python3 src/Makefile.global - touch -r src/Makefile.global.save src/Makefile.global - # Install PL/Python3 - pushd src/pl/plpython3 - %{__make} DESTDIR=%{buildroot} install - popd - - for p3bl in %{python3_build_list} ; do - p3blpy3dir="$p3bl"3 - pushd contrib/$p3blpy3dir - %{__make} DESTDIR=%{buildroot} install - popd - done - - %{__mv} -f src/Makefile.global.save src/Makefile.global -%endif - -%{__mkdir} -p %{buildroot}%{pgbaseinstdir}/share/extensions/ -%{__make} -C contrib DESTDIR=%{buildroot} install -%if %uuid -%{__make} -C contrib/uuid-ossp DESTDIR=%{buildroot} install -%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 | ppc | ppc64 | s390 | s390x) - %{__mv} %{buildroot}%{pgbaseinstdir}/include/pg_config.h %{buildroot}%{pgbaseinstdir}/include/pg_config_`uname -i`.h - %{__install} -m 644 %{SOURCE5} %{buildroot}%{pgbaseinstdir}/include/pg_config.h - %{__mv} %{buildroot}%{pgbaseinstdir}/include/server/pg_config.h %{buildroot}%{pgbaseinstdir}/include/server/pg_config_`uname -i`.h - %{__install} -m 644 %{SOURCE5} %{buildroot}%{pgbaseinstdir}/include/server/pg_config.h - %{__mv} %{buildroot}%{pgbaseinstdir}/include/ecpg_config.h %{buildroot}%{pgbaseinstdir}/include/ecpg_config_`uname -i`.h - %{__install} -m 644 %{SOURCE7} %{buildroot}%{pgbaseinstdir}/include/ecpg_config.h - ;; - *) - ;; -esac - -# This is only for systemd supported distros: -%if %{systemd_enabled} -# prep the setup script, including insertion of some values it needs -sed -e 's|^PGVERSION=.*$|PGVERSION=%{pgmajorversion}|' \ - -e 's|^PGENGINE=.*$|PGENGINE=%{pgbaseinstdir}/bin|' \ - -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ - <%{SOURCE17} >postgresql-%{pgmajorversion}-setup -%{__install} -m 755 postgresql-%{pgmajorversion}-setup %{buildroot}%{pgbaseinstdir}/bin/postgresql-%{pgmajorversion}-setup -# Create a symlink of the setup script under $PATH -%{__mkdir} -p %{buildroot}%{_bindir} -%{__ln_s} %{pgbaseinstdir}/bin/postgresql-%{pgmajorversion}-setup %{buildroot}%{_bindir}/%{sname}-%{pgmajorversion}-setup - -# prep the startup check script, including insertion of some values it needs -sed -e 's|^PGVERSION=.*$|PGVERSION=%{pgmajorversion}|' \ - -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ - -e 's|^PGDOCDIR=.*$|PGDOCDIR=%{_pkgdocdir}|' \ - <%{SOURCE10} >%{sname}-%{pgmajorversion}-check-db-dir -touch -r %{SOURCE10} %{sname}-%{pgmajorversion}-check-db-dir -%{__install} -m 755 %{sname}-%{pgmajorversion}-check-db-dir %{buildroot}%{pgbaseinstdir}/bin/%{sname}-%{pgmajorversion}-check-db-dir - -%{__install} -d %{buildroot}%{_unitdir} -%{__install} -m 644 %{SOURCE18} %{buildroot}%{_unitdir}/%{sname}-%{pgmajorversion}.service -%else -%{__install} -d %{buildroot}%{_initrddir} -sed 's/^PGVERSION=.*$/PGVERSION=%{version}/' <%{SOURCE3} > %{sname}.init -%{__install} -m 755 %{sname}.init %{buildroot}%{_initrddir}/%{sname}-%{pgmajorversion} -%endif - -%if %pam -%{__install} -d %{buildroot}/etc/pam.d -%{__install} -m 644 %{SOURCE14} %{buildroot}/etc/pam.d/%{sname} -%endif - -# Create the directory for sockets. -%{__install} -d -m 755 %{buildroot}/var/run/%{sname} -%if %{systemd_enabled} -# ... and make a tmpfiles script to recreate it at reboot. -%{__mkdir} -p %{buildroot}/%{_tmpfilesdir} -%{__install} -m 0644 %{SOURCE19} %{buildroot}/%{_tmpfilesdir}/%{sname}-%{pgmajorversion}.conf -%endif - -# PGDATA needs removal of group and world permissions due to pg_pwd hole. -%{__install} -d -m 700 %{buildroot}/var/lib/pgsql/%{pgmajorversion}/data - -# backups of data go here... -%{__install} -d -m 700 %{buildroot}/var/lib/pgsql/%{pgmajorversion}/backups - -# Create the multiple postmaster startup directory -%{__install} -d -m 700 %{buildroot}/etc/sysconfig/pgsql/%{pgmajorversion} - -# Install linker conf file under postgresql installation directory. -# We will install the latest version via alternatives. -%{__install} -d -m 755 %{buildroot}%{pgbaseinstdir}/share/ -%{__install} -m 700 %{SOURCE9} %{buildroot}%{pgbaseinstdir}/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}%{pgbaseinstdir}/lib/test - %{__cp} -a src/test/regress %{buildroot}%{pgbaseinstdir}/lib/test - %{__install} -m 0755 contrib/spi/refint.so %{buildroot}%{pgbaseinstdir}/lib/test/regress - %{__install} -m 0755 contrib/spi/autoinc.so %{buildroot}%{pgbaseinstdir}/lib/test/regress - pushd %{buildroot}%{pgbaseinstdir}/lib/test/regress - strip *.so - %{__rm} -f GNUmakefile Makefile *.o - chmod 0755 pg_regress regress.so - popd - %{__cp} %{SOURCE4} %{buildroot}%{pgbaseinstdir}/lib/test/regress/Makefile - chmod 0644 %{buildroot}%{pgbaseinstdir}/lib/test/regress/Makefile -%endif - -%if ! %plpython2 -%{__rm} -f %{buildroot}/%{pginstdir}/share/extension/*plpython2u* -%{__rm} -f %{buildroot}/%{pginstdir}/share/extension/*plpythonu-* -%{__rm} -f %{buildroot}/%{pginstdir}/share/extension/*_plpythonu.control -%endif - -# Fix some more documentation -# gzip doc/internals.ps -%{__cp} %{SOURCE6} README.rpm-dist -%{__mkdir} -p %{buildroot}%{pgbaseinstdir}/share/doc/html -%{__mv} doc/src/sgml/html doc -%{__mkdir} -p %{buildroot}%{pgbaseinstdir}/share/man/ -%{__mv} doc/src/sgml/man1 doc/src/sgml/man3 doc/src/sgml/man7 %{buildroot}%{pgbaseinstdir}/share/man/ -%{__rm} -rf %{buildroot}%{_docdir}/pgsql - -# Quick hack for RHEL <= 7 and not compiled with PL/Python3 support: -%if 0%{?rhel} <= 7 && ! 0%{?plpython3} -%{__rm} -f %{buildroot}/%{pgbaseinstdir}/share/extension/hstore_plpython3u* -%{__rm} -f %{buildroot}/%{pgbaseinstdir}/share/extension/ltree_plpython3u* -%endif - -# 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 pg_plpython.lst -%{__cp} /dev/null pg_plpython3.lst - -%if %nls -%find_lang ecpg-%{pgmajorversion} -%find_lang ecpglib6-%{pgmajorversion} -%find_lang initdb-%{pgmajorversion} -%find_lang libpq5-%{pgmajorversion} -%find_lang pg_archivecleanup-%{pgmajorversion} -%find_lang pg_basebackup-%{pgmajorversion} -%find_lang pg_config-%{pgmajorversion} -%find_lang pg_controldata-%{pgmajorversion} -%find_lang pg_ctl-%{pgmajorversion} -%find_lang pg_dump-%{pgmajorversion} -%find_lang pg_resetwal-%{pgmajorversion} -%find_lang pg_rewind-%{pgmajorversion} -%find_lang pg_test_fsync-%{pgmajorversion} -%find_lang pg_test_timing-%{pgmajorversion} -%find_lang pg_upgrade-%{pgmajorversion} -%find_lang pg_waldump-%{pgmajorversion} -%find_lang pgscripts-%{pgmajorversion} -%if %plperl -%find_lang plperl-%{pgmajorversion} -cat plperl-%{pgmajorversion}.lang > pg_plperl.lst -%endif -%find_lang plpgsql-%{pgmajorversion} -%if %plpython2 -%find_lang plpython-%{pgmajorversion} -cat plpython-%{pgmajorversion}.lang > pg_plpython.lst -%endif -%if %plpython3 -# plpython3 shares message files with plpython -%find_lang plpython-%{pgmajorversion} -cat plpython-%{pgmajorversion}.lang > pg_plpython3.lst -%endif - -%if %pltcl -%find_lang pltcl-%{pgmajorversion} -cat pltcl-%{pgmajorversion}.lang > pg_pltcl.lst -%endif -%find_lang postgres-%{pgmajorversion} -%find_lang psql-%{pgmajorversion} - -cat libpq5-%{pgmajorversion}.lang > pg_libpq5.lst -cat pg_config-%{pgmajorversion}.lang ecpg-%{pgmajorversion}.lang ecpglib6-%{pgmajorversion}.lang > pg_devel.lst -cat initdb-%{pgmajorversion}.lang pg_ctl-%{pgmajorversion}.lang psql-%{pgmajorversion}.lang pg_dump-%{pgmajorversion}.lang pg_basebackup-%{pgmajorversion}.lang pg_rewind-%{pgmajorversion}.lang pg_upgrade-%{pgmajorversion}.lang pg_test_timing-%{pgmajorversion}.lang pg_test_fsync-%{pgmajorversion}.lang pg_archivecleanup-%{pgmajorversion}.lang pg_waldump-%{pgmajorversion}.lang pgscripts-%{pgmajorversion}.lang > pg_main.lst -cat postgres-%{pgmajorversion}.lang pg_resetwal-%{pgmajorversion}.lang pg_controldata-%{pgmajorversion}.lang plpgsql-%{pgmajorversion}.lang > pg_server.lst -%endif - -%pre server -groupadd -g 26 -o -r postgres >/dev/null 2>&1 || : -useradd -M -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ - -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || : - -%post server -/sbin/ldconfig -if [ $1 -eq 1 ] ; then - %if %{systemd_enabled} - /bin/systemctl daemon-reload >/dev/null 2>&1 || : - %if 0%{?suse_version} - %if 0%{?suse_version} >= 1315 - %service_add_pre postgresql-%{pgpackageversion}.service - %endif - %else - %systemd_post %{sname}-%{pgpackageversion}.service - %endif - %else - chkconfig --add %{sname}-%{pgpackageversion} - %endif -fi - -# postgres' .bash_profile. -# We now don't install .bash_profile as we used to in pre 9.0. Instead, use cat, -# so that package manager will be happy during upgrade to new major version. -echo "[ -f /etc/profile ] && source /etc/profile -PGDATA=/var/lib/pgsql/%{pgmajorversion}/data -export PGDATA -# If you want to customize your settings, -# Use the file below. This is not overridden -# by the RPMS. -[ -f /var/lib/pgsql/.pgsql_profile ] && source /var/lib/pgsql/.pgsql_profile" > /var/lib/pgsql/.bash_profile -chown postgres: /var/lib/pgsql/.bash_profile -chmod 700 /var/lib/pgsql/.bash_profile - -%preun server -if [ $1 -eq 0 ] ; then -%if %{systemd_enabled} - # Package removal, not upgrade - /bin/systemctl --no-reload disable %{sname}-%{pgmajorversion}.service >/dev/null 2>&1 || : - /bin/systemctl stop %{sname}-%{pgmajorversion}.service >/dev/null 2>&1 || : -%else - /sbin/service %{sname}-%{pgmajorversion} condstop >/dev/null 2>&1 - chkconfig --del %{sname}-%{pgmajorversion} - -%endif -fi - -%postun server -/sbin/ldconfig -%if %{systemd_enabled} - /bin/systemctl daemon-reload >/dev/null 2>&1 || : -%else - /sbin/service %{sname}-%{pgmajorversion} condrestart >/dev/null 2>&1 -%endif -if [ $1 -ge 1 ] ; then - %if %{systemd_enabled} - # Package upgrade, not uninstall - /bin/systemctl try-restart %{sname}-%{pgmajorversion}.service >/dev/null 2>&1 || : - %else - /sbin/service %{sname}-%{pgmajorversion} condrestart >/dev/null 2>&1 - %endif -fi - -# Create alternatives entries for common binaries and man files -%post -%{_sbindir}/update-alternatives --install %{_bindir}/psql pgsql-psql %{pgbaseinstdir}/bin/psql %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/clusterdb pgsql-clusterdb %{pgbaseinstdir}/bin/clusterdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/createdb pgsql-createdb %{pgbaseinstdir}/bin/createdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/createuser pgsql-createuser %{pgbaseinstdir}/bin/createuser %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/dropdb pgsql-dropdb %{pgbaseinstdir}/bin/dropdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/dropuser pgsql-dropuser %{pgbaseinstdir}/bin/dropuser %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/pg_basebackup pgsql-pg_basebackup %{pgbaseinstdir}/bin/pg_basebackup %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/pg_dump pgsql-pg_dump %{pgbaseinstdir}/bin/pg_dump %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/pg_dumpall pgsql-pg_dumpall %{pgbaseinstdir}/bin/pg_dumpall %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/pg_restore pgsql-pg_restore %{pgbaseinstdir}/bin/pg_restore %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/reindexdb pgsql-reindexdb %{pgbaseinstdir}/bin/reindexdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_bindir}/vacuumdb pgsql-vacuumdb %{pgbaseinstdir}/bin/vacuumdb %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/clusterdb.1 pgsql-clusterdbman %{pgbaseinstdir}/share/man/man1/clusterdb.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/createdb.1 pgsql-createdbman %{pgbaseinstdir}/share/man/man1/createdb.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/createuser.1 pgsql-createuserman %{pgbaseinstdir}/share/man/man1/createuser.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/dropdb.1 pgsql-dropdbman %{pgbaseinstdir}/share/man/man1/dropdb.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/dropuser.1 pgsql-dropuserman %{pgbaseinstdir}/share/man/man1/dropuser.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/pg_basebackup.1 pgsql-pg_basebackupman %{pgbaseinstdir}/share/man/man1/pg_basebackup.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/pg_dump.1 pgsql-pg_dumpman %{pgbaseinstdir}/share/man/man1/pg_dump.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/pg_dumpall.1 pgsql-pg_dumpallman %{pgbaseinstdir}/share/man/man1/pg_dumpall.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/pg_restore.1 pgsql-pg_restoreman %{pgbaseinstdir}/share/man/man1/pg_restore.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/psql.1 pgsql-psqlman %{pgbaseinstdir}/share/man/man1/psql.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/reindexdb.1 pgsql-reindexdbman %{pgbaseinstdir}/share/man/man1/reindexdb.1 %{packageversion}0 -%{_sbindir}/update-alternatives --install %{_mandir}/man1/vacuumdb.1 pgsql-vacuumdbman %{pgbaseinstdir}/share/man/man1/vacuumdb.1 %{packageversion}0 - -%post libs -%{_sbindir}/update-alternatives --install /etc/ld.so.conf.d/%{sname}-pgdg-libs.conf pgsql-ld-conf %{pgbaseinstdir}/share/%{sname}-%{pgmajorversion}-libs.conf %{packageversion}0 -/sbin/ldconfig - -# 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) - %{_sbindir}/update-alternatives --remove pgsql-psql %{pgbaseinstdir}/bin/psql - %{_sbindir}/update-alternatives --remove pgsql-clusterdb %{pgbaseinstdir}/bin/clusterdb - %{_sbindir}/update-alternatives --remove pgsql-clusterdbman %{pgbaseinstdir}/share/man/man1/clusterdb.1 - %{_sbindir}/update-alternatives --remove pgsql-createdb %{pgbaseinstdir}/bin/createdb - %{_sbindir}/update-alternatives --remove pgsql-createdbman %{pgbaseinstdir}/share/man/man1/createdb.1 - %{_sbindir}/update-alternatives --remove pgsql-createuser %{pgbaseinstdir}/bin/createuser - %{_sbindir}/update-alternatives --remove pgsql-createuserman %{pgbaseinstdir}/share/man/man1/createuser.1 - %{_sbindir}/update-alternatives --remove pgsql-dropdb %{pgbaseinstdir}/bin/dropdb - %{_sbindir}/update-alternatives --remove pgsql-dropdbman %{pgbaseinstdir}/share/man/man1/dropdb.1 - %{_sbindir}/update-alternatives --remove pgsql-dropuser %{pgbaseinstdir}/bin/dropuser - %{_sbindir}/update-alternatives --remove pgsql-dropuserman %{pgbaseinstdir}/share/man/man1/dropuser.1 - %{_sbindir}/update-alternatives --remove pgsql-pg_basebackup %{pgbaseinstdir}/bin/pg_basebackup - %{_sbindir}/update-alternatives --remove pgsql-pg_dump %{pgbaseinstdir}/bin/pg_dump - %{_sbindir}/update-alternatives --remove pgsql-pg_dumpall %{pgbaseinstdir}/bin/pg_dumpall - %{_sbindir}/update-alternatives --remove pgsql-pg_dumpallman %{pgbaseinstdir}/share/man/man1/pg_dumpall.1 - %{_sbindir}/update-alternatives --remove pgsql-pg_basebackupman %{pgbaseinstdir}/share/man/man1/pg_basebackup.1 - %{_sbindir}/update-alternatives --remove pgsql-pg_dumpman %{pgbaseinstdir}/share/man/man1/pg_dump.1 - %{_sbindir}/update-alternatives --remove pgsql-pg_restore %{pgbaseinstdir}/bin/pg_restore - %{_sbindir}/update-alternatives --remove pgsql-pg_restoreman %{pgbaseinstdir}/share/man/man1/pg_restore.1 - %{_sbindir}/update-alternatives --remove pgsql-psqlman %{pgbaseinstdir}/share/man/man1/psql.1 - %{_sbindir}/update-alternatives --remove pgsql-reindexdb %{pgbaseinstdir}/bin/reindexdb - %{_sbindir}/update-alternatives --remove pgsql-reindexdbman %{pgbaseinstdir}/share/man/man1/reindexdb.1 - %{_sbindir}/update-alternatives --remove pgsql-vacuumdb %{pgbaseinstdir}/bin/vacuumdb - %{_sbindir}/update-alternatives --remove pgsql-vacuumdbman %{pgbaseinstdir}/share/man/man1/vacuumdb.1 - fi - -%postun libs -if [ "$1" -eq 0 ] - then - %{_sbindir}/update-alternatives --remove pgsql-ld-conf %{pgbaseinstdir}/share/%{sname}-%{pgmajorversion}-libs.conf - /sbin/ldconfig -fi - -%clean -%{__rm} -rf %{buildroot} - -# FILES section. - -%files -f pg_main.lst -%defattr(-,root,root) -%doc doc/KNOWN_BUGS doc/MISSING_FEATURES -%doc COPYRIGHT doc/bug.template -%doc README.rpm-dist -%{pgbaseinstdir}/bin/clusterdb -%{pgbaseinstdir}/bin/createdb -%{pgbaseinstdir}/bin/createuser -%{pgbaseinstdir}/bin/dropdb -%{pgbaseinstdir}/bin/dropuser -%{pgbaseinstdir}/bin/pgbench -%{pgbaseinstdir}/bin/pg_archivecleanup -%{pgbaseinstdir}/bin/pg_basebackup -%{pgbaseinstdir}/bin/pg_config -%{pgbaseinstdir}/bin/pg_dump -%{pgbaseinstdir}/bin/pg_dumpall -%{pgbaseinstdir}/bin/pg_isready -%{pgbaseinstdir}/bin/pg_restore -%{pgbaseinstdir}/bin/pg_rewind -%{pgbaseinstdir}/bin/pg_test_fsync -%{pgbaseinstdir}/bin/pg_test_timing -%{pgbaseinstdir}/bin/pg_receivewal -%{pgbaseinstdir}/bin/pg_upgrade -%{pgbaseinstdir}/bin/pg_waldump -%{pgbaseinstdir}/bin/psql -%{pgbaseinstdir}/bin/reindexdb -%{pgbaseinstdir}/bin/vacuumdb -%{pgbaseinstdir}/share/man/man1/clusterdb.* -%{pgbaseinstdir}/share/man/man1/createdb.* -%{pgbaseinstdir}/share/man/man1/createuser.* -%{pgbaseinstdir}/share/man/man1/dropdb.* -%{pgbaseinstdir}/share/man/man1/dropuser.* -%{pgbaseinstdir}/share/man/man1/pgbench.1 -%{pgbaseinstdir}/share/man/man1/pg_archivecleanup.1 -%{pgbaseinstdir}/share/man/man1/pg_basebackup.* -%{pgbaseinstdir}/share/man/man1/pg_config.* -%{pgbaseinstdir}/share/man/man1/pg_dump.* -%{pgbaseinstdir}/share/man/man1/pg_dumpall.* -%{pgbaseinstdir}/share/man/man1/pg_isready.* -%{pgbaseinstdir}/share/man/man1/pg_receivewal.* -%{pgbaseinstdir}/share/man/man1/pg_restore.* -%{pgbaseinstdir}/share/man/man1/pg_rewind.1 -%{pgbaseinstdir}/share/man/man1/pg_test_fsync.1 -%{pgbaseinstdir}/share/man/man1/pg_test_timing.1 -%{pgbaseinstdir}/share/man/man1/pg_upgrade.1 -%{pgbaseinstdir}/share/man/man1/pg_waldump.1 -%{pgbaseinstdir}/share/man/man1/psql.* -%{pgbaseinstdir}/share/man/man1/reindexdb.* -%{pgbaseinstdir}/share/man/man1/vacuumdb.* -%{pgbaseinstdir}/share/man/man3/* -%{pgbaseinstdir}/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 %{pgbaseinstdir}/doc/extension/*.example -%{pgbaseinstdir}/lib/_int.so -%{pgbaseinstdir}/lib/adminpack.so -%{pgbaseinstdir}/lib/amcheck.so -%{pgbaseinstdir}/lib/auth_delay.so -%{pgbaseinstdir}/lib/autoinc.so -%{pgbaseinstdir}/lib/auto_explain.so -%{pgbaseinstdir}/lib/bloom.so -%{pgbaseinstdir}/lib/btree_gin.so -%{pgbaseinstdir}/lib/btree_gist.so -%{pgbaseinstdir}/lib/chkpass.so -%{pgbaseinstdir}/lib/citext.so -%{pgbaseinstdir}/lib/cube.so -%{pgbaseinstdir}/lib/dblink.so -%{pgbaseinstdir}/lib/earthdistance.so -%{pgbaseinstdir}/lib/file_fdw.so* -%{pgbaseinstdir}/lib/fuzzystrmatch.so -%{pgbaseinstdir}/lib/insert_username.so -%{pgbaseinstdir}/lib/isn.so -%{pgbaseinstdir}/lib/hstore.so -%if %plperl -%{pgbaseinstdir}/lib/hstore_plperl.so -%endif -%{pgbaseinstdir}/lib/lo.so -%{pgbaseinstdir}/lib/ltree.so -%{pgbaseinstdir}/lib/moddatetime.so -%{pgbaseinstdir}/lib/pageinspect.so -%{pgbaseinstdir}/lib/passwordcheck.so -%{pgbaseinstdir}/lib/pgcrypto.so -%{pgbaseinstdir}/lib/pgrowlocks.so -%{pgbaseinstdir}/lib/pgstattuple.so -%{pgbaseinstdir}/lib/pg_buffercache.so -%{pgbaseinstdir}/lib/pg_freespacemap.so -%{pgbaseinstdir}/lib/pg_prewarm.so -%{pgbaseinstdir}/lib/pg_stat_statements.so -%{pgbaseinstdir}/lib/pg_trgm.so -%{pgbaseinstdir}/lib/pg_visibility.so -%{pgbaseinstdir}/lib/postgres_fdw.so -%{pgbaseinstdir}/lib/refint.so -%{pgbaseinstdir}/lib/seg.so -%if %ssl -%{pgbaseinstdir}/lib/sslinfo.so -%endif -%if %selinux -%{pgbaseinstdir}/lib/sepgsql.so -%{pgbaseinstdir}/share/contrib/sepgsql.sql -%endif -%{pgbaseinstdir}/lib/tablefunc.so -%{pgbaseinstdir}/lib/tcn.so -%{pgbaseinstdir}/lib/test_decoding.so -%{pgbaseinstdir}/lib/timetravel.so -%{pgbaseinstdir}/lib/tsm_system_rows.so -%{pgbaseinstdir}/lib/tsm_system_time.so -%{pgbaseinstdir}/lib/unaccent.so -%if %xml -%{pgbaseinstdir}/lib/pgxml.so -%endif -%if %uuid -%{pgbaseinstdir}/lib/uuid-ossp.so -%endif -%{pgbaseinstdir}/share/extension/adminpack* -%{pgbaseinstdir}/share/extension/amcheck* -%{pgbaseinstdir}/share/extension/autoinc* -%{pgbaseinstdir}/share/extension/bloom* -%{pgbaseinstdir}/share/extension/btree_gin* -%{pgbaseinstdir}/share/extension/btree_gist* -%{pgbaseinstdir}/share/extension/chkpass* -%{pgbaseinstdir}/share/extension/citext* -%{pgbaseinstdir}/share/extension/cube* -%{pgbaseinstdir}/share/extension/dblink* -%{pgbaseinstdir}/share/extension/dict_int* -%{pgbaseinstdir}/share/extension/dict_xsyn* -%{pgbaseinstdir}/share/extension/earthdistance* -%{pgbaseinstdir}/share/extension/file_fdw* -%{pgbaseinstdir}/share/extension/fuzzystrmatch* -%{pgbaseinstdir}/share/extension/hstore.control -%{pgbaseinstdir}/share/extension/hstore--*.sql -%if %plperl -%{pgbaseinstdir}/share/extension/hstore_plperl* -%endif -%{pgbaseinstdir}/share/extension/insert_username* -%{pgbaseinstdir}/share/extension/intagg* -%{pgbaseinstdir}/share/extension/intarray* -%{pgbaseinstdir}/share/extension/isn* -%{pgbaseinstdir}/share/extension/lo* -%{pgbaseinstdir}/share/extension/ltree.control -%{pgbaseinstdir}/share/extension/ltree--*.sql -%{pgbaseinstdir}/share/extension/moddatetime* -%{pgbaseinstdir}/share/extension/pageinspect* -%{pgbaseinstdir}/share/extension/pg_buffercache* -%{pgbaseinstdir}/share/extension/pg_freespacemap* -%{pgbaseinstdir}/share/extension/pg_prewarm* -%{pgbaseinstdir}/share/extension/pg_stat_statements* -%{pgbaseinstdir}/share/extension/pg_trgm* -%{pgbaseinstdir}/share/extension/pg_visibility* -%{pgbaseinstdir}/share/extension/pgcrypto* -%{pgbaseinstdir}/share/extension/pgrowlocks* -%{pgbaseinstdir}/share/extension/pgstattuple* -%{pgbaseinstdir}/share/extension/postgres_fdw* -%{pgbaseinstdir}/share/extension/refint* -%{pgbaseinstdir}/share/extension/seg* -%if %ssl -%{pgbaseinstdir}/share/extension/sslinfo* -%endif -%{pgbaseinstdir}/share/extension/tablefunc* -%{pgbaseinstdir}/share/extension/tcn* -%{pgbaseinstdir}/share/extension/timetravel* -%{pgbaseinstdir}/share/extension/tsm_system_rows* -%{pgbaseinstdir}/share/extension/tsm_system_time* -%{pgbaseinstdir}/share/extension/unaccent* -%if %uuid -%{pgbaseinstdir}/share/extension/uuid-ossp* -%endif -%if %xml -%{pgbaseinstdir}/share/extension/xml2* -%endif -%{pgbaseinstdir}/bin/oid2name -%{pgbaseinstdir}/bin/vacuumlo -%{pgbaseinstdir}/bin/pg_recvlogical -%{pgbaseinstdir}/bin/pg_standby -%{pgbaseinstdir}/share/man/man1/oid2name.1 -%{pgbaseinstdir}/share/man/man1/pg_recvlogical.1 -%{pgbaseinstdir}/share/man/man1/pg_standby.1 -%{pgbaseinstdir}/share/man/man1/vacuumlo.1 - -%files libs -f pg_libpq5.lst -%defattr(-,root,root) -%{pgbaseinstdir}/lib/libpq.so.* -%{pgbaseinstdir}/lib/libecpg.so* -%{pgbaseinstdir}/lib/libpgfeutils.a -%{pgbaseinstdir}/lib/libpgtypes.so.* -%{pgbaseinstdir}/lib/libecpg_compat.so.* -%{pgbaseinstdir}/lib/libpqwalreceiver.so -%config(noreplace) %attr (644,root,root) %{pgbaseinstdir}/share/%{sname}-%{pgmajorversion}-libs.conf - -%files server -f pg_server.lst -%defattr(-,root,root) -%if %{systemd_enabled} -%{pgbaseinstdir}/bin/%{sname}-%{pgmajorversion}-setup -%{_bindir}/%{sname}-%{pgmajorversion}-setup -%{pgbaseinstdir}/bin/%{sname}-%{pgmajorversion}-check-db-dir -%{_tmpfilesdir}/%{sname}-%{pgmajorversion}.conf -%{_unitdir}/%{sname}-%{pgmajorversion}.service -%else -%config(noreplace) %{_initrddir}/%{sname}-%{pgmajorversion} -%endif -%if %pam -%config(noreplace) /etc/pam.d/%{sname} -%endif -%attr (755,root,root) %dir /etc/sysconfig/pgsql -%{pgbaseinstdir}/bin/initdb -%{pgbaseinstdir}/bin/pg_controldata -%{pgbaseinstdir}/bin/pg_ctl -%{pgbaseinstdir}/bin/pg_resetwal -%{pgbaseinstdir}/bin/postgres -%{pgbaseinstdir}/bin/postmaster -%{pgbaseinstdir}/share/man/man1/initdb.* -%{pgbaseinstdir}/share/man/man1/pg_controldata.* -%{pgbaseinstdir}/share/man/man1/pg_ctl.* -%{pgbaseinstdir}/share/man/man1/pg_resetwal.* -%{pgbaseinstdir}/share/man/man1/postgres.* -%{pgbaseinstdir}/share/man/man1/postmaster.* -%{pgbaseinstdir}/share/postgres.bki -%{pgbaseinstdir}/share/postgres.description -%{pgbaseinstdir}/share/postgres.shdescription -%{pgbaseinstdir}/share/system_views.sql -%{pgbaseinstdir}/share/*.sample -%{pgbaseinstdir}/share/timezonesets/* -%{pgbaseinstdir}/share/tsearch_data/*.affix -%{pgbaseinstdir}/share/tsearch_data/*.dict -%{pgbaseinstdir}/share/tsearch_data/*.ths -%{pgbaseinstdir}/share/tsearch_data/*.rules -%{pgbaseinstdir}/share/tsearch_data/*.stop -%{pgbaseinstdir}/share/tsearch_data/*.syn -%{pgbaseinstdir}/lib/dict_int.so -%{pgbaseinstdir}/lib/dict_snowball.so -%{pgbaseinstdir}/lib/dict_xsyn.so -%{pgbaseinstdir}/lib/euc2004_sjis2004.so -%{pgbaseinstdir}/lib/pgoutput.so -%{pgbaseinstdir}/lib/plpgsql.so -%dir %{pgbaseinstdir}/share/extension -%{pgbaseinstdir}/share/extension/plpgsql* - -%dir %{pgbaseinstdir}/lib -%dir %{pgbaseinstdir}/share -%if 0%{?suse_version} -%if 0%{?suse_version} >= 1315 -%endif -%else -%attr(700,postgres,postgres) %dir /var/lib/pgsql -%endif -%attr(700,postgres,postgres) %dir /var/lib/pgsql/%{pgmajorversion} -%attr(700,postgres,postgres) %dir /var/lib/pgsql/%{pgmajorversion}/data -%attr(700,postgres,postgres) %dir /var/lib/pgsql/%{pgmajorversion}/backups -%attr(755,postgres,postgres) %dir /var/run/%{sname} -%{pgbaseinstdir}/lib/*_and_*.so -%{pgbaseinstdir}/share/conversion_create.sql -%{pgbaseinstdir}/share/information_schema.sql -%{pgbaseinstdir}/share/snowball_create.sql -%{pgbaseinstdir}/share/sql_features.txt - -%files devel -f pg_devel.lst -%defattr(-,root,root) -%{pgbaseinstdir}/include/* -%{pgbaseinstdir}/bin/ecpg -%{pgbaseinstdir}/lib/libpq.so -%{pgbaseinstdir}/lib/libecpg.so -%{pgbaseinstdir}/lib/libpq.a -%{pgbaseinstdir}/lib/libecpg.a -%{pgbaseinstdir}/lib/libecpg_compat.so -%{pgbaseinstdir}/lib/libecpg_compat.a -%{pgbaseinstdir}/lib/libpgcommon.a -%{pgbaseinstdir}/lib/libpgport.a -%{pgbaseinstdir}/lib/libpgtypes.so -%{pgbaseinstdir}/lib/libpgtypes.a -%{pgbaseinstdir}/lib/pgxs/* -%{pgbaseinstdir}/lib/pkgconfig/* -%{pgbaseinstdir}/share/man/man1/ecpg.* - -%if %plperl -%files plperl -f pg_plperl.lst -%defattr(-,root,root) -%{pgbaseinstdir}/lib/plperl.so -%{pgbaseinstdir}/share/extension/plperl* -%endif - -%if %pltcl -%files pltcl -f pg_pltcl.lst -%defattr(-,root,root) -%{pgbaseinstdir}/lib/pltcl.so -%{pgbaseinstdir}/share/extension/pltcl* -%endif - -%if %plpython2 -%files plpython -f pg_plpython.lst -%defattr(-,root,root) -%{pgbaseinstdir}/lib/plpython2.so -%{pgbaseinstdir}/share/extension/plpython2u* -%{pgbaseinstdir}/share/extension/plpythonu* -%{pgbaseinstdir}/lib/hstore_plpython2.so -%{pgbaseinstdir}/lib/ltree_plpython2.so -%{pgbaseinstdir}/share/extension/*_plpythonu* -%{pgbaseinstdir}/share/extension/*_plpython2u* -%endif - -%if %plpython3 -%files plpython3 -f pg_plpython3.lst -%{pgbaseinstdir}/share/extension/plpython3* -%{pgbaseinstdir}/lib/plpython3.so -%{pgbaseinstdir}/lib/hstore_plpython3.so -%{pgbaseinstdir}/lib/ltree_plpython3.so -%{pgbaseinstdir}/share/extension/*_plpython3u* -%endif - -%if %test -%files test -%defattr(-,postgres,postgres) -%attr(-,postgres,postgres) %{pgbaseinstdir}/lib/test/* -%attr(-,postgres,postgres) %dir %{pgbaseinstdir}/lib/test -%endif - -%changelog -* Thu May 13 2021 Devrim Gündüz - 10.17-1PGDG -- Update to 10.17, per changes described at - https://www.postgresql.org/docs/release/10.17/ - -* Tue Feb 9 2021 Devrim Gündüz - 10.16-1PGDG -- Update to 10.16, per changes described at - https://www.postgresql.org/docs/release/10.16/ - -* Thu Jan 7 2021 Devrim Gündüz - 10.15-2PGDG -- Drop Advance Toolchain on RHEL 8 - ppc64le. - -* Mon Nov 9 2020 Devrim Gündüz - 10.15-1PGDG -- Update to 10.15, per changes described at - https://www.postgresql.org/docs/release/10.15/ - -* Thu Oct 1 2020 Devrim Gündüz - 10.14-3PGDG -- Updates for Fedora 33 support. - -* Wed Sep 23 2020 Devrim Gündüz - 10.14-2PGDG -- Add setup script under $PATH - -* Wed Aug 12 2020 Devrim Gündüz - 10.14-1PGDG -- Update to 10.14, per changes described at - https://www.postgresql.org/docs/release/10.14/ - -* Mon Jun 15 2020 Devrim Gündüz - 10.13-2PGDG -- Fix builds if plperl macro is disabled. Per report and patch from - Floris Van Nee. - -* Wed May 13 2020 Devrim Gündüz - 10.13-1PGDG -- Update to 10.13, per changes described at - https://www.postgresql.org/docs/release/10.13/ - -* Tue Apr 28 2020 2020 Devrim Gündüz - 10.12-2PGDG -- Fix F-32 PL/Python2 dependency. Fedora 32 is the last version which - supports PL/Python2 package. - -* Tue Feb 11 2020 Devrim Gündüz - 10.12-1PGDG -- Update to 10.12, per changes described at - https://www.postgresql.org/docs/release/10.12/ - -* Mon Jan 27 2020 Devrim Gündüz - 10.11-3PGDG -- SLES 12 fixes - -* Sat Nov 30 2019 Devrim Gündüz - 10.11-2PGDG -- Fix PL/Python 3 packaging. - -* Mon Nov 11 2019 Devrim Gündüz - 10.11-1PGDG -- Update to 10.11, per changes described at - https://www.postgresql.org/docs/release/10.11/ -- Fix Python dependency issue in the main package, and move all - plpython* packages into their respective subpackages. -- Use correct openssl-libs dependency, per John Harvey. - -* Mon Oct 28 2019 Devrim Gündüz - 10.10-2PGDG -- Remove obsoleted tmpfiles_create macro. We don't need it anyway, - already manually install the file. - -* Tue Aug 6 2019 Devrim Gündüz - 10.10-1PGDG -- Update to 10.10, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-10.html - -* Wed Jun 19 2019 Devrim Gündüz - 10.9-1PGDG -- Update to 10.9, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-9.html - -* Mon May 6 2019 Devrim Gündüz - 10.8-1PGDG -- Update to 10.8, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-8.html - -* Sun Feb 24 2019 Devrim Gündüz - 10.7-2PGDG -- Disable jit on s390. Patch from Mark Wong. -- Fix PL/Python3 builds. - -* Tue Feb 12 2019 Devrim Gündüz - 10.7-1PGDG -- Update to 10.7, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-7.html - -* Wed Nov 21 2018 Devrim Gündüz - 10.6-2PGDG -- Initial attempt for RHEL 8 packaging updates. -- Rename plpython macro to plpython2, to stress that it is for Python 2. - -* Tue Nov 6 2018 Devrim Gündüz - 10.6-1PGDG -- Update to 10.6, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-6.html -- Fix upgrade path setup script, and add check_upgrade as well. - -* Thu Aug 9 2018 Devrim Gündüz - 10.5-1PGDG -- Update to 10.5, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-5.html - -* Tue May 8 2018 Devrim Gündüz - 10.4-1PGDG -- Update to 10.4, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-4.html -- Build hstore_plpyton and ltree_plpython with PY3 as well. This - is a backport of 969cf62e70e6f97725f53ac70bf07214555df45d . - -* Mon Feb 26 2018 Devrim Gündüz - 10.3-1PGDG -- Update to 10.3, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-3.html - -* Tue Feb 6 2018 Devrim Gündüz - 10.2-1PGDG -- Update to 10.2, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-2.html - -* Tue Dec 12 2017 Devrim Gündüz - 10.1-6PGDG -- Revert TimeOutSec changes in unit file, because infinity is only - valid in systemd >= 229. - -* Mon Dec 11 2017 Devrim Gündüz - 10.1-5PGDG -- RHEL 6 only: Fix startup issue in init script, per - https://redmine.postgresql.org/issues/2941 - -* Mon Dec 11 2017 Devrim Gündüz - 10.1-4PGDG -- RHEL 6 only: Fix regression in init script. Fixes PostgreSQL bug - #14957 and many other reports. - -* Thu Dec 7 2017 John K. Harvey - 10.1-3PGDG -- Fixes for CVE-2017-12172 (EL-6 only) -- Update TimeOutSec parameter to match systemd docs (EL-7 only) - -* Wed Nov 29 2017 Devrim Gündüz - 10.1-2PGDG -- Fixes for CVE-2017-12172 (RHEL-6 only) - -* Tue Nov 7 2017 Devrim Gündüz - 10.1-1PGDG -- Update to 10.1, per changes described at - https://www.postgresql.org/docs/devel/static/release-10-1.html - -- Fix #1289 (OOM killer control for PostgreSQL) -* Sun Oct 15 2017 Devrim Gündüz - 10.0-2PGDG -- Fix #1289 (OOM killer control for PostgreSQL) -- Do not set any timeout value, so that systemd will not kill postmaster - during crash recovery. Fixes #2786. - -* Tue Oct 3 2017 Devrim Gündüz - 10.0-1PGDG -- Update to 10.0 - -* Mon Sep 18 2017 Devrim Gündüz - 10.0rc1-1PGDG -- Update to 10 rc1 - -* Tue Aug 29 2017 Devrim Gündüz - 10.0beta4-1PGDG -- Update to 10 beta4 - -* Mon Aug 7 2017 Devrim Gündüz - 10.0beta3-1PGDG -- Update to 10 beta3 - -* Fri Jul 14 2017 Devrim Gündüz - 10.0beta2-3PGDG -- Fix version calculation in RHEL 6 init script, per Justin Pryzby. -- Add tcl as a dependency to pltcl subpackage, per Fahar Abbas. - -* Fri Jul 14 2017 Devrim Gündüz - 10.0beta2-2PGDG -- Fix version calculation in RHEL 6 init script, per Justin Pryzby. - -* Tue Jul 11 2017 Devrim Gündüz - 10.0beta2-1PGDG -- Update to 10 beta2 - -* Sat Jul 8 2017 Devrim Gündüz - 10.0beta1-3PGDG -- Bump up the version for SLES support. - -* Mon Jun 12 2017 Devrim Gündüz - 10.0beta1-2PGDG -- Use separate README files for RHEL6 and others. Fixes #2471. -- Add missing macro, per #2416 . - -* Wed May 17 2017 Devrim Gündüz - 10.0beta1-1PGDG -- Initial cut for PostgreSQL 10 Beta 1 -- Rename all patches and sources, and add the same prefix to all of them. -- Rename -setup and -check-db-dir scripts for consistency. -- Trim up the header significantly, remove pretty much obsoleted information. -- Add new translations. - -* Wed Apr 12 2017 Devrim Gündüz - 10.0-20170412_1PGDG -- Initial attempt for Power RPMs. -- Cleanups for rpmlint warnings - -* Wed Feb 22 2017 Devrim Gündüz - 10.0-20170222_1PGDG -- Update to Feb 22 2017 snapshot -- Fix creating parent directory issue in setup script, per report and fix - from Magnus. Fixes #2188 - -* Wed Feb 8 2017 Devrim Gündüz - 10.0-20170208_1PGDG -- Update to Feb 8 2017 snapshot -- Fix version numbering (MMMYYYDD) - -* Mon Jan 23 2017 Devrim Gündüz - 10.0-20172301_1PGDG -- Update to Jan 23, 2017 snapshot - -* Wed Jan 4 2017 Devrim Gündüz - 10.0-20170301_1PGDG -- Initial cut for 10.0 development - diff --git a/pscheduler-archiver-esmond/esmond/unibuild-packaging/rpm/pscheduler-archiver-esmond.spec b/pscheduler-archiver-esmond/esmond/unibuild-packaging/rpm/pscheduler-archiver-esmond.spec index 8da76f5913..8cf08c14b5 100644 --- a/pscheduler-archiver-esmond/esmond/unibuild-packaging/rpm/pscheduler-archiver-esmond.spec +++ b/pscheduler-archiver-esmond/esmond/unibuild-packaging/rpm/pscheduler-archiver-esmond.spec @@ -25,11 +25,7 @@ Requires: %{_pscheduler_python}-pscheduler >= 1.3.7.1 Requires: %{_pscheduler_python}-memcached Requires: memcached Requires(post): memcached -%if 0%{?el7} -%{?systemd_requires: %systemd_requires} -%else Requires: chkconfig -%endif BuildRequires: pscheduler-rpm BuildRequires: %{_pscheduler_python}-pscheduler @@ -59,16 +55,8 @@ pscheduler internal warmboot #Only start memcached on new install so people have ability to disable if they so desire if [ "$1" = "1" ]; then - -%if 0%{?el7} - #enable memcached on new install - systemctl enable memcached.service - systemctl start memcached.service -%else /sbin/chkconfig memcached on /sbin/service memcached start -%endif - fi diff --git a/pscheduler-core/pscheduler-core/unibuild-packaging/rpm/pscheduler-core.spec b/pscheduler-core/pscheduler-core/unibuild-packaging/rpm/pscheduler-core.spec index 49f888e9ac..85de814cc3 100644 --- a/pscheduler-core/pscheduler-core/unibuild-packaging/rpm/pscheduler-core.spec +++ b/pscheduler-core/pscheduler-core/unibuild-packaging/rpm/pscheduler-core.spec @@ -22,22 +22,11 @@ Provides: %{name} = %{version}-%{release} Requires: bash-completion # This is for plot-schedule -%if 0%{?el7} -Requires: gnuplot-minimal >= 4.6.2 -%endif -%if 0%{?el8} Requires: gnuplot >= 4.6.2 -%endif # This is for netstat. Requires: net-tools Requires: %{_pscheduler_python}-pscheduler >= 4.4.0 -%if 0%{?el7} -Requires: pytz -%endif -%if 0%{?el8} -Requires: %{_pscheduler_python}-pytz -%endif Requires: curl Requires: dmidecode diff --git a/pscheduler-rpm/unibuild-packaging/rpm/pscheduler-rpm.spec b/pscheduler-rpm/unibuild-packaging/rpm/pscheduler-rpm.spec index eab0c52ba6..6136cdfc65 100644 --- a/pscheduler-rpm/unibuild-packaging/rpm/pscheduler-rpm.spec +++ b/pscheduler-rpm/unibuild-packaging/rpm/pscheduler-rpm.spec @@ -34,11 +34,6 @@ cat > $RPM_BUILD_ROOT/%{macro_prefix}%{name} < $RPM_BUILD_ROOT/%{macro_prefix}%{name} < $RPM_BUILD_ROOT/%{macro_prefix}%{name} < 4.0 Requires: %{_pscheduler_python}-parse-crontab Requires: %{_pscheduler_python}-pscheduler >= 5.1.0 - -%if 0%{?el7} -Requires: pytz -%endif -%if 0%{?el8}%{?el9} Requires: %{_pscheduler_python}-pytz -%endif # General BuildRequires: pscheduler-rpm diff --git a/pscheduler-tool-dhclient/dhclient/unibuild-packaging/rpm/pscheduler-tool-dhclient.spec b/pscheduler-tool-dhclient/dhclient/unibuild-packaging/rpm/pscheduler-tool-dhclient.spec index 2b09e0bbb7..9e91de86f2 100644 --- a/pscheduler-tool-dhclient/dhclient/unibuild-packaging/rpm/pscheduler-tool-dhclient.spec +++ b/pscheduler-tool-dhclient/dhclient/unibuild-packaging/rpm/pscheduler-tool-dhclient.spec @@ -28,14 +28,11 @@ Provides: %{name} = %{version}-%{release} # Include all required libraries here Requires: pscheduler-server Requires: %{_pscheduler_python}-pscheduler -%if 0%{?el7} -Requires: dhclient -%endif -%if 0%{?el8} -Requires: dhcp-client + +# TODO: Why is there a discrepancy between dhcp-client and dhclient here? + # Needed so the sudoers file can be built BuildRequires: dhcp-client -%endif BuildRequires: pscheduler-rpm BuildRequires: dhclient diff --git a/pscheduler-tool-powstream/powstream/unibuild-packaging/rpm/pscheduler-tool-powstream.spec b/pscheduler-tool-powstream/powstream/unibuild-packaging/rpm/pscheduler-tool-powstream.spec index 442949f5a0..1867830618 100644 --- a/pscheduler-tool-powstream/powstream/unibuild-packaging/rpm/pscheduler-tool-powstream.spec +++ b/pscheduler-tool-powstream/powstream/unibuild-packaging/rpm/pscheduler-tool-powstream.spec @@ -25,14 +25,6 @@ Provides: %{name} = %{version}-%{release} Requires: pscheduler-server >= 4.3.0 Requires: %{_pscheduler_python}-pscheduler >= 4.3.0 Requires: pscheduler-test-latencybg - -%if 0%{?el7} -Requires: pytz -%endif -%if 0%{?el8} -Requires: %{_pscheduler_python}-pytz -%endif - Requires: owamp-client Requires: owamp-server diff --git a/python-flask/unibuild-packaging/rpm/python-flask.spec b/python-flask/unibuild-packaging/rpm/python-flask.spec index 2e9cb748f8..9516f14999 100644 --- a/python-flask/unibuild-packaging/rpm/python-flask.spec +++ b/python-flask/unibuild-packaging/rpm/python-flask.spec @@ -20,28 +20,14 @@ URL: https://palletsprojects.com/p/flask Source: %{short}-%{version}.tar.gz Requires: %{_pscheduler_python} - -%if 0%{?el7} -Requires: %{_pscheduler_python_epel}-click -Requires: %{_pscheduler_python_epel}-jinja2 -%endif -%if 0%{?el8}%{?el9} Requires: %{_pscheduler_python}-click Requires: %{_pscheduler_python}-jinja2 -%endif - Requires: %{_pscheduler_python}-itsdangerous Requires: %{_pscheduler_python}-werkzeug BuildRequires: %{_pscheduler_python} BuildRequires: %{_pscheduler_python}-setuptools - -%if 0%{?el8}%{?el9} -# EL8/EL9's auto dependency scanner wants /bin/python3, which nothing provides. -AutoReqProv: no -%endif - %description Flask is called a “micro-framework” because the idea to keep the core simple but extensible. There is no database abstraction layer, no form diff --git a/python-isodate/Makefile b/python-isodate/Makefile deleted file mode 100644 index 25bcfb5e7d..0000000000 --- a/python-isodate/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for Any Package -# - -include unibuild/unibuild.make diff --git a/python-isodate/isodate-0.5.4.tar.gz b/python-isodate/isodate-0.5.4.tar.gz deleted file mode 100644 index e05ba97e37..0000000000 Binary files a/python-isodate/isodate-0.5.4.tar.gz and /dev/null differ diff --git a/python-isodate/unibuild-packaging/rpm/python-isodate.spec b/python-isodate/unibuild-packaging/rpm/python-isodate.spec deleted file mode 100644 index c213d6aa24..0000000000 --- a/python-isodate/unibuild-packaging/rpm/python-isodate.spec +++ /dev/null @@ -1,55 +0,0 @@ -# -# RPM Spec for Python isodate Module -# - -%define short isodate -Name: %{_pscheduler_python}-%{short} -Version: 0.5.4 -Release: 1%{?dist} -Summary: An ISO 8601 date/time/duration parser and formatter -BuildArch: noarch -License: BSD -Group: Development/Libraries - -Provides: %{name} = %{version}-%{release} -Prefix: %{_prefix} - -Vendor: Gerhard Weis -Url: http://cheeseshop.python.org/pypi/isodate - -Source: %{short}-%{version}.tar.gz - -Requires: %{_pscheduler_python} - -BuildRequires: %{_pscheduler_python} -BuildRequires: %{_pscheduler_python}-setuptools - -%description -This module implements ISO 8601 date, time and duration parsing. The -implementation follows ISO8601:2004 standard, and implements only -date/time representations mentioned in the standard. - - - -# Don't do automagic post-build things. -%global __os_install_post %{nil} - - -%prep -%setup -q -n %{short}-%{version} - - -%build -%{_pscheduler_python} setup.py build - - -%install -%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES - - -%clean -rm -rf $RPM_BUILD_ROOT - - -%files -f INSTALLED_FILES -%defattr(-,root,root) diff --git a/python-jsonschema/unibuild-packaging/rpm/python-jsonschema.spec b/python-jsonschema/unibuild-packaging/rpm/python-jsonschema.spec index 1e419c17dc..fb50240772 100644 --- a/python-jsonschema/unibuild-packaging/rpm/python-jsonschema.spec +++ b/python-jsonschema/unibuild-packaging/rpm/python-jsonschema.spec @@ -22,13 +22,6 @@ URL: http://pypi.python.org/pypi/jsonschema Source: %{short}-%{version}.tar.gz Requires: %{_pscheduler_python} -%if 0%{?el7} -Requires: %{_pscheduler_python_epel}-attrs -%endif -%if 0%{?el8} -Requires: %{_pscheduler_python}-attrs -%endif - Requires: %{_pscheduler_python}-pyrsistent # This is required for some reason. Requires: %{_pscheduler_python}-setuptools @@ -36,13 +29,6 @@ Requires: %{_pscheduler_python}-setuptools BuildRequires: %{_pscheduler_python} BuildRequires: %{_pscheduler_python}-setuptools -%if 0%{?el7} -BuildRequires: %{_pscheduler_python_epel}-setuptools_scm -%endif -%if 0%{?el8} -BuildRequires: %{_pscheduler_python}-setuptools_scm -%endif - %description JSON Schema library for Python diff --git a/python-memcached/Makefile b/python-memcached/Makefile deleted file mode 100644 index 25bcfb5e7d..0000000000 --- a/python-memcached/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for Any Package -# - -include unibuild/unibuild.make diff --git a/python-memcached/python-memcached-1.59.tar.gz b/python-memcached/python-memcached-1.59.tar.gz deleted file mode 100644 index 4adb4b0711..0000000000 Binary files a/python-memcached/python-memcached-1.59.tar.gz and /dev/null differ diff --git a/python-memcached/unibuild-packaging/rpm/python-memcached.spec b/python-memcached/unibuild-packaging/rpm/python-memcached.spec deleted file mode 100644 index d45d0dbfa1..0000000000 --- a/python-memcached/unibuild-packaging/rpm/python-memcached.spec +++ /dev/null @@ -1,60 +0,0 @@ -# -# RPM Spec for a Python Module -# - -# DEBIAN: This may need to be packaged for Debian - -%define short memcached -%define long python-%{short} -Name: %{_pscheduler_python}-%{short} -Version: 1.59 -Release: 1%{?dist} -Summary: Python interface to memcached -BuildArch: %(uname -m) -License: PSF -Group: Development/Libraries - -Provides: %{name} = %{version}-%{release} -Prefix: %{_prefix} - -Vendor: Sean Reifschneider -Url: https://github.com/linsomniac/python-memcached - -Source: python-%{short}-%{version}.tar.gz - -Requires: %{_pscheduler_python} - -BuildRequires: %{_pscheduler_python} -BuildRequires: %{_pscheduler_python}-setuptools - -%description -Python interface to memcached - - -# Don't do automagic post-build things. -%global __os_install_post %{nil} - - -%prep -%setup -q -n %{long}-%{version} - - - -%build -%{_pscheduler_python} setup.py build - - -%install -%{_pscheduler_python} setup.py install \ - --root=$RPM_BUILD_ROOT \ - --single-version-externally-managed \ - -O1 \ - --record=INSTALLED_FILES - - -%clean -rm -rf $RPM_BUILD_ROOT - - -%files -f INSTALLED_FILES -%defattr(-,root,root) diff --git a/python-netifaces/Makefile b/python-netifaces/Makefile deleted file mode 100644 index 25bcfb5e7d..0000000000 --- a/python-netifaces/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# -# Makefile for Any Package -# - -include unibuild/unibuild.make diff --git a/python-netifaces/netifaces-0.10.9.tar.gz b/python-netifaces/netifaces-0.10.9.tar.gz deleted file mode 100644 index f9ec79b75e..0000000000 Binary files a/python-netifaces/netifaces-0.10.9.tar.gz and /dev/null differ diff --git a/python-netifaces/unibuild-packaging/rpm/python-netifaces.spec b/python-netifaces/unibuild-packaging/rpm/python-netifaces.spec deleted file mode 100644 index 982aa4ff11..0000000000 --- a/python-netifaces/unibuild-packaging/rpm/python-netifaces.spec +++ /dev/null @@ -1,62 +0,0 @@ -# -# RPM Spec for a Python Module -# - -# DEBIAN: This may need to be packaged for Debian - -%define short netifaces -Name: %{_pscheduler_python}-%{short} -Version: 0.10.9 -Release: 1%{?dist} -Summary: Network interface utilities for Python -BuildArch: %(uname -m) -License: MIT -Group: Development/Libraries - -Provides: %{name} = %{version}-%{release} -Prefix: %{_prefix} - -Vendor: Alastair Houghton -Url: https://github.com/al45tair/netifaces - -Source: %{short}-%{version}.tar.gz - -Requires: %{_pscheduler_python} - -BuildRequires: %{_pscheduler_python} -BuildRequires: %{_pscheduler_python}-devel -BuildRequires: %{_pscheduler_python}-setuptools - -%description -Network interface utilities for Python - - -# Don't do automagic post-build things. -%global __os_install_post %{nil} - -# Don't need this, either. -%global debug_package %{nil} - -%prep -%setup -q -n %{short}-release_%(echo "%{version}" | tr . _ ) - - - -%build -%{_pscheduler_python} setup.py build - - -%install -%{_pscheduler_python} setup.py install \ - --root=$RPM_BUILD_ROOT \ - --single-version-externally-managed \ - -O1 \ - --record=INSTALLED_FILES - - -%clean -rm -rf $RPM_BUILD_ROOT - - -%files -f INSTALLED_FILES -%defattr(-,root,root) diff --git a/python-nmap3/unibuild-packaging/rpm/python-nmap3.spec b/python-nmap3/unibuild-packaging/rpm/python-nmap3.spec index b31bbf2df1..a6713331e4 100644 --- a/python-nmap3/unibuild-packaging/rpm/python-nmap3.spec +++ b/python-nmap3/unibuild-packaging/rpm/python-nmap3.spec @@ -21,12 +21,6 @@ Url: https://www.nmmapper.com/ Source: %{actual}-%{version}.tar.gz Requires: %{_pscheduler_python} -%if 0%{?el7} -Requires: %{_pscheduler_python_epel}-simplejson -%endif -%if 0%{?el8} -Requires: %{_pscheduler_python}-simplejson -%endif Requires: %{_pscheduler_python}-wheel Requires: nmap diff --git a/python-nose/unibuild-packaging/rpm/python-nose.spec b/python-nose/unibuild-packaging/rpm/python-nose.spec index f7f414f52f..a916d12ae2 100644 --- a/python-nose/unibuild-packaging/rpm/python-nose.spec +++ b/python-nose/unibuild-packaging/rpm/python-nose.spec @@ -63,11 +63,8 @@ Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-coverage >= 3.4-1 -%if 0%{?rhel} && 0%{?rhel} >= 8 -Requires: platform-python-setuptools -%else Requires: python3-setuptools -%endif + %{?python_provide:%python_provide python3-%{modname}} Obsoletes: platform-python-%{modname} < %{version}-%{release} diff --git a/python-pscheduler/pscheduler/unibuild-packaging/rpm/python-pscheduler.spec b/python-pscheduler/pscheduler/unibuild-packaging/rpm/python-pscheduler.spec index 711a648f09..8075c853ed 100644 --- a/python-pscheduler/pscheduler/unibuild-packaging/rpm/python-pscheduler.spec +++ b/python-pscheduler/pscheduler/unibuild-packaging/rpm/python-pscheduler.spec @@ -27,11 +27,7 @@ Source0: %{short}-%{version}.tar.gz Requires: iputils -%if 0%{?el7} != 0 -Requires: %{_pscheduler_python_epel}-attrs -%else Requires: %{_pscheduler_python}-attrs -%endif Requires: %{_pscheduler_python_epel}-dateutil Requires: %{_pscheduler_python_epel}-dns Requires: %{_pscheduler_python}-isodate @@ -59,11 +55,7 @@ BuildRequires: %{_pscheduler_python_epel}-nose BuildRequires: %{_pscheduler_python}-setuptools # NOTE: Cloned from above. BuildRequires: iputils -%if 0%{?el7} != 0 -BuildRequires: %{_pscheduler_python_epel}-attrs -%else BuildRequires: %{_pscheduler_python}-attrs -%endif BuildRequires: %{_pscheduler_python_epel}-dateutil BuildRequires: %{_pscheduler_python_epel}-dns BuildRequires: %{_pscheduler_python}-isodate diff --git a/python-pyjq/unibuild-packaging/rpm/python-pyjq.spec b/python-pyjq/unibuild-packaging/rpm/python-pyjq.spec index a4165c610f..b72e7dce58 100644 --- a/python-pyjq/unibuild-packaging/rpm/python-pyjq.spec +++ b/python-pyjq/unibuild-packaging/rpm/python-pyjq.spec @@ -29,12 +29,7 @@ Requires: oniguruma >= 5.9 BuildRequires: %{_pscheduler_python} BuildRequires: %{_pscheduler_python}-setuptools -%if 0%{?el8} -BuildRequires: %{_pscheduler_python}-Cython >= 0.19 -%endif -%if 0%{?el7}%{?el9} BuildRequires: Cython >= 0.19 -%endif BuildRequires: jq-devel >= 1.5 BuildRequires: oniguruma-devel >= 5.9 diff --git a/s3-benchmark/unibuild-packaging/rpm/s3-benchmark.spec b/s3-benchmark/unibuild-packaging/rpm/s3-benchmark.spec index 24e7c0b999..29a5bdb392 100644 --- a/s3-benchmark/unibuild-packaging/rpm/s3-benchmark.spec +++ b/s3-benchmark/unibuild-packaging/rpm/s3-benchmark.spec @@ -57,13 +57,6 @@ cleanup() } trap cleanup EXIT -%if 0%{?el7} -# EL7 has problems with its git that cause module fetches not to work. -# Use Golang's proxy to do it instead. -export GO111MODULE=on -export GOPROXY="https://proxy.golang.org" -%endif - go mod init wasabi.com/s3-benchmark go mod tidy go get ./... diff --git a/unibuild-order b/unibuild-order index a4582a9ae4..963a486b22 100755 --- a/unibuild-order +++ b/unibuild-order @@ -52,57 +52,43 @@ ifelse(PACKAGING,rpm,pscheduler-rpm) # PostgreSQL and Additions -# EL7 needs a custom PostgreSQL -ifelse(FAMILY/MAJOR,RedHat/7,pgdg-srpm-macros) -ifelse(FAMILY/MAJOR,RedHat/7,postgresql) -ifelse(FAMILY/MAJOR,RedHat/8,postgresql-systemd-fix) +# TODO: Need to see how relevant this still is, especially w/r/t upgrades postgresql-init postgresql-load # jq and friends -ifelse(DISTRO/MAJOR,Oracle/8,oniguruma) # CentOS 7 and EL8 have this, OL8 doesn't. ifelse(DISTRO/eval(MAJOR < 20),Ubuntu/1,oniguruma) # Ubuntu 20 and up are good. jq # Ours has patches. # Python Modules -ifelse(FAMILY/DISTRO/MAJOR,RedHat/Oracle/8,Cython) # Only build this on OL8. ifelse(FAMILY/MAJOR,Debian/9,python-attrs) # Needed here only. -# EL8 has a good one, EL7 and EL9 don't. -ifelse(FAMILY/eval(MAJOR == 7 || MAJOR == 9),RedHat/1,python-daemon) +# EL9 doesn't have a good version of this +ifelse(FAMILY/eval(MAJOR >= 9),RedHat/1,python-daemon) -ifelse(FAMILY/MAJOR,RedHat/7,python-isodate) # EL7 needs this; EL8 is up to date -# EL7 has a reasonably-current version of this. EL8 and later, we build. -ifelse(FAMILY/eval(MAJOR > 7),RedHat/1,python-itsdangerous) +# This needs to be built on EL9 and later +ifelse(FAMILY/eval(MAJOR >= 9),RedHat/1,python-itsdangerous) ifelse(DISTRO/eval(MAJOR > 19),Ubuntu/1,, # Ubuntu 20 has a newer version of this. DISTRO/eval(MAJOR > 10),Debian/1,, # As does Debian 11 - FAMILY/eval(MAJOR > 8),RedHat/1,, # And EL9+ + FAMILY/eval(MAJOR >= 9),RedHat/1,, # And EL9+ python-pyrsistent) python-nmap3 ifelse(DISTRO/eval(MAJOR > 19),Ubuntu/1,, # Ubuntu 20 has a newer version of this. DISTRO/eval(MAJOR > 10),Debian/1,, # As does Debian 11. - FAMILY/eval(MAJOR > 8),RedHat/1,, # EL9 provides a suitable version. - python-jsonschema) # EL8 has this, but an older version + python-jsonschema) python-kafka python-nmap3 -# Used by pscheduler-archiver-esmond -# EL8's is 1.58, ours is/was 1.59. Commits to the project show only -# cosmetic changes for the later version. -ifelse(FAMILY/MAJOR,RedHat/7,python-memcached) - python-jsontemplate -ifelse(FAMILY/eval(MAJOR >= 9),, # EL9+ has this. - python-netifaces) # TODO: This was deprecated after EL8. Switch to something new. ifelse(FAMILY/eval(MAJOR >= 9),RedHat/1,python-nose) -ifelse(FAMILY/eval(MAJOR == 7 || MAJOR == 9),RedHat/1,python-ntplib) +ifelse(FAMILY/eval(MAJOR >= 9),RedHat/1,python-ntplib) python-parse-crontab python-vine ifelse(DISTRO/eval(MAJOR > 21),Ubuntu/1,, # Ubuntu 22 has a newer version of this. @@ -112,13 +98,15 @@ python-py-radix python-pyjq python-tzlocal python-vcversioner +# TODO: We were building this; EL9 has a newer version. python-pyasn1 # EL8 has this, ours is newer python-pyasn1-modules +# TODO: See if EL9 is newer python-werkzeug # EL8 has this, ours is newer +# TODO: See if EL9 is newer python-flask # EL8 has this, ours is newer -# TODO: EPEL8 has a newer version that doesn't install. -# See https://bugzilla.redhat.com/show_bug.cgi?id=1838402 +# TODO: See if this is available in EL9 python-pysnmp # Home-grown Python Modules @@ -127,7 +115,6 @@ python-icmperror # Apache add-ons httpd-firewall # TODO: May no longer be used. Maybe for development? -ifelse(FAMILY/eval(MAJOR < 9),RedHat/1,mod_wsgi) httpd-wsgi-socket @@ -136,13 +123,12 @@ httpd-wsgi-socket # drop-in -ifelse(FAMILY/eval(MAJOR < 9),RedHat/1,libtins) # Dublin-traceroute needs this ifelse(FAMILY,Debian,,dublin-traceroute) # TODO: Doesn't build on Debian. define(HAVE_ETHR,HAVE_GOLANG) ifelse(DISTRO/eval(MAJOR <= 18),Ubuntu/1,, # Doesn't build on U18, TODO: not sure about U20… HAVE_ETHR,1,ethr) # But D10 build can be used on U18 and up -ifelse(FAMILY/eval(MAJOR >= 8),RedHat/1,iperf) # EPEL dropped this for EL8 +ifelse(FAMILY/eval(MAJOR >= 9),RedHat/1,iperf) # EPEL dropped this in EL8 ifelse(FAMILY/eval(MAJOR == 10 || MAJOR == 12),Debian/1,iperf3, # We only want iperf3 on D10 and D12 FAMILY,Debian,, iperf3)