Differences between revisions 15 and 16
Revision 15 as of 2015-04-22 10:59:18
Size: 2722
Comment:
Revision 16 as of 2015-04-22 11:09:12
Size: 3012
Comment:
Deletions are marked like this. Additions are marked like this.
Line 36: Line 36:
  * '''Ruby:''' {{{gem fetch GEMNAME}}}
Line 37: Line 38:
  * '''Ruby:''' {{{gem2deb --only-source-dir GEMNAME|GEMFILE}}}
Line 38: Line 40:
  * '''Ruby:''' {{{dh-make-ruby .}}}
Line 40: Line 43:
  * '''Ruby:''' {{{gem2deb --only-debian-source GEMNAME|GEMFILE}}}
Line 41: Line 45:
  * '''Ruby:''' {{{gem2deb GEMNAME|GEMFILE}}}
Line 42: Line 47:
  * '''Ruby:''' not supported

This page references tools that aim at providing basic working Debian packages.

Language

Any

Perl

Ruby

Python

Tool (package name)

dh-make

dh-make-perl

gem2deb

python-stdeb

Upstream repository

N/A

CPAN.org

Rubygems.org

Pypi

Features

version

0.84-2

0.14

0.8.2-4

cdbs or dh?

dh

dh

dh

use DEBEMAIL

yes

yes

no

Build-Depends

yes

yes

no

Depends

yes

yes

yes

Homepage

yes

yes

no

short/long descriptions

yes

yes

yes

DEP8 tests

no

only template

no

.docs / .examples / etc.

docs + examples

docs only

no

debian/copyright

yes

only template

no

debian/watch

yes

yes

no

git repo creation, pristine-tar, etc.

yes

no

no

debian/upstream/metadata (UpstreamMetadata)

yes

no

no

Notes

  • There's a Git repo with some example outputs

  • only template means that the tool provides a file that is not customized per-package

Build-depends and Depends generation

  • dh-make-perl uses local packages and apt-file to identify packages (broken with 0.84-2 and multiarch)

  • gem2deb converts gem names to Debian package names
  • stdeb also uses apt-file with a fallback on module name conversion (code)

  • DEP-11 could end up being the proper way to generate language-specific dependencies

TODO. 'cme update dpkg-copyright' is another approach.

Usage

  • Download upstream package from repository
    • Ruby: gem fetch GEMNAME

  • Debianize (without building source)
    • Ruby: gem2deb --only-source-dir GEMNAME|GEMFILE

  • Debianize an unpacked upstream source
    • Ruby: dh-make-ruby .

    • Python: python3 setup.py --command-packages=stdeb.command debianize

  • Debianize and build source package
    • Ruby: gem2deb --only-debian-source GEMNAME|GEMFILE

  • Debianize and build binary packages
    • Ruby: gem2deb GEMNAME|GEMFILE

  • Debianize, build, install
    • Ruby: not supported

  • Refresh an already created package, moving old files to .bak:
    • Perl: dh-make-perl refresh

    • Ruby, Python: not supported

TO-DO List