Our devs have build tools that they want to have installed on all new machines that we roll out. All we (sysadmins) get is tarball containing “projectname” directory with thousands of binary/*.so files inside. Basically what is required is to extract this “projecname” directory into /usr/local/. That’s all rpm should do.
I’ve been killing myself for past 3 hours trying to accomplish this seemingly simple task… so please help me out.
What i gathered in spec file i do not need basically anything except %install part where i have to put untar (/usr/bin/tar xf source.tar) command.
This is my spec:
Summary: Project specific program
I get errors about not finding projectname.tar.gz… according to documentation %prep should actually decompress tarball, but i couldn’t figure out how can i put that extracted directory into the /usr/local/