[opensuse-packaging] What´s wrong with my spec-file?
Dear packagers, I created a spec-file for my app according to this reference: http://www.rpm.org/max-rpm/s1-rpm-specref-scripts.html My app should be build with OBS, and here´s my spec-file: https://build.opensuse.org/package/view_file?file=diav.spec&package=diav-3.1&project=home%3AopenLHAG&srcmd5=bcb3bebbf8b993bde14f0cd113cecace The reference says, that I can use every valid sh-command, so, I used the command to decompress the source tarball and the "make" command for building from sources. Oh, I think, I forgot something like configure? What do you think? thanks in advance, -- Kim Leyendecker kdl@k-dl.de.vu openSUSE Ambassador, openSUSE Wiki DE Send from my notebook -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 06/19/2011 12:32 AM, Kim Leyendecker wrote:
Dear packagers,
I created a spec-file for my app according to this reference: http://www.rpm.org/max-rpm/s1-rpm-specref-scripts.html
My app should be build with OBS, and here´s my spec-file:
The reference says, that I can use every valid sh-command, so, I used the command to decompress the source tarball and the "make" command for building from sources.
Oh, I think, I forgot something like configure?
What do you think?
thanks in advance,
Nope. You are missing: %prep is usually empty for me %setup -q -n %{name} The above will usually do the right magic 99% of the time. HTH, Peter -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi,
A spec file has more than just a header, it has other sections like:
* %prep (where you prepare your package. Ex: uncompress it, apply patches, etc)
* %build (where you build the stuff)
* %install (where you install the stuff)
* %files (where you set the files)
etc... etc etc...
Look into this: http://www.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html
NM
On Sat, Jun 18, 2011 at 11:32 PM, Kim Leyendecker
Dear packagers,
I created a spec-file for my app according to this reference: http://www.rpm.org/max-rpm/s1-rpm-specref-scripts.html
My app should be build with OBS, and here´s my spec-file:
The reference says, that I can use every valid sh-command, so, I used the command to decompress the source tarball and the "make" command for building from sources.
Oh, I think, I forgot something like configure?
What do you think?
thanks in advance,
-- Kim Leyendecker kdl@k-dl.de.vu openSUSE Ambassador, openSUSE Wiki DE Send from my notebook
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
-- Nelson Marques /* As cicatrizes lembram-nos de onde estivemos, mas não ditam para onde vamos */ -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 06/19/2011 12:32 AM, Kim Leyendecker wrote:
Dear packagers,
I created a spec-file for my app according to this reference: http://www.rpm.org/max-rpm/s1-rpm-specref-scripts.html
My app should be build with OBS, and here´s my spec-file:
The reference says, that I can use every valid sh-command, so, I used the command to decompress the source tarball and the "make" command for building from sources.
Oh, I think, I forgot something like configure?
What do you think?
thanks in advance,
A good starting point for a spec file is "rpmdev-newspec" which generates a bare openSUSE spec file, I use it as a starting point for any new package I create. The max-rpm site is an excellent reference for rpmbuild but it doesn't have openSUSE specific information. You will find the package "rpmdevtools" in "devel:tools" : http://download.opensuse.org/repositories/devel:/tools/openSUSE_11.4 Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
thank you all! I will try it and report what´s best! thanks -- Kim Leyendecker (kdl@k-dl.de.vu) openSUSE Ambassador, openSUSE Wiki Team DE HAVE A LOT OF FUN! http://www.opensuse.org Have you tried SUSE Studio? Need to create a Live CD, an app you want to package and distribute or create your own Linux distro. Give SUSE Studio a try. http://www.susestudio.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Dave Plater
-
Kim Leyendecker
-
Nelson Marques
-
Peter Linnell