Need help creating an RPM of a website
Hi,
I Have never created an RPM before and thus have never worked with a SPEC file before. I have created a PHP website and need to package it into an RPM. Here is my SPEC file: Code:
##---------- file Rose.spec -------------- "error: File not found: /root/rpmbuild/BUILDROOT/rose-1.0-1.i386/web/html/Rose/*" I don't know why it is putting that 'root/rpmbuild...." stuff on the front of my file locations. Can someone please give me some advice? |
Advice? Don't use that method since you are building something so small and without serious dependencies. Use this instead.
https://github.com/jordansissel/fpm |
Sorry, my job requires me to create an RPM using BUILDRPM.
Quote:
|
Is this a real location with files? "/root/rpmbuild/BUILDROOT/rose-1.0-1.i386/web/html/Rose/*""
Maybe you are running su or sudo or such? |
Someone told me that I needed to copy my files into BUILDROOT. But now when I run RPMBUILD, one of the first things it does is delete all files in BUILDROOT. I am really lost on this one.
|
If you are lost at this point, and it is a company requirement to use RPM, then you should start from the beginning to learn it. Best to know the terminology and understand what you are doing and why you are doing it than just copying and pasting.
List of resources: http://rpm5.org/docs/rpm-guide.html https://websites.pmc.ucsc.edu/~dmk/n...ting_RPMs.html https://fedoraproject.org/wiki/How_t...an_RPM_package |
All times are GMT -5. The time now is 03:19 PM. |