diff options
| author | Christopher Knadle <Chris.Knadle@coredump.us> | 2013-03-24 16:19:14 -0400 |
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2013-08-07 22:32:58 -0600 |
| commit | 33037f480af5563aaaf4139b8fa0fa6b374b5257 (patch) | |
| tree | 4b222ae2a86439288dd39418ad0f1a236637d7c3 /debian/patches | |
| parent | ef2d5b20453b00acc8c343c169138afd7940d3cc (diff) | |
Imported Debian patch 0.3.0-0.1debian/0.3.0-0.1
Diffstat (limited to 'debian/patches')
| -rw-r--r-- | debian/patches/01-fix-manifest.patch | 12 | ||||
| -rw-r--r-- | debian/patches/02-fix-setup-py.patch | 52 | ||||
| -rw-r--r-- | debian/patches/04-remove-redundant-license.patch | 14 | ||||
| -rw-r--r-- | debian/patches/series | 3 |
4 files changed, 81 insertions, 0 deletions
diff --git a/debian/patches/01-fix-manifest.patch b/debian/patches/01-fix-manifest.patch new file mode 100644 index 0000000..1f2557e --- /dev/null +++ b/debian/patches/01-fix-manifest.patch @@ -0,0 +1,12 @@ +Description: Add required pieces to MANIFEST.IN file +Author: Steve Conklin <steve@conklinhouse.com> + +--- a//dev/null ++++ b/MANIFEST.IN +@@ -0,0 +1,5 @@ ++include *.xsd ++include share/*.desktop ++include share/chirp.png ++include share/*.1 ++include stock_configs/* ++include COPYING diff --git a/debian/patches/02-fix-setup-py.patch b/debian/patches/02-fix-setup-py.patch new file mode 100644 index 0000000..1088490 --- /dev/null +++ b/debian/patches/02-fix-setup-py.patch @@ -0,0 +1,52 @@ +Description: Remove unneeded bits of the setup.py file which + are used to build an entirely different package. +Author: Steve Conklin <steve@conklinhouse.com> + +--- a/setup.py ++++ b/setup.py +@@ -117,44 +117,10 @@ + ('share/chirp/stock_configs', stock_configs), + ] + locale_files) + +-def rpttool_build(): +- from distutils.core import setup +- +- setup(name="rpttool", +- packages=["chirp"], +- version="0.3", +- scripts=["rpttool"], +- description="A frequency tool for ICOM D-STAR Repeaters", +- data_files=[('/usr/sbin', ["tools/icomsio.sh"])], +- ) +- +-def nuke_manifest(*files): +- for i in ["MANIFEST", "MANIFEST.in"]: +- if os.path.exists(i): +- os.remove(i) +- +- if not files: +- return +- +- f = file("MANIFEST.in", "w") +- for fn in files: +- print >>f, fn +- f.close() +- + if sys.platform == "darwin": + macos_build() + elif sys.platform == "win32": + win32_build() + else: +- if os.path.exists("rpttool"): +- nuke_manifest("include tools/icomsio.sh", "include README.rpttool") +- rpttool_build() +- if os.path.exists("chirpui"): +- nuke_manifest("include *.xsd", +- "include share/*.desktop", +- "include share/chirp.png", +- "include share/*.1", +- "include stock_configs/*", +- "include COPYING") +- default_build() ++ default_build() + diff --git a/debian/patches/04-remove-redundant-license.patch b/debian/patches/04-remove-redundant-license.patch new file mode 100644 index 0000000..99f2eda --- /dev/null +++ b/debian/patches/04-remove-redundant-license.patch @@ -0,0 +1,14 @@ +Description: The author includes a copy of the Copyright, + but it's not needed as it's the same as one we can reference. +Author: Steve Conklin <steve@conklinhouse.com> + +--- a/setup.py ++++ b/setup.py +@@ -111,7 +111,6 @@ + data_files=[('share/applications', desktop_files), + ('share/chirp/images', image_files), + ('share/chirp', xsd_files), +- ('share/doc/chirp', ['COPYING']), + ('share/pixmaps', ['share/chirp.png']), + ('share/man/man1', ["share/chirpw.1"]), + ('share/chirp/stock_configs', stock_configs), diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..0fc002b --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +01-fix-manifest.patch +02-fix-setup-py.patch +04-remove-redundant-license.patch |
