spec: make it a bit more airy
Version: 10.3-2
This commit is contained in:
parent
50065a2277
commit
8ac102b47e
@ -191,7 +191,7 @@ Requires(post): glibc
|
|||||||
Requires(postun): glibc
|
Requires(postun): glibc
|
||||||
|
|
||||||
%description libs
|
%description libs
|
||||||
The postgresql-libs package provides the essential shared libraries for any
|
The postgresql-libs package provides the essential shared libraries for any
|
||||||
PostgreSQL client program or interface. You will need to install this package
|
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
|
to use any other PostgreSQL package or any clients that need to connect to a
|
||||||
PostgreSQL server.
|
PostgreSQL server.
|
||||||
@ -290,6 +290,7 @@ The postgresql-upgrade package contains the pg_upgrade utility and supporting
|
|||||||
files needed for upgrading a PostgreSQL database from the previous major
|
files needed for upgrading a PostgreSQL database from the previous major
|
||||||
version of PostgreSQL.
|
version of PostgreSQL.
|
||||||
|
|
||||||
|
|
||||||
%package upgrade-devel
|
%package upgrade-devel
|
||||||
Summary: Support for build of extensions required for upgrade process
|
Summary: Support for build of extensions required for upgrade process
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -318,6 +319,7 @@ which is an extension to the PostgreSQL database server.
|
|||||||
Install this if you want to write database functions in Perl.
|
Install this if you want to write database functions in Perl.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %plpython
|
%if %plpython
|
||||||
%package plpython
|
%package plpython
|
||||||
Summary: The Python2 procedural language for PostgreSQL
|
Summary: The Python2 procedural language for PostgreSQL
|
||||||
@ -331,6 +333,7 @@ which is an extension to the PostgreSQL database server.
|
|||||||
Install this if you want to write database functions in Python 2.
|
Install this if you want to write database functions in Python 2.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %plpython3
|
%if %plpython3
|
||||||
%package plpython3
|
%package plpython3
|
||||||
Summary: The Python3 procedural language for PostgreSQL
|
Summary: The Python3 procedural language for PostgreSQL
|
||||||
@ -343,6 +346,7 @@ which is an extension to the PostgreSQL database server.
|
|||||||
Install this if you want to write database functions in Python 3.
|
Install this if you want to write database functions in Python 3.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %pltcl
|
%if %pltcl
|
||||||
%package pltcl
|
%package pltcl
|
||||||
Summary: The Tcl procedural language for PostgreSQL
|
Summary: The Tcl procedural language for PostgreSQL
|
||||||
@ -356,6 +360,7 @@ which is an extension to the PostgreSQL database server.
|
|||||||
Install this if you want to write database functions in Tcl.
|
Install this if you want to write database functions in Tcl.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %test
|
%if %test
|
||||||
%package test
|
%package test
|
||||||
Summary: The test suite distributed with PostgreSQL
|
Summary: The test suite distributed with PostgreSQL
|
||||||
@ -369,6 +374,7 @@ PostgreSQL database management system, including regression tests and
|
|||||||
benchmarks.
|
benchmarks.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
( cd %_sourcedir; sha256sum -c %{SOURCE16}; sha256sum -c %{SOURCE17} )
|
( cd %_sourcedir; sha256sum -c %{SOURCE16}; sha256sum -c %{SOURCE17} )
|
||||||
%setup -q -a 12
|
%setup -q -a 12
|
||||||
@ -391,8 +397,8 @@ tar xfj %{SOURCE3}
|
|||||||
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
|
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
|
||||||
find . -type f -name .gitignore | xargs rm
|
find . -type f -name .gitignore | xargs rm
|
||||||
|
|
||||||
%build
|
|
||||||
|
|
||||||
|
%build
|
||||||
# fail quickly and obviously if user tries to build as root
|
# fail quickly and obviously if user tries to build as root
|
||||||
%if %runselftest
|
%if %runselftest
|
||||||
if [ x"`id -u`" = x0 ]; then
|
if [ x"`id -u`" = x0 ]; then
|
||||||
@ -595,6 +601,7 @@ test "$test_failure" -eq 0
|
|||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd postgresql-setup-%{setup_version}
|
cd postgresql-setup-%{setup_version}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
@ -614,7 +621,6 @@ description "Upgrade data from system PostgreSQL version (PostgreSQL %{prevm
|
|||||||
redhat_sockets_hack no
|
redhat_sockets_hack no
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-world
|
make DESTDIR=$RPM_BUILD_ROOT install-world
|
||||||
|
|
||||||
%if %plpython3
|
%if %plpython3
|
||||||
@ -712,7 +718,7 @@ EOF
|
|||||||
# Makefiles, however.
|
# Makefiles, however.
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test
|
||||||
cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test
|
cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test
|
||||||
# pg_regress binary should be only in one subpackage,
|
# pg_regress binary should be only in one subpackage,
|
||||||
# there will be a symlink from -test to -devel
|
# there will be a symlink from -test to -devel
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
|
rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
|
||||||
ln -sf ../../pgxs/src/test/regress/pg_regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
|
ln -sf ../../pgxs/src/test/regress/pg_regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
|
||||||
@ -784,8 +790,10 @@ find_lang_bins pltcl.lst pltcl
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
|
||||||
%postun libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
%pre server
|
%pre server
|
||||||
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
|
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
|
||||||
@ -812,8 +820,8 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
|
||||||
# FILES section.
|
|
||||||
|
|
||||||
|
# FILES sections.
|
||||||
%files -f main.lst
|
%files -f main.lst
|
||||||
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO
|
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO
|
||||||
%doc COPYRIGHT README HISTORY doc/bug.template
|
%doc COPYRIGHT README HISTORY doc/bug.template
|
||||||
@ -846,11 +854,13 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
%{_mandir}/man1/vacuumdb.*
|
%{_mandir}/man1/vacuumdb.*
|
||||||
%{_mandir}/man7/*
|
%{_mandir}/man7/*
|
||||||
|
|
||||||
|
|
||||||
%files docs
|
%files docs
|
||||||
%doc *-US.pdf
|
%doc *-US.pdf
|
||||||
%doc doc/html
|
%doc doc/html
|
||||||
%{_libdir}/pgsql/tutorial/
|
%{_libdir}/pgsql/tutorial/
|
||||||
|
|
||||||
|
|
||||||
%files contrib -f contrib.lst
|
%files contrib -f contrib.lst
|
||||||
%doc contrib/spi/*.example
|
%doc contrib/spi/*.example
|
||||||
%{_bindir}/oid2name
|
%{_bindir}/oid2name
|
||||||
@ -983,6 +993,7 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
%{_libdir}/pgsql/pgxml.so
|
%{_libdir}/pgsql/pgxml.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files libs -f libs.lst
|
%files libs -f libs.lst
|
||||||
%doc COPYRIGHT
|
%doc COPYRIGHT
|
||||||
%dir %{_libdir}/pgsql
|
%dir %{_libdir}/pgsql
|
||||||
@ -991,6 +1002,7 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
%{_libdir}/libpgtypes.so.*
|
%{_libdir}/libpgtypes.so.*
|
||||||
%{_libdir}/libpq.so.*
|
%{_libdir}/libpq.so.*
|
||||||
|
|
||||||
|
|
||||||
%files server -f server.lst
|
%files server -f server.lst
|
||||||
%{_bindir}/initdb
|
%{_bindir}/initdb
|
||||||
%{_bindir}/pg_basebackup
|
%{_bindir}/pg_basebackup
|
||||||
@ -1074,14 +1086,15 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
|
|
||||||
|
|
||||||
%files test-rpm-macros
|
%files test-rpm-macros
|
||||||
%{macrosdir}/macros.%name-test
|
|
||||||
%{_datadir}/postgresql-setup/postgresql_pkg_tests.sh
|
%{_datadir}/postgresql-setup/postgresql_pkg_tests.sh
|
||||||
|
%{macrosdir}/macros.%name-test
|
||||||
|
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
%{_libdir}/libpgcommon.a
|
%{_libdir}/libpgcommon.a
|
||||||
%{_libdir}/libpgport.a
|
%{_libdir}/libpgport.a
|
||||||
|
|
||||||
|
|
||||||
%if %upgrade
|
%if %upgrade
|
||||||
%files upgrade
|
%files upgrade
|
||||||
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin
|
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin
|
||||||
@ -1091,6 +1104,7 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
%exclude %{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pkgconfig
|
%exclude %{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pkgconfig
|
||||||
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/share
|
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/share
|
||||||
|
|
||||||
|
|
||||||
%files upgrade-devel
|
%files upgrade-devel
|
||||||
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin/pg_config
|
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin/pg_config
|
||||||
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/include
|
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/include
|
||||||
@ -1099,18 +1113,21 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
%{macrosdir}/macros.%name-upgrade
|
%{macrosdir}/macros.%name-upgrade
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %plperl
|
%if %plperl
|
||||||
%files plperl -f plperl.lst
|
%files plperl -f plperl.lst
|
||||||
%{_datadir}/pgsql/extension/plperl*
|
%{_datadir}/pgsql/extension/plperl*
|
||||||
%{_libdir}/pgsql/plperl.so
|
%{_libdir}/pgsql/plperl.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %pltcl
|
%if %pltcl
|
||||||
%files pltcl -f pltcl.lst
|
%files pltcl -f pltcl.lst
|
||||||
%{_datadir}/pgsql/extension/pltcl*
|
%{_datadir}/pgsql/extension/pltcl*
|
||||||
%{_libdir}/pgsql/pltcl.so
|
%{_libdir}/pgsql/pltcl.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %plpython
|
%if %plpython
|
||||||
%files plpython -f plpython.lst
|
%files plpython -f plpython.lst
|
||||||
%{_datadir}/pgsql/extension/plpython2*
|
%{_datadir}/pgsql/extension/plpython2*
|
||||||
@ -1118,17 +1135,20 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
%{_libdir}/pgsql/plpython2.so
|
%{_libdir}/pgsql/plpython2.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %plpython3
|
%if %plpython3
|
||||||
%files plpython3 -f plpython3.lst
|
%files plpython3 -f plpython3.lst
|
||||||
%{_datadir}/pgsql/extension/plpython3*
|
%{_datadir}/pgsql/extension/plpython3*
|
||||||
%{_libdir}/pgsql/plpython3.so
|
%{_libdir}/pgsql/plpython3.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %test
|
%if %test
|
||||||
%files test
|
%files test
|
||||||
%attr(-,postgres,postgres) %{_libdir}/pgsql/test
|
%attr(-,postgres,postgres) %{_libdir}/pgsql/test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 10.3-2
|
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 10.3-2
|
||||||
- define %%precise_version helper macro
|
- define %%precise_version helper macro
|
||||||
@ -1418,8 +1438,8 @@ make -C postgresql-setup-%{setup_version} check
|
|||||||
http://www.postgresql.org/docs/9.3/static/release-9-3-4.html
|
http://www.postgresql.org/docs/9.3/static/release-9-3-4.html
|
||||||
|
|
||||||
* Thu Mar 13 2014 Jozef Mlich <jmlich@redhat.com> - 9.3.3-2
|
* Thu Mar 13 2014 Jozef Mlich <jmlich@redhat.com> - 9.3.3-2
|
||||||
- Fix WAL replay of locking an updated tuple
|
- Fix WAL replay of locking an updated tuple
|
||||||
kudos to Alvaro Herrera
|
kudos to Alvaro Herrera
|
||||||
|
|
||||||
* Thu Feb 20 2014 Jozef Mlich <jmlich@redhat.com> - 9.3.3-1
|
* Thu Feb 20 2014 Jozef Mlich <jmlich@redhat.com> - 9.3.3-1
|
||||||
- update to 9.3.3 minor version per release notes:
|
- update to 9.3.3 minor version per release notes:
|
||||||
@ -2209,5 +2229,5 @@ Resolves: #161470
|
|||||||
- Default to compiling libpq and ECPG as fully thread-safe
|
- Default to compiling libpq and ECPG as fully thread-safe
|
||||||
|
|
||||||
- 7.4 Origin. See previous spec files for previous history. Adapted
|
- 7.4 Origin. See previous spec files for previous history. Adapted
|
||||||
- from Red Hat and PGDG's 7.3.4 RPM, directly descended from
|
- from Red Hat and PGDG's 7.3.4 RPM, directly descended from
|
||||||
- postgresql-7.3.4-2 as shipped in Fedora Core 1.
|
- postgresql-7.3.4-2 as shipped in Fedora Core 1.
|
||||||
|
Loading…
Reference in New Issue
Block a user