File: README.source

package info (click to toggle)
python-peak.rules 0.5a1%2Br2713-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 632 kB
  • ctags: 658
  • sloc: python: 3,625; makefile: 29
file content (63 lines) | stat: -rw-r--r-- 2,081 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
This repository contains only the `debian` directory because git-buildpackage
doesn't handle multiple upstream tarballs, see #561071 for details.

Upgrade to a new upstream
=========================

This package use multiple upstream tarballs support provided by source package
format "3.0 (quilt)".

To obtain new orig tarballs you have to specify package version inside
debian/changelog, update module version in the $(PRIORITIZED_METHODS) Makefile
variable inside debian/rules and then invoke the get-orig-source target of
debian/rules as follows:

    $ debian/rules get-orig-source

If all goes well, that should leave, inside the the current directory a tarball
called

    PACKAGE_VERSION.orig.tar.gz

    where PACKAGE is the source package name and VERSION is the version
    specified in debian/changelog;

and a two tarballs called

    PACKAGE_VERSION.orig-rules.tar.gz

    PACKAGE_VERSION.orig-EXTENSIONNAME-EXTENSIONVERSION.tar.gz

    where EXTENSIONNAME and EXTENSIONVERSION are specified in the
    $(PRIORITIZED_METHODS) Makefile variable inside debian/rules:
    the only known extension, at the time of this packaging work, is
    prioritized_methods so we can directly pertain to it.


Package version
===============

Note that, while the package has multiple upstream tarballs,
PEAK-Rules is considered the "main" tarball. This means, in
particular, that the package version comes from it.


Adding a new contrib
====================

At the time of this packaging work only one contrib exists, but it is natural
to expect that in the future new contribs will be added. To add one to the
package a bit of refactoring is needed:

1) $(PRIORITIZED_METHODS) must be renamed to something like $(CONTRIBS) to take
   note of each contrib name and version

2) add the per-contrib watch file as debian/NAME.watch, where NAME is
   the contrib name

3) add license and copyright information about the new module to
   debian/copyright

4) refactor get-orig-source to handle multiple contrib

For a complete example you can look at python-peak.util's debian/rules.