[opensuse-packaging] How to include two compressed packages as source?
Hi packaging, I want to know how to include two or more compressed packages as source in specfile. I know I can use Source0, Source1, blabla...but normally Source0+ is .desktop, AUTHOR and etc. I saw choqok does so, but indeed the second package is some part of the first like: choqok-1.2.tar.bz2 extracts to choqok-1.2, choqok-lang.tar.bz2 extracts to choqok-1.2/po/ Now I want to include packages of different directory like: /usr/share/icons and /home/marguerite/bin Can I able to do that? how can I switch between them later using popd/pushd or other commands? please write in simple and plain english with such examples...it's really advanced knowledge for a newbie&girl. Thx. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 11/28/2011 07:37 AM, Marguerite Su wrote:
Hi packaging,
I want to know how to include two or more compressed packages as source in specfile.
I know I can use Source0, Source1, blabla...but normally Source0+ is .desktop, AUTHOR and etc.
I saw choqok does so, but indeed the second package is some part of the first like:
choqok-1.2.tar.bz2 extracts to choqok-1.2, choqok-lang.tar.bz2 extracts to choqok-1.2/po/
Now I want to include packages of different directory like:
/usr/share/icons and /home/marguerite/bin
Can I able to do that? how can I switch between them later using popd/pushd or other commands?
please write in simple and plain english with such examples...it's really advanced knowledge for a newbie&girl.
Thx.
Marguerite
Welcome Marguerite, First, packagers newbie or not are much appreciated in the community. That you are a girl does not matter. :-) To answer your questions: Firstly, what ever you include into a package needs to be added as source file compressed or not. Second, one principal of secure packaging is that it is done in some sort of build root. So, including things outside of it is generally not going to work - by design of rpmbuild. So, if there are icons for example you want to include from your home directory, you should add them as a source in a tarball for example: Then, for example call it Source3: myicons,tar,bz2 Then in the %install section cp the files where you want to put them in the build root like: cp myicons/*.png %{buildroot{/%{datadir}/icons/ Then in the %files section : %{datadir}/icons I hope my explanation is simple enough. If you are on IRC, #opensuse-buildservice on freenode.net is where the packaging gurus are and most of them are quite helpful, if busy. Hope that helps, Peter -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Marguerite Su
-
Peter Linnell