Browse Source

postgresql remove tests and change pkgdoc dir

Signed-off-by: pgbuilder_pel7ppc64bebuilder0 <pgbuilder@powerel.org>
master
pgbuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
b4ec035fb9
  1. 14
      SPECS/postgresql.spec

14
SPECS/postgresql.spec

@ -31,7 +31,7 @@


%{!?beta:%global beta 0} %{!?beta:%global beta 0}


%{!?test:%global test 1} %{!?test:%global test 0}
%{!?upgrade:%global upgrade 1} %{!?upgrade:%global upgrade 1}
%{!?plpython:%global plpython 1} %{!?plpython:%global plpython 1}
%{!?plpython3:%global plpython3 1} %{!?plpython3:%global plpython3 1}
@ -47,7 +47,7 @@
%{!?pam:%global pam 1} %{!?pam:%global pam 1}
%{!?sdt:%global sdt 1} %{!?sdt:%global sdt 1}
%{!?selinux:%global selinux 1} %{!?selinux:%global selinux 1}
%{!?runselftest:%global runselftest 1} %{!?runselftest:%global runselftest 0}


# By default, patch(1) creates backup files when chunks apply with offsets. # By default, patch(1) creates backup files when chunks apply with offsets.
# Turn that off to ensure such files don't get included in RPMs. # Turn that off to ensure such files don't get included in RPMs.
@ -60,7 +60,7 @@ Summary: PostgreSQL client programs
Name: postgresql Name: postgresql
%global majorversion 11 %global majorversion 11
Version: 11.2 Version: 11.2
Release: 3%{?dist} Release: 1%{?dist}


# The PostgreSQL license is very similar to other MIT licenses, but the OSI # The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well. # recognizes it as an independent license, so we do as well.
@ -394,8 +394,10 @@ find . -type f -name .gitignore | xargs rm


cd postgresql-setup-%{setup_version} cd postgresql-setup-%{setup_version}


sed -i 's|/etc/redhat-release;|/etc/powerel-release;|' configure

%configure \ %configure \
pgdocdir=%{_pkgdocdir} \ pgdocdir=%{_docdir}/%{name}/ \
PGVERSION=%{version} \ PGVERSION=%{version} \
PGMAJORVERSION=%{majorversion} \ PGMAJORVERSION=%{majorversion} \
NAME_DEFAULT_PREV_SERVICE=postgresql NAME_DEFAULT_PREV_SERVICE=postgresql
@ -656,9 +658,9 @@ cd postgresql-setup-%{setup_version}
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
cd .. cd ..


# For some reason, having '%%doc %%{_pkgdocdir}/README.rpm-dist' in %%files # For some reason, having '%%doc %%{_docdir}/%{name}//README.rpm-dist' in %%files
# causes FTBFS (at least on RHEL6), see rhbz#1250006. # causes FTBFS (at least on RHEL6), see rhbz#1250006.
mv $RPM_BUILD_ROOT/%{_pkgdocdir}/README.rpm-dist ./ mv $RPM_BUILD_ROOT/%{_docdir}/%{name}//README.rpm-dist ./


cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/postgresql.conf <<EOF cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/postgresql.conf <<EOF
id postgresql id postgresql

Loading…
Cancel
Save