Topic: Problems resompiling

Hi,

I would like to recompile php-5.3.3-1.remi.src.rpm on CentOS 5.5 x86_64, since I would like to link it against PostgreSQL 8.4 libs (PostgreSQL 8.4 was introduced with Red Hat/CentOS 5.5). I've changed the SPEC file to require
postgresql84-devel instead of postgresql-devel.


Anway, if I do rpmbuild -ba rpmbuild/SPECS/php.spec, I get:

[rpmbuild@rpm-devel ~]$ rpmbuild -ba rpmbuild/SPECS/php.spec
error: /home/rpmbuild/rpmbuild/SPECS/php.spec:28: parseExpressionBoolean returns -1
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

Is there anything I'm doing wrong?

Regards,

Peter

Re: Problems resompiling

Your building environment is not well configured.

try

rpmbuild -ba --define "rhel 5" rpmbuild/SPECS/php.spec

This define, and some others (dist, vendor, ...) should be defined in your .rpmmacros file.

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Problems resompiling

This helped! Compilation is now running.

Thank you!

Peter