On Mon, 09 Sep 2013, Christian escribió:

> Am 09.09.2013 12:25, schrieb Rodolfo García Peñas (kix):
> > I will wait for the official version number tgz too for the Debian package.
> > 
> 
> I am very new to debian packaging and you seem to be familiar with this
> stuff. Can you give me some tips where to start and what I need ?

Sure, the main ideas:

- You need the upstream source, but you never change it when packaging
- You need a debian folder in the upstream source (I post the changes in the 
current next branch).

Basic steps:

1. Download the source. You can choose, download the current git branch (master 
or next, with git clone), the current git snapshot (like the link that Carlos 
post yesterday) or the official .tgz file (John upload it).

2. Make the "original" tgz. You need it if you are not using the official tgz 
file or the git snapshot file (in this case, rename it). The original tgz file 
has this syntax: wmaker_version.orig.tar.gz (pe. wmaker_0.95.5.orig.tar.gz). 
This file is place in the same folder where you have the root folder of the 
source:

kix@osaka:~/wmaker$ ls
wmaker-0.95.5 wmaker_0.95.5.orig.tar.gz

3. Uncompress the orig file. You will get the wmaker folder and the 
wmaker_*orig.tar.gz file. The wmaker folder name doesn't matter, could be 
"wmaker", "wmaker-crm", "wmaker-version"...

4. Make the debian changes. This is a little bit long. Probably you should read 
the Debian manuals for packaging. I will write some lines with the basic 
changes:

4.1. Update the debian/changelog file. You can use the "dch" command. Then, you 
will create a new debian package version (same that the file name version). You 
need include all the changes in that file. The example for some current changes:

wmaker (0.95.5-1) unstable; urgency=low

  * New upstream version 0.95.5.
    - New WUtil library version 3.
      - Updated debian/control file, replacing libwutil2 with libwutil3
        Included "Replaces:" and "Breaks:" fields.
      - Files moved in debian folder:
        - libwutil2.changelog-upstream -> libwutil3.changelog-upstream
        - libwutil2.install -> libwutil3.install
      - Removed file libwutil2.symbols
      - New file libwutil3.symbols
      - Updated symbols in libwings2.symbols
      - New patch 55_typo.diff to solve a small typo in src/dock.c.
  * "Build-Depends: libtiff5-dev" in packages wmaker and libwraster3-dev,
    since libtiff-dev introduces dependency to libtiff4 which is in oldlibs.
  * ...

4.2. Update the debian files. Now the files are fine. I did a lot of changes in 
previous versions, and now, changes are small. But the next package version is 
a little bit hard, because it has changes about the shlibs of libwutil3 and 
libwutil2.symbols. The shlibs are complex, but the main idea is build the 
package and apply the diff patch.

4.3. Other important thing is changes on the source code. You need create a 
debian/patches/patch. This file is a diff for the current source. You should 
create it using "quilt". I am working to remove all differences between 
upstream and debian, but not always is possible.

5. Built the source :-) Go to the upstream source root folder. (Remove the 
.git* files if you are using git and the file debian/nightly_build.sh), and run 
"dpkg-buildpackage -uc -us -tc -sa". You will get the new package files if all 
is ok.

If you have more questions, don't hesitate in ask me. Please, don't upload the 
changes to Debian directly (don't make NMU), because I am working in the 
package.

I use the "official tgz file" to upload the changes to Debian. This file is a 
"make dist" of the current source. John uploads it. I download this file, apply 
the changes and then upload the new package to Debian (unstable) and send the 
changes to the git. I don't send many changes in debian git's folder to avoid 
disturb Carlos.

kix.

> Do you know openSuSE buildservice ?

Nooop. I use Debian, is the best ;-)

> Thank you

You are welcome!
kix

> -- 
> 
> Christian
> ----------------------------------------------------
>    - Please do not 'CC' me on list mails.
>           Just reply to the list :)
> ----------------------------------------------------
> Der ultimative shop für Sportbekleidung und Zubehör
> 
> http://www.sc24.de
> ----------------------------------------------------
> 
> 
> -- 
> To unsubscribe, send mail to [email protected].


-- 
To unsubscribe, send mail to [email protected].

Reply via email to