I'm learning writing spec file. I try to write my own spec on mysql 4.1.13a Here is my spec Name: mysql Version : 4.1.13a Release: 1 License: GPL Distribution: Red Hat Enterprise Linux 3 Source: http://www.mysql.com/Downloads/MySQL-4.1/mysql-%{version}.tar.gz URL: http://www.mysql.com Packager: Adrian Mak <adrian@xxxxxxxx> Vendor: MySQL AB Group: Applications/Databases Conflicts: MySQL Requires: fileutils sh-utils BuildRequires: gperf perl readline-devel gcc-c++ ncurses-devel zlib-devel libtool automake autoconf Provides: MySQL-server MySQL-devel MySQL-client mysql-server mysql-devel mysql-client Summary: Mysql: a very fast and reliable SQL database server BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. MySQL is a trademark of MySQL AB. The MySQL software has Dual Licensing, which means you can use the MySQL software free of charge under the GNU General Public License (http://www.gnu.org/licenses/). You can also purchase commercial MySQL licenses from MySQL AB if you do not wish to be bound by the terms of the GPL. See the chapter "Licensing and Support" in the manual for further info. The MySQL web site (http://www.mysql.com/) provides the latest news and information about the MySQL software. Also please see the documentation and the manual for more information. %prep %setup %build export CC="gcc" export CXX="gcc" export CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" export CXXFLAGS="-O3 -march=i686 -pipe -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql-%{version} \ --enable-assembler \ --with-mysqld-ldflags=-all-static \ --disable-shared --without-debug \ --with-client-ldflags=-all-static \ --without-innodb \ --with-extra-charsets=gb2312,utf8 \ --without-bench \ --with-extra-charsets=gb2312,utf8 make %install make install-strip %file ---------------------- I performed rpmbuild -bp mysql.spec , rpmbuild -bc mysql.spec and rpmbuild -bi mysql.spec, to test the %prep, %build and %install stage individally there is no return error in prep and build stage but install stage. I got errors at the end. .................. 2-node.ini' test -z "/usr/local/mysql-4.1.13a/share/mysql" || mkdir -p -- . "/usr/local/mysql-4.1.13a/share/mysql" /usr/bin/install -c 'mysql.server' '/usr/local/mysql-4.1.13a/share/mysql/mysql.server' make[4]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.1.13a/support-files' make[3]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.1.13a/support-files' make[2]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.1.13a/support-files' make[1]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.1.13a' + %file /var/tmp/rpm-tmp.44655: line 29: fg: no job control error: Bad exit status from /var/tmp/rpm-tmp.44655 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.44655 (%install) anybody can help ? _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list