Bug #29723 MySQL spec file installs RPM when building MySQL from SRPM
Submitted: 11 Jul 2007 15:01 Modified: 11 Jul 2007 15:06
Reporter: Gerry Reno Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.1.20-beta OS:Any
Assigned to: CPU Architecture:Any

[11 Jul 2007 15:01] Gerry Reno
Description:
After completing the 'rpmbuild' for the MySQL 5.1.20-beta SRPM, I noticed that the MySQL spec file is actually installing one of the generated MySQL RPM in the current environment.

Installed Packages
MySQL.i386                               5.1.20-0.glibc23       installed <---      
MySQL-python.i386                        1.2.2-2.fc7            installed       
mysql.i386                               5.0.37-2.fc7           installed       
mysql-connector-odbc.i386                3.51.12-2.2            installed       
mysql-devel.i386                         5.0.37-2.fc7           installed       
mysql-libs.i386                          5.0.37-2.fc7           installed       
mysql-proxy.i386                         0.5.1-1.fc7            installed       
mysql-server.i386                        5.0.37-2.fc7           installed       
Available Packages
mysql++.i386                             2.2.3-1.fc7            fedora          
mysql++-devel.i386                       2.2.3-1.fc7            fedora          
mysql++-manuals.i386                     2.2.3-1.fc7            fedora          
mysql-administrator.i386                 5.0r12-2.fc7           updates         
mysql-bench.i386                         5.0.37-2.fc7           fedora          
mysql-connector-java.i386                1:3.1.12-3.fc6         fedora          
mysql-gui-common.i386                    5.0r12-2.fc7           updates         
mysql-gui-tools.i386                     5.0r12-2.fc7           updates         
mysql-query-browser.i386                 5.0r12-2.fc7           updates         
mysql-test.i386                          5.0.37-2.fc7           fedora          
mysqlclient10.i386                       3.23.58-9.2.1          fedora          
mysqlclient10-devel.i386                 3.23.58-9.2.1          fedora          
mysqlclient14.i386                       4.1.14-4.2.1           fedora          
mysqlclient14-devel.i386                 4.1.14-4.2.1           fedora          

The spec file should just build the RPMS not install them.

How to repeat:
rpmbuild -ba MySQL.spec
[11 Jul 2007 15:06] Gerry Reno
Ignore.  This RPM was the SRPM install.  Couldn't pick that up from the listing.