Ask Your Question
0

How can i locate a web Application in rpm package?

asked 2012-09-10 20:41:48 -0500

jpilldev gravatar image

updated 2014-09-28 11:16:25 -0500

mether gravatar image

Hello. I'm trying to package a web App, it requires LAMP, so, i tried to locate in '/var/www/html', but whe i executes rpmbuild it shows me some things about permissions to create the dir. how can I edit the spec file to put it correctly?

Thanks.

edit retag flag offensive close merge delete

Comments

I can help you, only I need to see your .spec, share it.

davidva gravatar imagedavidva ( 2013-08-13 23:07:52 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-09-11 20:43:47 -0500

FranciscoD_ gravatar image

updated 2012-09-11 23:59:17 -0500

You cannot place files in system files. Please read the packaging guidelines:

http://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

edit flag offensive delete link more

Comments

probably because you're installing to /usr/share/%{name} instead of $RPM_BUILD_ROOT/usr/share/%{name}? Have you read the initial how to make an rpm documents yet?

FranciscoD_ gravatar imageFranciscoD_ ( 2012-09-12 00:00:15 -0500 )edit

Please mark the answer as correct if it solves your problem @jpilldev :)

FranciscoD_ gravatar imageFranciscoD_ ( 2012-09-12 01:01:13 -0500 )edit
0

answered 2013-08-14 00:00:59 -0500

davidva gravatar image

updated 2013-08-14 00:15:09 -0500

I, reading you comments; you remember the work area for ever is rpmbuild. Then, you need to use macros. Example if you include this /usr/share/yourprogram path is incorrect, only if you need make other fix after or before about installation.. Then the correct macro is:

%{_datadir}/%{name}

I recommend read the basic macros, exist other but you need know it.

If it is a no architecture file (.noarch) you need make directories example:

%__mkdir -p %buildroot/%{_datadir}/

Now if you need copy some file to %{_datadir}/%{name}

cp -f some-file %buildroot/%{_datadir}

RPMMacros guide

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-09-10 20:41:48 -0500

Seen: 214 times

Last updated: Aug 14 '13