Ansus wrote:
> but OBS said the package in broken because there is no spec file. But
> thiere IS a spec file inside the archive. What am I doing wrong here?
perhaps i posted too quickly–sorry, instead i probably should have asked:
Does the included spec file meet the requirements laid out in:
that section is intended to help folks who are already experienced in
creating RPM packages to create packages that conform to SUSE
specifications…
what is your experience with creating RPM packages?
i believe experience is a requirement which might be satisfied by
reading, instruction, self-study and the clarifying of hazy sections
though pointed questions here (or in the mail list/IRC, as suggested)…
but, probably not by ‘trying’ as your subject indicates is your
current technique…
nor is it likely it come through asking: “What am I doing wrong here?”
and waiting for someone to point you to a comprehensive step-by-step other than the one already available…
Get the project’s source files necessary to build the package. Most projects provide source files in compressed tarballs.
**Step Five - Create the spec file
Now that you have the source you follow the usual RPM creation process. Create a specfile for the package.**
But I think it boils down to this:
Prerequisites
You should have a general understanding about RPMs and how they are created (see also packaging conventions for SUSE), or else a similar understanding of another supported packaging system such as dpkg. This document is not meant to be a replacement for packaging documentation, which can be found at the above links.
So maybe you should start by learning how to build (openSUSE-)RPM packages in the first place (and do that locally) before you start with OBS.
Akoellh wrote:
> So maybe you should start by learning how to build (openSUSE-)RPM
> packages in the first place (and do that locally) before you start with
> OBS.
i mentioned that in a different way and was ignored…
lets see if the routine of ignore and try try try try try try etc
eventually produces an installable openSUSE package for Ultimate++.
when you say “do that locally” i believe you mean he should first
learn how to build RPM packages on his own machine, as is explained
here: http://en.opensuse.org/SUSE_Build_Tutorial
Now that you have the source you follow the usual RPM creation process. Create a specfile for the package.
THE TARBALL ALREADY INCLUDES THE SPEC FILE. I cannot understand why do you advise me to learn how to create spec files if one already exists. Did you read the tread?
So maybe you should start by learning how to build (openSUSE-)RPM packages in the first place (and do that locally) before you start with OBS.
No, the tarball contains some SPEC file (as pointed out by palladium already).
The user palladium already told you why, twice by now.
Yes, but you obvoiusly didn’t read the documentation.
A “rpmbuild -tb whatever.tar.gz/bz2” is certainly not enough to get a result which can be distributed via OBS, very often it would not even be enough to get something that actually BUILDS in OBS.
The issue is that i CANNOT FIND the spec file inside the tarball. If to place spec file separately, it cannot process it, but cannot find the rest of source. It simply cannot open tarball. So I have to upload all the hundreeds of files inside the tarball manually.
install it on your machine? or have it included in the repos, or what?
How can I add an already built RPM to a repo in OBS?
The user palladium already told you why, twice by now.
And what if there IS a suitable SPEC file if OBS cannot locate the source inside the tarbal??? It is very disturbing to receive such comments, much worser than no comment at all.
Hi
Maybe you should look at codeblocks on the OBS??
Now, you need to unpack the source on you local machine to obtain the
spec file (On gnome i can rightclick and open with file-roller and
just exract the one file), which is what the other users are trying to
elude to. Then you can modify the spec file to meet your
requirements then upload to the OBS. Note you should at least bz2 the
file and modify the spec file Source0 entry.
I suggest you look at codeblocks, eclipse or netbeans…
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 5 days 4:08, 4 users, load average: 0.16, 0.15, 0.17
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53
Now, you need to unpack the source on you local machine to obtain the spec file
Yes, of course I can and I already did it and I already wrote here that I already did it! But aside the SPEC file I also have to unpack and upload manually all the other hundreds of files inside the tarball!!!
Because OBS cannot look inside a tarball. That is what I am saying about. Obviously nobody understands me because of my poor English.