Hello,
I’m trying to build a rpm for a rhel4 i386 machine from the following file
http://www.percona.com/mysql/5.1.34-5/RPM/rhel4/MySQL-percon a-5.1.34-5.rhel4.src.rpm
I have done the following and their respective outputs
1.
[root@]# rpmbuild --rebuild MySQL-percona-5.1.34-5.rhel4.src.rpm
Installing MySQL-percona-5.1.34-5.rhel4.src.rpm
warning: user buildbot does not exist - using root
warning: user buildbot does not exist - using root
warning: user buildbot does not exist - using root
error: parse error in expression
error: /usr/src/redhat/SPECS/mysql-5.1-percona-xtradb5.rhel4.spec:1 49: 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)
[root@]#
[root@]# rpm -ivh MySQL-percona-5.1.34-5.rhel4.src.rpm
1:MySQL-percona warning: user buildbot does not exist - using root
warning: user buildbot does not exist - using root
warning: user buildbot does not exist - using root
########################################### [100%]
[root@]# cd /usr/src/redhat/SPECS/;ls
mysql-5.1-percona-xtradb5.rhel4.spec
[root@SPECS]# rpmbuild -ba mysql-5.1-percona-xtradb5.rhel4.spec
error: parse error in expression
error: /usr/src/redhat/SPECS/mysql-5.1-percona-xtradb5.rhel4.spec:1 49: 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)
[root@SPECS]#
I have attached spec file. Please check line 149 of the spec file. On commenting that line I get an error on line 234 and then on line 302. Didn’t try commenting further.