Hi,
On Thu, 2016-02-11 at 09:43 -0500, John Harvey wrote:
>
> The below block doesn't work for me on EL-7:
>
> %if 0%{?rhel} && 0%{?rhel} <= 6
> # On RHEL 6, we depend on the apache-maven package that we provide via
> # our repo. Build servers should not have any other apache-maven package
> # from other repos, because they depend on java-1.7.0, which is not
> supported by pgjdbc.
> # Please note that we don't support RHEL 5 for this package.
> BuildRequires: apache-maven
> %else
> # On the remaining distros, use the maven package supplied by OS.
> BuildRequires: maven
> %endif
>
> error: Failed build dependencies:
> maven
>
> I think the BuildRequires: apache-maven line should apply to EL-6 and
> EL-7. Otherwise, I do not know where to get this dependency for EL-7.
Actually this is ok. I think maven is a part of CentOS 7, AFAICS.
The current spec in git can be compiled on all distros, after the fixes you
suggested.
Regards,
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR