[ATrpms-users] Openbox
Paulo Cavalcanti
promac at gmail.com
Thu Feb 7 13:55:49 CET 2008
On Feb 7, 2008 10:43 AM, Phill Edwards <philledwards at gmail.com> wrote:
> > You can read this howto:
> > http://people.atrpms.net/~pcavalcanti/LCG_kernel_modules.html<http://people.atrpms.net/%7Epcavalcanti/LCG_kernel_modules.html>
>
> Hope you don't mind me asking some questions about this, but I've
> never done it before and I'm a bit stuck! I've made quite a bit of
> progress and have produced a spec file for openbox. I have read loads
> of pages about building RPMs as non-root and have got .rpmmacros &
> .rpmrcfiles and a $HOME/rpmbuild tree.
>
You can use the one from F9. It should work. Zero work!!!
rpmbuild --rebuild openbox-3.4.6-1.fc9.src.rpm (it will rebuild for you)
If you want to see its spec file, do:
rpm -ivh openbox-3.4.6-1.fc9.src.rpm
and it will be in ~/redhat/SPECS
>
> Q1) When I run rpmbuild -ba openbox.spec it gets a heck of a long way,
> compiles all the source etc. But then it falls over with permission
> failures because it's doing a "make install" and of course my non-root
> user can't do that. I'm assuming that you have to have the %install
> line in the spec file, so how do you solve this?
The make install should be done in your area (a directory belonging to you).
According to my howto, it should be in ~/redhat/tmp
>
>
> Q2) The spec file has to list every /dir/filename that's going to be
> installed. The only way I found of doing this is to do a complete
> compile & install from source code, capture the output in a log file
> and then use that to list the files in the spec file. Is there any
> easier way?
Use the one from F9. Every .src.rpm contains one.
>
>
> Q3) I have no idea at all on how to specify package dependencies. How
> do you know which packages should be listed as dependencies in the
> spec file?
>
If you write a spec from scratch, the only way is using a tool like mock
and adding BRs until there is no more errors.
Sometimes I missing some, and Axel "pull my ears".
--
Paulo Roma Cavalcanti
LCG - UFRJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.atrpms.net/pipermail/atrpms-users/attachments/20080207/240b89db/attachment.html
More information about the atrpms-users
mailing list