ref: adc2290919972a60460cfe74696daf54a1963dcc
parent: 841ca652e1cc3b54d3771070354ec26291dc8d67
author: evilynux <evilynux>
date: Mon Jun 29 23:35:41 EDT 2009
Please see modifications to the changelog for the changes.
--- /dev/null
+++ b/debian/README.source
@@ -1,0 +1,38 @@
+Package Structure
+-----------------
+Say the SoX version is 14.3.0. the orig tarball is built by:
+1) Creating a sox-14.3.0 folder;
+2) Copying the upstream source tarball into it;
+3) Calling "tar -czvf sox_14.3.0.orig.tar.gz sox-14.3.0".
+
+Modifying and Patching the Source
+---------------------------------
+Patches can be applied by creating a debian/patches folder, adding patches to
+it and building the package again.
+
+Creating a Patch
+----------------
+Create your patch from the SoX root folder (e.g. /tmp/sox-14.3.0/build-tree).
+Copy it into the debian/patches folder. Patches are applied in the alphabetical
+order so you may want to use numered prefixes.
+
+Patch Example
+-------------
+Say you did an "apt-get source sox" in the /tmp/ folder and tried to build the
+package already, but want to create a patch. (The upstream tarball has been
+extracted in the build-tree/ folder).
+
+cd /tmp/sox-14.3.0/
+mkdir debian/patches
+cd build-tree/
+
+do your modifications to sox-14.3.0/src/sox.c and save your new file as
+sox-14.3.0/src/sox.c.new
+
+diff -Naur sox-14.3.0/src/sox.c.old sox-14.3.0/src/sox.c > \
+ ../debian/patches/01-some_fix_to_sox.diff
+debuild
+
+Hope this helps!
+
+ -- Pascal Giard <pascal@debian.org> Mon, 29 Jun 2009 22:45:49 -0400
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,12 +10,19 @@
- Reenabled libmagic as it's not used by default anymore.
- Explicitly disabled amrwb and amrnb.
- Removed now useless --disable-rpath flag.
+ - Made patch target available at all times.
* [debian/libsox-fmt-pulse.dirs,debian/libsox-fmt-pulse.install]:
- Added PulseAudio library.
* [debian/libsox-fmt-base.install]:
- Removed formats libraries that are now included in libsox.
+ * [debian/mime]:
+ - Fixed by moving the argument before the filename, thanks to
+ Robert Grimm <rob@robgri.de> (closes: #530899).
+ * [debian/README.source]:
+ - Added documentation on the debian source package. This follows section
+ 4.14 of the Debian Policy Manual (closes: #522548).
- -- Pascal Giard <evilynux@gmail.com> Fri, 24 Apr 2009 10:17:03 -0400
+ -- Pascal Giard <evilynux@gmail.com> Mon, 29 Jun 2009 22:45:49 -0400
sox (14.2.0-2) unstable; urgency=low
--- a/debian/mime
+++ b/debian/mime
@@ -1,5 +1,5 @@
-audio/basic; /usr/bin/play %s -t au
-audio/x-aiff; /usr/bin/play %s -t aiff
-audio/x-gsm; /usr/bin/play %s -t gsm
-audio/x-wav; /usr/bin/play %s -t wav
+audio/basic; /usr/bin/play -t au %s
+audio/x-aiff; /usr/bin/play -t aiff %s
+audio/x-gsm; /usr/bin/play -t gsm %s
+audio/x-wav; /usr/bin/play -t wav %s
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
-#include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
CFLAGS += -D_REENTRANT
CPPFLAGS += -I/usr/include/ffmpeg