LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-28-2017, 01:20 PM   #1
TheBigOnion
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Rep: Reputation: Disabled
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 --------------
%define name    Rose
%define version 1.0
%define release 1
Summary: Rose is a web app to help find reading
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: Rosely
Group: Applications/Internet
BuildArch: noarch
BuildRoot: %{_builddir}/%{name}-root
Distribution: Rosely
Vendor: Rosely Inc
Packager: Mary Jane
Provides: Rose web app

%description
This package contains the Rose web app.

%prep
exit 0

%build
exit 0

%install
exit 0

%post

%clean
exit 0

%files
%defattr(644,apache,apache,755)
/web/html/Rose/index.php
/web/html/Rose/books.php
/web/html/Rose/articles.php
/web/html/Rose/profile.php
The problem is, when I try to run RPMBUILD, it just says:
"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?
 
Old 02-28-2017, 01:22 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654
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
 
Old 02-28-2017, 01:26 PM   #3
TheBigOnion
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sorry, my job requires me to create an RPM using BUILDRPM.


Quote:
Originally Posted by szboardstretcher View Post
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
 
Old 02-28-2017, 03:49 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,960

Rep: Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130Reputation: 3130
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?
 
Old 03-01-2017, 11:42 AM   #5
TheBigOnion
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-01-2017, 11:51 AM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654Reputation: 1654
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
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating an RPM that installs in a directory made by another RPM erinfin Linux - Software 4 11-15-2007 05:10 PM
creating forms within a website jonfa Programming 1 04-19-2006 12:04 AM
rates for creating a website greg108 General 13 11-21-2004 04:01 AM
Website Creating s/w emailssent General 10 10-20-2004 08:55 AM
Creating a website concoran Linux - General 1 08-28-2002 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration