building from el9 src rpm

From: Ted Toth <txtoth(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: building from el9 src rpm
Date: 2023-04-05 14:01:18
Message-ID: CAFPpqQHOqe5JPwWd8Yvp-eTj4R3+=eOTBqMBhnaXCghTTk7seg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Not sure if this is the right place to ask but I've tried to build using
this source rpm
https://ftp.postgresql.org/pub/repos/yum/srpms/13/redhat/rhel-9-x86_64/postgresql13-13.9-1PGDG.rhel9.src.rpm
on a RHEL 9 system and gotten the follow error:
rpmbuild -bb SPECS/postgresql-13.spec
warning: line 80: Possible unexpanded macro in: Name:
postgresql%{pgmajorversion}
warning: line 280: Possible unexpanded macro in: Provides: postgresql-libs
= %{pgmajorversion} libpq5 >= 10.0
warning: line 483: Possible unexpanded macro in: Obsoletes:
postgresql%{pgmajorversion}-pl <= 13.9-1PGDG.el9
warning: line 505: Possible unexpanded macro in: Obsoletes:
postgresql%{pgmajorversion}-pl <= 13.9-1PGDG.el9
warning: line 534: Possible unexpanded macro in: Obsoletes:
postgresql%{pgmajorversion}-pl <= 13.9-1PGDG.el9
error: Bad source:
/root/rpmbuild/SOURCES/postgresql-%{pgmajorversion}-rpm-pgsql.patch: No
such file or directory

I don't see pgmajorversion in the spec file, what am I missing?

Ted

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2023-04-05 14:01:53 Re: proposal: psql: show current user in prompt
Previous Message Tom Lane 2023-04-05 13:58:31 Re: psql: Add role's membership options to the \du+ command