Rpm packaging on Suse Linux
by dirshah - 2/14/11 2:18 AM
I am new to linux. Still I am asked to package a war file as an RPM package. That is an unusual RPM packaging(To me). If you guys could guide me, on how to do that, will be great. I have a war file inside a folder, that folder is inside a tar file as a SOURCE for RPM package. The structure is like below.
--tasmportlets-1.tar.gz(its a tar file)
--tasmportlets-1(its a folder)
I simply want that the war file from sources is transferred to the web app of my tomcat server through RPM. I try to package it as an RPM, but its always giving me errors in %build stage. When I try to remove %build from stage from the spec file, then it says command missing.
Can anyone please help me here Or point me in the right direction? An example will be great.
My system details are:
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 1
Thanks in advance.