On 30-Nov-2013, Antoine Beaupré wrote:
> It was actually refused, because of unsource minified javascript files.

Right. I've been learning about that in some of my recent packages too.

As a Debian package maintainer, we need to remove non-source (compiled,
obfuscated, etc.) files from the pristine source tarball and re-pack it to
a different tarball.

That's best done by explicitly re-packing the upstream source:

* In the ‘debian/changelog’, don't use e.g. “1.2.3” – the version string
  for the pristine upstream source – because you need to work from a
  modified source, and the Debian upstream version should be different to
  clearly indicate that.

  If the re-packing is for reason that the pristine upstream source
  contains files without a DFSG-compatible license, then “1.2.3+dfsg.1” for
  the Debian upstream version (and “1.2.3+dfsg.1-1” for the first Debian
  release of that upstream version) is the convention.
  
  If the re-packing is because there are files that need to be modified or
  removed, but *not* because of DFSG problems, then “1.2.3+ds.1” for the
  first Debian re-pack of pristine upstream source version “1.2.3”. (The
  first Debian release of that would be “1.2.3+ds1-1”.)

* Then, in ‘debian/watch’, describe how ‘ustream’ will convert the Debian
  upstream version to the pristine upstream version for download, and how
  to re-pack that tarball to use for the Debian source package. For example:

    
opts="uversionmangle=s/(\d)([a-z]\d+)$/$1~$2/,dversionmangle=s/\+dfsg\.\d+$//" \
        http://pypi.python.org/packages/source/c/coverage/coverage-(.+).tar.gz \
        debian debian/repack

* Then, write a specific ‘debian/repack’ program. This program will perform
  the specific re-packing by extracting the tarball, remove the non-source
  files, and re-pack the tarball with the correct name for the requested
  Debian upstream source version.

You can see the ‘python-coverage’ source package for how I've done this.

-- 
 \       “The surest way to corrupt a youth is to instruct him to hold |
  `\       in higher esteem those who think alike than those who think |
_o__)             differently.” —Friedrich Nietzsche, _The Dawn_, 1881 |
Ben Finney <b...@benfinney.id.au>

Attachment: signature.asc
Description: Digital signature

Reply via email to