Mailinglist Archive: opensuse-buildservice (206 mails)

< Previous Next >
Re: [opensuse-buildservice] How to build deb packages
  • From: Richard Bos <rbos@xxxxxxxxxxxx>
  • Date: Tue, 31 Mar 2009 22:45:47 +0200
  • Message-id: <200903312245.48529.rbos@xxxxxxxxxxxx>
Carsten and Paul,

Op dinsdag 31 maart 2009 11:13:11 schreef Carsten Hoeger:
On Mon, Mar 30, Paul Elliott wrote:
I'm quite sure, that you still have to submit Debian Package
information (debian/control, debian/rules, debian/changelog, ...)

That is indeed what the "Build Service/Deb builds"
documentation seems to say.

deb> Minimum set of files required to create .deb In order to create a
deb> .deb package successfully, you have to create at least these files:
deb> packageName.dsc
deb> debian.changelog
deb> debian.control
deb> debian.rules

deb> And of course a tarball (tar.bz2) that contains the package source
deb> code to compile.

But it is not true. To see this look at the peless project:

It IS true.
It's just that the debian package metadata is contained in the *.diff and
*.dsc file(s).
It's NOT contained in the *.spec file(s).
That's what I wanted to make clear.

You got me going :) I can now run 'osc build xUbuntu_8.04 i586 <pkg>' :)
To accomplish this, I needed the following files:

The files are almost the same as Paul stated, but it is not debian.changelog,
packageName.changes in debian format. The build service will than take care
the changelog is included in as well the debian packages as well as the rpms.

The files sectio in dsc file may remain empty as it is populated by the
debtransformer, like:
Format: 1.0

It is not needed to specify the Debtransform-Tar as the pristine source tarbal
is figured
out by the tools :)

A debian.control file is required otherwise the following and confusing error
is reported:
dpkg-source: warning: extracting unsigned source package
dpkg-source: error: Files field contains invalid filename

The next step is now to include the commands that I have in the rpm spec file
into the
debian pkg build. The commands are the following ones:

%setup -q


%__install -d -m 755 %{buildroot}%{_bindir}
%__install -d -m 755 %{buildroot}%{_datadir}/
# %__install -d -m 755 %{buildroot}%{_datadir}/applications
# sed s/@JAAR@/%{year}/ ib.desktop >
%__install -d -m 755 %{buildroot}%{_datadir}/icons/hicolor
for D in 16x16 22x22 32x32 48x48 64x64 128x128; do
%__install -d -m 755 %{buildroot}%{_datadir}/icons/hicolor/$D/apps
%__install -m 644 icons/$D/inkomstenbelasting.png

Is there any debian pkg guru out there, who can tell how the above
command sequence should look like in a debian.rules file?




To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups