--- stepic-0.3.orig/debian/README.source +++ stepic-0.3/debian/README.source @@ -0,0 +1,58 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- stepic-0.3.orig/debian/changelog +++ stepic-0.3/debian/changelog @@ -0,0 +1,77 @@ +stepic (0.3-5) unstable; urgency=medium + + [ Jakub Wilk ] + * Use canonical URIs for Vcs-* fields. + + [ Scott Kitterman ] + * Cherrypick from upstream bzr (rev 39) to check for allow image types and + reject jpeg (Closes: #649053) + * Fixed version in setup.py (Closes: #588049) + * Changed /usr/bin/env python to /usr/bin/python + * Add quilt to build-depends, build with quilt in debian/rules for above + changes, and add README.source + * Expanded long description to mention support formats + * Bumped standards version to 3.9.5 without further change + + -- Scott Kitterman Wed, 05 Mar 2014 22:30:55 -0500 + +stepic (0.3-4) unstable; urgency=low + + * Rebuild for python transition + * Move python-all from Build-Depends-Indep to Build-Depends (needed for + clean) + * Bump standards version to 3.9.2 without further change + * Switch from XS-Python-Version to X-Python-Version + * Drop XB-Python-Version + * Update packaging copyright years in debian/copyright + + -- Scott Kitterman Sat, 16 Apr 2011 00:16:25 -0400 + +stepic (0.3-3) unstable; urgency=low + + * Convert from python-support to dh_python2 + - Update python build-dep to python-all >= 2.6.5-2~, update debhelper + requirement to 7.3.16, and drop python-support + - Change debian/rules to build --with python2 + * Change XS-Python-Version from all to >= 2.4 + * Update debian/rules to use overrides instead of --before/after + * Bump standards version to 3.8.4 without further change + * Drop DM-Upload-Allowed + + -- Scott Kitterman Fri, 18 Jun 2010 14:47:50 +0000 + +stepic (0.3-2) unstable; urgency=low + + [ Sandro Tosi ] + * debian/control + - Switch Vcs-Browser field to viewsvn + + [ Scott Kitterman ] + * debian/rules + - Convert to dh 7 rules style (fixes dh_compress failure to compress man + page) + - Remove all of the un-needed /usr/share/doc/stepic/ instead of just the + redundant copying file + * debian/control + - Adjust versioned build-depends on python for correct python.mk + - Bump debhelper version requirement to 7 + - Bump standards version to 3.8.3 without further change + - Add ${misc:Depends} + - Add XS-Python-Verson + * debian/copyright + - Use correct copyright symbol + * debian/compat + - Change compat to 7 + + [ Piotr Ożarowski ] + * Add DM-Upload-Allowed flag + * Remove build dir in clean target + + -- Scott Kitterman Sun, 01 Nov 2009 21:30:08 -0500 + +stepic (0.3-1) unstable; urgency=low + + * Initial release (Closes: #450734) + + -- Scott Kitterman Sun, 20 Jan 2008 00:21:45 -0500 + --- stepic-0.3.orig/debian/compat +++ stepic-0.3/debian/compat @@ -0,0 +1 @@ +7 --- stepic-0.3.orig/debian/control +++ stepic-0.3/debian/control @@ -0,0 +1,20 @@ +Source: stepic +Section: python +Priority: optional +Maintainer: Scott Kitterman +Uploaders: Debian Python Modules Team +Build-Depends: debhelper (>= 7.3.16), python-all (>= 2.6.5-2~), quilt +Standards-Version: 3.9.5 +Homepage: http://domnit.org/stepic/doc/ +X-Python-Version: >= 2.4 +Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/stepic/trunk/ +Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/stepic/trunk/ + +Package: python-stepic +Architecture: all +Depends: ${python:Depends}, ${misc:Depends}, python-imaging +Description: Python Steganography in Images + A Python module and command line tool for hiding arbitrary data within images + by slightly modifying the colors. These modifications are generally + imperceptible to humans, but are machine detectable. Works with RGB, RGBA, + or CMYK images. --- stepic-0.3.orig/debian/copyright +++ stepic-0.3/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Scott Kitterman on +Sun, 20 Jan 2008 00:21:45 -0500. + +It was downloaded from + +Upstream Author: + + Lenny Domnitser + +Copyright: + + Copyright © 2007 Lenny Domnitser + +License: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +The Debian packaging is © 2008-2014, Scott Kitterman +and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + --- stepic-0.3.orig/debian/docs +++ stepic-0.3/debian/docs @@ -0,0 +1,2 @@ +TODO +doc/* --- stepic-0.3.orig/debian/patches/fix-shebang +++ stepic-0.3/debian/patches/fix-shebang @@ -0,0 +1,20 @@ +Index: stepic-0.3/setup.py +=================================================================== +--- stepic-0.3.orig/setup.py 2007-11-08 02:15:59.000000000 -0500 ++++ stepic-0.3/setup.py 2014-03-05 22:38:13.652583579 -0500 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + + from distutils.core import setup + import os +Index: stepic-0.3/stepic +=================================================================== +--- stepic-0.3.orig/stepic 2007-11-11 21:37:59.000000000 -0500 ++++ stepic-0.3/stepic 2014-03-05 22:38:27.492583216 -0500 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + + # stepic - Python image steganography + # Copyright (C) 2007 Lenny Domnitser --- stepic-0.3.orig/debian/patches/fix-version +++ stepic-0.3/debian/patches/fix-version @@ -0,0 +1,13 @@ +Index: stepic-0.3/setup.py +=================================================================== +--- stepic-0.3.orig/setup.py 2014-03-05 22:38:13.652583579 -0500 ++++ stepic-0.3/setup.py 2014-03-05 22:54:52.680557392 -0500 +@@ -3,7 +3,7 @@ + from distutils.core import setup + import os + +-if os.environ.get('RELEASE') == '1': ++if True: + import stepic + version = stepic.__version__ + else: --- stepic-0.3.orig/debian/patches/no-jpeg +++ stepic-0.3/debian/patches/no-jpeg @@ -0,0 +1,38 @@ +Upstream bzr rev 39 +Index: stepic-0.3/stepic.py +=================================================================== +--- stepic-0.3.orig/stepic.py 2007-11-10 17:08:14.000000000 -0500 ++++ stepic-0.3/stepic.py 2014-03-05 22:51:35.968562548 -0500 +@@ -40,6 +40,14 @@ + 'Steganographer') + + ++def _validate_image(image): ++ if image.mode not in ('RGB', 'RGBA', 'CMYK'): ++ raise ValueError('Unsupported pixel format: ' ++ 'image must be RGB, RGBA, or CMYK') ++ if image.format == 'JPEG': ++ raise ValueError('JPEG format incompatible with steganography') ++ ++ + def encode_imdata(imdata, data): + '''given a sequence of pixels, returns an iterator of pixels with + encoded data''' +@@ -70,6 +78,8 @@ + def encode_inplace(image, data): + '''hides data in an image''' + ++ _validate_image(image) ++ + w = image.size[0] + (x, y) = (0, 0) + for pixel in encode_imdata(image.getdata(), data): +@@ -110,6 +120,8 @@ + def decode(image): + '''extracts data from an image''' + ++ _validate_image(image) ++ + return ''.join(decode_imdata(image.getdata())) + + --- stepic-0.3.orig/debian/patches/series +++ stepic-0.3/debian/patches/series @@ -0,0 +1,3 @@ +fix-shebang +fix-version +no-jpeg --- stepic-0.3.orig/debian/rules +++ stepic-0.3/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python2,quilt + +override_dh_installchangelogs: + rm -rf $(CURDIR)/debian/python-stepic/usr/share/doc/stepic + dh_installchangelogs + +override_dh_clean: + rm -rf $(CURDIR)/build + dh_clean --- stepic-0.3.orig/debian/watch +++ stepic-0.3/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://domnit.org/stepic/dist/stepic-([0-9]\..*)\.tar\.gz