Hi,
I am very new to rpm packaging (new learner
).
Please find below mentioned spec file (apache-tomcat-5.5.35-src.spec) content:
------------------------------
Summary: Apache Tomcat source to bytecode compiler
%define version 5.5.35
Group: Development/Languages
Name: ApacheTomcat
Prefix: /usr
Provides: ApacheTomcat
Release: 1
Source: apache-tomcat-5.5.35-src.tar.gz
URL:
http://tomcat.apache.org/download-55.cgi
Version: 5.5.35
Buildroot: /root/ApacheTomcat/ApacheTomcat-5.5.35
License: /apache-tomcat-5.5.35-src.tar.gz/apache-tomcat-5.5.35-src/LICENSE
%description
This is the top-level entry point of the documentation bundle for the Apache Tomcat Servlet/JSP container. Apache Tomcat version 5.5 implements the Servlet 2.4 and JavaServer Pages 2.0 specifications from the Java Community Process, and includes many additional features that make it a useful platform for developing and deploying web applications and web services.
%prep
%setup -q
%build
./configure CXXFLAGS=-O3 --prefix=$RPM_BUILD_ROOT/usr
make
%install
rm -fr $RPM_BUILD_ROOT
make install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0444,root,root)
/usr/bin/ApacheTomcat
-------------------------------------
while building rpm using the command 'rpmbuild -bb spec_file_name ' it displayed :
-----------------------------------
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.78993
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf ApacheTomcat-5.5.35
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/apache-tomcat-5.5.35-src.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ApacheTomcat-5.5.35
/var/tmp/rpm-tmp.78993: line 36: cd: ApacheTomcat-5.5.35: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.78993 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.78993 (%prep)
---------------------------------------
Please help me to resolve this and let me know why this happened.... Thanks in advance...