Summary: PostgreSQL database engine Name: postgresql Version: 12.5 Release: 2%{?dist} License: PostgreSQL Vendor: Microsoft Corporation Distribution: Mariner Group: Applications/Databases URL: https://www.postgresql.org Source0: https://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2 # Common libraries needed BuildRequires: krb5-devel BuildRequires: libxml2-devel BuildRequires: openldap BuildRequires: openssl-devel BuildRequires: perl BuildRequires: readline-devel BuildRequires: tzdata BuildRequires: zlib-devel %if %{with_check} BuildRequires: sudo %endif Requires: %{name}-libs = %{version}-%{release} Requires: krb5 Requires: libxml2 Requires: openldap Requires: openssl Requires: readline Requires: tzdata Requires: zlib %description PostgreSQL is an object-relational database management system. %package libs Summary: Libraries for use with PostgreSQL Group: Applications/Databases %description libs The postgresql-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 devel Summary: Development files for postgresql. Group: Development/Libraries Requires: postgresql = %{version}-%{release} %description devel The postgresql-devel package contains libraries and header files for developing applications that use postgresql. %prep %setup -q %build sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h && ./configure \ --enable-thread-safety \ --prefix=%{_prefix} \ --with-ldap \ --with-libxml \ --with-openssl \ --with-gssapi \ --with-readline \ --with-system-tzdata=%{_datadir}/zoneinfo \ --docdir=%{_docdir}/postgresql make -C ./src/backend generated-headers make %{?_smp_mflags} cd contrib && make %{?_smp_mflags} %install [ %{buildroot} != "/"] && rm -rf %{buildroot}/* make install DESTDIR=%{buildroot} cd contrib && make install DESTDIR=%{buildroot} # For postgresql 10+, commands are renamed # Ref: https://wiki.postgresql.org/wiki/New_in_postgres_10 ln -sf pg_receivewal %{buildroot}%{_bindir}/pg_receivexlog ln -sf pg_resetwal %{buildroot}%{_bindir}/pg_resetxlog ln -sf pg_waldump %{buildroot}%{_bindir}/pg_xlogdump %{_fixperms} %{buildroot}/* %check sed -i '2219s/",/ ; EXIT_STATUS=$? ; sleep 5 ; exit $EXIT_STATUS",/g' src/test/regress/pg_regress.c chown -Rv nobody . sudo -u nobody -s /bin/bash -c "PATH=$PATH make -k check" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot}/* %files %defattr(-,root,root) %license COPYRIGHT %{_bindir}/initdb %{_bindir}/oid2name %{_bindir}/pg_archivecleanup %{_bindir}/pg_basebackup %{_bindir}/pg_checksums %{_bindir}/pg_controldata %{_bindir}/pg_ctl %{_bindir}/pg_receivewal %{_bindir}/pg_receivexlog %{_bindir}/pg_recvlogical %{_bindir}/pg_resetwal %{_bindir}/pg_resetxlog %{_bindir}/pg_rewind %{_bindir}/pg_standby %{_bindir}/pg_test_fsync %{_bindir}/pg_test_timing %{_bindir}/pg_upgrade %{_bindir}/pg_waldump %{_bindir}/pg_xlogdump %{_bindir}/pgbench %{_bindir}/postgres %{_bindir}/postmaster %{_bindir}/vacuumlo %{_datadir}/postgresql/* %{_libdir}/postgresql/* %{_docdir}/postgresql/extension/*.example %exclude %{_datadir}/postgresql/pg_service.conf.sample %exclude %{_datadir}/postgresql/psqlrc.sample %files libs %{_bindir}/clusterdb %{_bindir}/createdb %{_bindir}/createuser %{_bindir}/dropdb %{_bindir}/dropuser %{_bindir}/ecpg %{_bindir}/pg_config %{_bindir}/pg_dump %{_bindir}/pg_dumpall %{_bindir}/pg_isready %{_bindir}/pg_restore %{_bindir}/psql %{_bindir}/reindexdb %{_bindir}/vacuumdb %{_libdir}/libecpg*.so.* %{_libdir}/libpgtypes*.so.* %{_libdir}/libpq*.so.* %{_libdir}/libpgcommon_shlib.a %{_libdir}/libpgport_shlib.a %{_datadir}/postgresql/pg_service.conf.sample %{_datadir}/postgresql/psqlrc.sample %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/pkgconfig/* %{_libdir}/libecpg*.so %{_libdir}/libpgtypes*.so %{_libdir}/libpq*.so %{_libdir}/libpgcommon.a %{_libdir}/libpgfeutils.a %{_libdir}/libpgport.a %{_libdir}/libpq.a %{_libdir}/libecpg.a %{_libdir}/libecpg_compat.a %{_libdir}/libpgtypes.a %changelog * Wed Dec 09 2020 Andrew Phelps - 12.5-2 - Add sudo package to resolve test issue. * Mon Nov 23 2020 Henry Beberman - 12.5-1 - Upgrading to 12.5 to fix CVE-2020-25695 and CVE-2020-25694. * Tue Nov 03 2020 Pawel Winogrodzki - 12.4-1 - Upgrading to 12.4 to fix CVE-2020-14349 and CVE-2020-14350. * Sat May 09 2020 Nick Samson - 12.1-3 - Added %%license line automatically * Thu Mar 26 2020 Henry Beberman - 12.1-2 - Manually run header generation. * Fri Mar 13 2020 Paul Monson - 12.1-1 - Update to version 12.1. License verified. * Tue Sep 03 2019 Mateusz Malisz - 10.5-2 - Initial CBL-Mariner import from Photon (license: Apache2). * Fri Sep 21 2018 Dweep Advani - 10.5-1 - Updated to version 10.5 * Tue Mar 27 2018 Dheeraj Shetty - 9.6.8-1 - Updated to version 9.6.8 to fix CVE-2018-1058 * Mon Feb 12 2018 Dheeraj Shetty - 9.6.7-1 - Updated to version 9.6.7 * Mon Nov 27 2017 Xiaolin Li - 9.6.6-1 - Updated to version 9.6.6 * Fri Sep 08 2017 Xiaolin Li - 9.6.5-1 - Updated to version 9.6.5 * Tue Aug 15 2017 Xiaolin Li - 9.6.4-1 - Updated to version 9.6.4 * Thu Aug 10 2017 Rongrong Qiu - 9.6.3-3 - add sleep 5 when initdb in make check for bug 1900371 * Wed Jul 05 2017 Divya Thaluru - 9.6.3-2 - Added postgresql-devel * Tue Jun 06 2017 Divya Thaluru - 9.6.3-1 - Upgraded to 9.6.3 * Mon Apr 03 2017 Rongrong Qiu - 9.6.2-1 - Upgrade to 9.6.2 for Photon upgrade bump * Thu Dec 15 2016 Xiaolin Li - 9.5.3-6 - Applied CVE-2016-5423.patch * Thu Nov 24 2016 Alexey Makhalov - 9.5.3-5 - Required krb5-devel. * Mon Oct 03 2016 ChangLee - 9.5.3-4 - Modified %check * Thu May 26 2016 Xiaolin Li - 9.5.3-3 - Add tzdata to buildrequires and requires. * Tue May 24 2016 Priyesh Padmavilasom - 9.5.3-2 - GA - Bump release of all rpms * Fri May 20 2016 Divya Thaluru - 9.5.3-1 - Updated to version 9.5.3 * Wed Apr 13 2016 Michael Paquier - 9.5.2-1 - Updated to version 9.5.2 * Tue Feb 23 2016 Xiaolin Li - 9.5.1-1 - Updated to version 9.5.1 * Thu Jan 21 2016 Xiaolin Li - 9.5.0-1 - Updated to version 9.5.0 * Thu Aug 13 2015 Divya Thaluru - 9.4.4-1 - Update to version 9.4.4. * Mon Jul 13 2015 Alexey Makhalov - 9.4.1-2 - Exclude /usr/lib/debug * Fri May 15 2015 Sharath George - 9.4.1-1 - Initial build. First version