Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am a semi newbie to creating a RPM for Linux. I search so many sites in web for get a tutorial about creating RPM. Yes, I have now some tutorial but that all are not so clear to me.
To create a RPM, I have to write spec file where all information is gathered about the installation process. But that’s not my point, my point is how can I add my own files like apache-tom-5.0.tar.gz and test.war, in the rpm?
Did you mean rpmbuild or are we talking about different things here? It's been a long time since I last dealt with rpms so I might be wrong. Though I do remember that creating an rpm package seemed to be a difficult task since no good tutorials, advices nor other info was easy to find.
If they don't need to be processed at %setup or %build time, then at %install time just copy files from your $RPM_SOURCE_DIR to the appropriate $RPM_BUILD_ROOT subdir.
I do remember that creating an rpm package seemed to be a difficult task
Not really, no.
If they don't need to be processed at %setup or %build time, then at %install time just copy files from your $RPM_SOURCE_DIR to the appropriate $RPM_BUILD_ROOT subdir.
OK,so in this way I can add my own files.
Now there is my another question, how can I put own files in specific location??
Like I want to put test.war file in /usr/local/student location.
Take a look at the Fedora developers guide line that I posted. Read the part about the spec file and what each section is about. After that concentrate on the section that says %files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.