MK-ORIGTARGZ(1) | MK-ORIGTARGZ(1) |
mk-origtargz - rename upstream tarball, optionally changing the compression and removing unwanted files
mk-origtargz renames the given file to match what is expected by dpkg-buildpackage, based on the source package name and version in debian/changelog. It can convert zip to tar, optionally change the compression scheme and remove files according to Files-Excluded and Files-Excluded-component in debian/copyright. The resulting file is placed in debian/../... (In debian/copyright, the Files-Excluded and Files-Excluded-component stanzas are a part of the first paragraph and there is a blank line before the following paragraphs which contain Files and other stanzas. See uscan(1) "COPYRIGHT FILE EXAMPLE".)
The archive type for zip is detected by "file --dereference --brief --mime-type" command. So any zip type archives such as jar are treated in the same way. The xpi archive is detected by its extension and is handled properly using the xpi-unpack command.
If the package name is given via the --package option, no information is read from debian/, and the result file is placed in the current directory.
mk-origtargz is commonly called via uscan, which first obtains the upstream tarball.
The following options extend or replace information taken from debian/.
The default is to use the package name of the first entry in debian/changelog.
The default is to use the upstream portion of the version of the first entry in debian/changelog.
Unmatched patterns will emit a warning so the user can verify whether it is correct. If there are multiple patterns which match a file, only the last one will count as being matched.
Both the --exclude-file and --copyright-file options amend the list of patterns found in debian/copyright. If you do not want to read that file, you will have to use --package.
These options specify what exactly mk-origtargz should do. The options --copy, --rename and --symlink are mutually exclusive.
If the file has to be modified (because it is a zip, or xpi file, because of --repack or Files-Excluded), this option behaves like --copy.
If the file has to be modified (because it is a zip, or xpi file, because of --repack or Files-Excluded), this implies that the original file is deleted afterwards.
mk-origtargz and this manpage have been written by Joachim Breitner <nomeata@debian.org>.
2019-08-04 | Debian Utilities |