Bug #45715 rpmbuild process fails after changing spec file from RHEL5 src.rpm
Submitted: 24 Jun 2009 16:20 Modified: 3 Aug 2009 9:06
Reporter: Don Thomas Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.1.35 OS:Linux (Redhat Enterprise 5.2)
Assigned to: CPU Architecture:Any

[24 Jun 2009 16:20] Don Thomas
Description:
run rpm -ivh to extract files.  files extract to proper directories under /usr/src/redhat.  

modify spec file to include --prefix=/opt/mysql and mysqldatadir changed to /opt/data

saved spec file

run rpm -ba --with yassl mysql.spec

errors:
Name
Version
Release
Summary
Group
License

fields must be present in package: (main package)

Those fields are present.  Can't determine why it's erroring.

How to repeat:
run rpm -ivh to extract files.  files extract to proper directories under /usr/src/redhat.  

modify spec file to include --prefix=/opt/mysql and mysqldatadir changed to /opt/data

saved spec file

run rpm -ba --with yassl mysql.spec
[24 Jun 2009 16:37] Don Thomas
.
[3 Aug 2009 9:05] Susanne Ebrecht
many thanks for writing a bug report.

It is not such easy to change the prefix.

When you want to get another prefix then you need to download the source.tar.gz and either compile from source or build your own package.