I'm very new at writing rpm spec files. I have one rpm that installs a version of tomcat in a specified directory. That works as expected. I'm trying to make a new rpm to replace the webdav directory with the files from the project. What I'd like to do is:
Code:
cd /mydir/apps/tomcat
rm -r webapps
tar xzfpPz ${RPM_INSTALL_PREFIX}/%{name}-%{version}.tar.gz
chown -R myid:mygroup webapps
I'm just not sure how to put the cd and rm into spec syntax.
Any suggestions would be greatly appreciated!