--- id3ren-1.1b0.orig/debian/changelog +++ id3ren-1.1b0/debian/changelog @@ -0,0 +1,68 @@ +id3ren (1.1b0-6) unstable; urgency=low + + * Update maintainer address + * New menu section + + -- Matthew Johnson Wed, 5 Dec 2007 13:18:52 +0000 + +id3ren (1.1b0-5) unstable; urgency=low + + * Add watch file + * Put long description in paragraphs + * Update copyright file + * Remove emacs mode at end of changelog + + -- Matthew Johnson Fri, 8 Jun 2007 01:05:49 +0100 + +id3ren (1.1b0-4) unstable; urgency=low + + * Convert to using dpatch + * Change deprecated dh_installmanpages in favour of dh_installman + + -- Matthew Johnson Wed, 25 Apr 2007 12:12:39 +0100 + +id3ren (1.1b0-3) unstable; urgency=low + + * Adopt package. (Closes: #365641) + * Move filename sanitization to around tag contents, + not resulting filename, and enable '/' replacement. + Closes: #369260 + + -- Matthew Johnson Fri, 1 Dec 2006 17:11:22 +0000 + +id3ren (1.1b0-2) unstable; urgency=low + + * QA upload. (ACK NMUs; Closes: #348907,#267782,#322786) + * Set maintainer to QA Group; Orphaned: #365641 + * Set compat level to 5, depend on at least debhelper 5 + * Cleanup for debian/rules + * Fix debian/menu + * Fix lintian warning about dh_make-boilerplate in + debian/copyright, make overall lintian clean + Closes: #349004 + * Conforms with latest Standards Version 3.7.2 + + -- Michael Ablassmeier Tue, 7 Nov 2006 16:25:23 +0100 + +id3ren (1.1b0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * fix genres id off by one (Closes: #267782) + * finish /usr/doc transition (Closes: #322786) + + -- Stanley Jaddoe Tue, 17 Jan 2006 14:29:51 +0100 + +id3ren (1.1b0-1) unstable; urgency=low + + * New upstream release + * Closes: Bug#102504 + + -- michael d. ivey Tue, 17 Jul 2001 16:02:05 +0000 + +id3ren (1.0b1-1) unstable; urgency=low + + * Initial Release. + * Closes: #96900 + + -- michael d. ivey Wed, 9 May 2001 22:07:11 +0000 + --- id3ren-1.1b0.orig/debian/compat +++ id3ren-1.1b0/debian/compat @@ -0,0 +1 @@ +5 --- id3ren-1.1b0.orig/debian/control +++ id3ren-1.1b0/debian/control @@ -0,0 +1,18 @@ +Source: id3ren +Section: sound +Priority: optional +Maintainer: Matthew Johnson +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 5), dpatch + +Package: id3ren +Architecture: any +Depends: ${shlibs:Depends} +Description: id3 tagger and renamer + Tool used to rename batches of mpeg3 files by reading the ID3 tag at the + end of the file which contains the song name, artist, album, year, and a + comment. + . + The secondary function of id3ren is a tagger, which can create, modify, or + remove ID3 tags. The id3 fields can be set on the command line, entered + interactively, or "guessed" from the path and the filename. --- id3ren-1.1b0.orig/debian/copyright +++ id3ren-1.1b0/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by michael d. ivey on Wed, 9 May +2001 18:58:16 +0000. It was adopted by Matthew Johnson +on Fri, 1 Dec 2006 17:11:22 +0000. + +It was downloaded from http://cbothamy.free.fr/projects/id3ren/ + +Upstream Authors: Robert Alto (badcrc@tscnet.com), + Christophe Bothamy (cbothamy@free.fr) + +Copyright: + +This program has been written by Robert Alto in 1998, and modified by +Christophe Bothamy in December 2000. + + This package 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; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 + Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + +The packaging since Dec 2006 is copyright (c) 2006-2007 Matthew Johnson + and is licenced under the GPL version 2. Prior to that +the packaging is copyright (c) 2001-2006 michael d. ivey --- id3ren-1.1b0.orig/debian/dirs +++ id3ren-1.1b0/debian/dirs @@ -0,0 +1 @@ +usr/bin --- id3ren-1.1b0.orig/debian/docs +++ id3ren-1.1b0/debian/docs @@ -0,0 +1,6 @@ +README +TODO +AUTHORS +PORTS +THANKS +USAGE --- id3ren-1.1b0.orig/debian/menu +++ id3ren-1.1b0/debian/menu @@ -0,0 +1,2 @@ +?package(id3ren):needs="text" section="Applications/Sound"\ + title="id3ren" command="/usr/bin/id3ren" --- id3ren-1.1b0.orig/debian/patches/00list +++ id3ren-1.1b0/debian/patches/00list @@ -0,0 +1,5 @@ +01_install +02_include +03_manpage +04_genre +05_directory --- id3ren-1.1b0.orig/debian/patches/01_install.dpatch +++ id3ren-1.1b0/debian/patches/01_install.dpatch @@ -0,0 +1,47 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_install.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: 01_install + +@DPATCH@ + +--- id3ren-1.1b0.orig/Makefile ++++ id3ren-1.1b0/Makefile +@@ -6,7 +6,7 @@ + + install: + make -C src install +- make -C man install ++# make -C man install + + clean: + make -C src clean +--- id3ren-1.1b0.orig/src/Makefile ++++ id3ren-1.1b0/src/Makefile +@@ -2,8 +2,10 @@ + CFLAGS = -s -O2 -Wall + CC = gcc + RM = rm -f +-INSTALL = install -s -m 755 +-INSTALL_DIR = /usr/bin ++INSTALL = install -D -s -m 755 ++# Edited for Debian GNU/Linux. ++DESTDIR = ++INSTALL_DIR = $(DESTDIR)/usr/bin + INSTALL_NAME = id3ren + + SOURCES = id3ren.c id3tag.c id3file.c id3misc.c +--- id3ren-1.1b0.orig/man/Makefile 2007-04-24 16:59:26.000000000 +0100 ++++ id3ren-1.1b0/man/Makefile 2001-07-06 00:34:54.000000000 +0100 +@@ -1,6 +1,8 @@ + RM = rm -f +-INSTALL = install -m 755 +-INSTALL_DIR = /usr/man/man1 ++INSTALL = install -D -m 755 ++# Edited for Debian GNU/Linux. ++DESTDIR = ++INSTALL_DIR = $(DESTDIR)/usr/man/man1 + INSTALL_NAME = id3ren.1.gz + + all: --- id3ren-1.1b0.orig/debian/patches/02_include.dpatch +++ id3ren-1.1b0/debian/patches/02_include.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_include.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: 02_include + +@DPATCH@ + +--- id3ren-1.1b0.orig/src/id3file.c ++++ id3ren-1.1b0/src/id3file.c +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + #include "id3file.h" + #include "id3genre.h" --- id3ren-1.1b0.orig/debian/patches/03_manpage.dpatch +++ id3ren-1.1b0/debian/patches/03_manpage.dpatch @@ -0,0 +1,296 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_manpage.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: 03_manpage + +@DPATCH@ + +--- id3ren-1.1b0.orig/man/id3ren.1 ++++ id3ren-1.1b0/man/id3ren.1 +@@ -0,0 +1,285 @@ ++.TH ID3REN 1 "14 july 2001" ++.SH NAME ++id3ren \- Reads and writes ID3 tags from mp3 files. ++ ++.SH SYNOPSIS ++\fBid3ren\fP [-help] [-song=\fISONG_NAME\fP] [-artist=\fIARTIST_NAME\fP] ++[-album=\fIALBUM_NAME\fP] [-year=\fIYEAR\fP] [-genre={# | \fIGENRE\fP}] ++[-comment=\fICOMMENT\fP] [-track=\fITRACK\fP] [-showgen] ++[-searchgen={# | \fIGENRE}\fP] [-default=\fIDEFAULT\fP] ++[-copytagfrom=\fIFILE\fP [-copysong] [-copyartist] [-copyalbum] ++[-copyyear] [-copygenre] [-copycomment] [-copytrack] [-copyall] ] ++[-quick] [-noalbum] [-nocomment] [-noyear] [-nogenre] [-notrack] ++[-tag] [-edit] [-notagprompt | -showtag | -striptag | -tagonly] ++[-nocfg] [-log] [-quiet] [-verbose] [-defcase | -lower | -upper] ++[-remchar=\fICHARS\fP] [-repchar=\fICHARS\fP] [-space=\fISTRING\fP] ++[-tagfromfilename | -tagffn] [-tagtemplate=\fITAGTEMPLATE\fP] ++[-template=\fITEMPLATE] [\fIFILE1\fP \fIFILE2\fP.. | \fIWILDCARDS\fP] ++ ++.SH COPYRIGHT ++id3 Renamer ++ (C) Copyright 1998 by Robert Alto (badcrc@tscnet.com) ++ (C) Copyright 2001 Christophe Bothamy (cbothamy@free.fr) ++ ++.SH DESCRIPTION ++\fBid3ren\fP is used to rename batches of mp3 files by reading the ID3 tag ++at the end of the file which contains the song name, artist, album, year, ++and a comment. ++The secondary function of \fBid3ren\fP is a tagger, which ++can create, modify, or remove ID3 tags. ++ ++.SS OPTIONS ++.TP ++\fB-album\fP \fIALBUM_NAME\fP ++Sets the album name to use when tagging files. All files will be ++tagged with this album name without prompting. ++.TP ++\fB-album\fP=\fIALBUM_NAME\fP ++Sets the album name to use when tagging files. All files will be tagged ++with this album name without prompting. ++ ++.TP ++\fB-artist\fP=\fIARTIST_NAME\fP ++Sets the artist name to use when tagging files. All files will be tagged ++with this artist name without prompting. ++ ++.TP ++\fB-comment\fP=\fICOMMENT\fP ++Sets the comment to use when tagging files. All files will be tagged ++with this comment without prompting. ++ ++.TP ++\fB-copyalbum\fP ++Copies the album field from the source file tag set by -copytagfrom ++ ++.TP ++\fB-copyall\fP ++Copies all the fields from the source file tag set by -copytagfrom ++ ++.TP ++\fB-copyartist\fP ++Copies the artist field from the source file tag set by -copytagfrom ++ ++.TP ++\fB-copycomment\fP ++Copies the comment field from the source file tag set by -copytagfrom ++ ++.TP ++\fB-copygenre\fP ++Copies the genre field from the source file tag set by -copytagfrom ++ ++.TP ++\fB-copysong\fP ++Copies the song field from the source file tag set by -copytagfrom ++ ++.TP ++\fB-copytagfrom\fP=\fIFILE \fP ++Sets the filename to copy tag field from. ++ ++.TP ++\fB-copytrack\fP ++Copies the track field from the source file tag set by -copytagfrom ++ ++.TP ++\fB-copyyear\fP ++Copies the year field from the source file tag set by -copytagfrom ++ ++.TP ++\fB-defcase\fP ++Use the default case of characters from the ID3 tag when renaming files. ++This is default. ++ ++.TP ++\fB-default\fP=\fIDEFAULT\fP ++Sets the default field to be used only when renaming if a field is blank. ++Useful when renaming and creating "unknown" subdirectories. ++ Defaults to "unknown". ++ ++.TP ++\fB-edit\fP ++If a file already has a tag and you want to change just one specific field ++of the tag, use this option in conjunction with -tag and the option for ++the field you want to change. For example to change just the album name ++of a file: ++id3ren -tag -edit -album="New Album Name" sample.mp3 ++ * This option is a toggle. ++ ++.TP ++\fB-genre\fP=\fI#\fP | \fIGENRE_NAME\fP ++Sets the genre to use when tagging files. All files will be tagged ++with this genre without prompting. To see a list of allowable genres ++use the -showgen argument. -genre accepts either the number of the genre ++as displayed with -showgen, or the name of the genre. ++ ++.TP ++\fB-help\fP ++Displays the help screen. ++ ++.TP ++\fB-log\fP ++Log most output to id3ren.log. ++ * This option is a toggle. ++ ++.TP ++\fB-lower\fP ++Convert file names to lowercase characters. ++ ++.TP ++\fB-noalbum\fP ++Don't prompt for the album when adding a tag. ++ * This option is a toggle. ++ ++.TP ++\fB-nocfg\fP ++Don't try reading any config files, even if they exist. ++ * This option is a toggle. ++ ++.TP ++\fB-nocomment\fP ++Don't prompt for a comment when adding a tag. ++ * This option is a toggle. ++ ++.TP ++\fB-nogenre\fP ++Don't prompt for a genre when adding a tag. ++ * This option is a toggle. ++ ++.TP ++\fB-notagprompt\fP ++Never prompt for tag information. Files without tags are skipped. ++ * This option is a toggle. ++ ++.TP ++\fB-notrack\fP ++Don't prompt for the track number when adding a tag. ++ * This option is a toggle. ++ ++.TP ++\fB-noyear\fP ++Don't prompt for the year when adding a tag. ++ * This option is a toggle. ++ ++.TP ++\fB-quick\fP ++Automatically sets -noalbum, -nocomment, and -noyear. ++ ++.TP ++\fB-quiet\fP ++Run quietly, displaying only errors or prompts. ++ * This option is a toggle. ++ ++.TP ++\fB-remchar\fP=\fICHARS\fP ++CHARS indicates a string of characters that will be removed from the ++filename if found. ++ ++.TP ++\fB-repchar\fP=\fICHARS\fP ++CHARS indicates a string of characters, EACH followed by the character to ++replace it with. For example, to replace all plus '+' signs with a hyphen ++'-', you would use '-repchar +-'. To do the previous, and also replace ++all '&' with '_', you would use '-repchar +-&_'. ++ ++.TP ++\fB-searchgen\fP=\fI#\fP | \fIGENRE\fP ++Searches the list of genres and displays either the genre name ++corresponding to #, or shows all substring matches of GENRE. ++ ++.TP ++\fB-showgen\fP ++Displays all the music genres currently in the program. ++ ++.TP ++\fB-showtag\fP ++Display the tags for the specified files. No renaming is performed. ++ ++.TP ++\fB-song\fP=\fISONG_NAME\fP ++Sets the song name to use when tagging files. All files will be tagged ++with this song name without prompting. ++ ++.TP ++\fB-space\fP=\fIPSTRING\fP ++Change all spaces in the renamed file to STRING. To remove all spaces, use ++'-space=' or '-space=""'. The default space character is ' '. ++ ++.TP ++\fB-striptag\fP ++Remove the tags for the specified files. ++ * This option is a toggle. ++ ++.TP ++\fB-tag\fP ++Always ask for a tag, even if the file already has one. ++ * This option is a toggle. ++ ++.TP ++\fB-tagfromfilename\fP, \fB-tagffn\fP ++Use informations from the filename when tagging. See tagtemplate. ++ * This option is a toggle. ++ ++.TP ++\fB-tagonly\fP ++Don't rename any files, just ask for tag information. Note that -tagonly ++only asks for tag information on files that don't have a tag already. ++To have it ask for a tag on all files, use with -tag. ++ * This option is a toggle. ++ ++.TP ++\fB-tagtemplate\fP=\fITEMPLATE\fP ++Use TEMPLATE as the basis for tagging files. The default template used ++is '[%a]-[%s].mp3'. Identifiers that can be used in the template are: ++ %a - Artist name ++ %c - Comment ++ %s - Song name ++ %t - Album title ++ %n - Track Number ++ %y - Year ++ %g - Genre ++ %d - Dummy ++ It is a VERY good idea to have fixed separators between fields. ++ ++.TP ++\fB-template\fP=\fITEMPLATE\fP ++Use TEMPLATE as the basis for renaming files. The default template used ++is '[%a]-[%s].mp3'. Identifiers that can be used in the template are: ++ %a - Artist name ++ %c - Comment ++ %s - Song name ++ %t - Album title ++ %n - Track Number ++ %y - Year ++ %g - Genre ++ ++.TP ++\fB-track\fP=\fITRACK\fP ++Sets the track number to use when tagging files. All files will be ++tagged with this track number without prompting. ++TRACK must be an integer between 1 and 99. ++ ++.TP ++\fB-upper\fP ++Convert file names to uppercase characters. ++ ++.TP ++\fB-verbose\fP ++Display more messages than usual. ++ * This option is a toggle. ++ ++.TP ++\fB-year\fP=\fIYEAR\fP ++Sets the year to use when tagging files. All files will be tagged ++with this year without prompting. ++ ++.TP ++And of course the program accepts wildcards for filenames. ++.SH FILES ++\fC*.mp3\fR ++All your mp3 files ++ ++.SH "SEE ALSO" ++lame(1), xmms(1), mpg123(1), mp3blaster(1) ++ ++.SH BOGUS ++If you have questions, comments, or bug reports, please contact cbothamy@free.fr ++To get the latest version, please visit http://cbothamy.free.fr/projects/id3ren/ --- id3ren-1.1b0.orig/debian/patches/04_genre.dpatch +++ id3ren-1.1b0/debian/patches/04_genre.dpatch @@ -0,0 +1,64 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_genre.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: 04_genre + +@DPATCH@ + +--- id3ren-1.1b0.orig/src/id3genre.h ++++ id3ren-1.1b0/src/id3genre.h +@@ -149,10 +149,31 @@ + "Acapella", + "Euro-House", + "Dance Hall", +- ++ "Goa", ++ "Drum & Bass", ++ "Club-House", ++ "Hardcore", ++ "Terror", ++ "Indie", ++ "BritPop", ++ "Negerpunk", ++ "Polsk Punk", ++ "Beat", ++ "Christian G", ++ "Heavy Metal", ++ "Black Metal", ++ "Crossover", ++ "Contemporary C", ++ "Christian Rock", ++ "Merengue", ++ "Salsa", ++ "Thrash Metal", ++ "Anime", ++ "JPop", ++ "SynthPop" + }; + +-const int genre_count = 125; ++const int genre_count = 148; + + + #endif /* __GENRE_H__ */ +--- id3ren-1.1b0.orig/src/id3tag.c ++++ id3ren-1.1b0/src/id3tag.c +@@ -57,7 +57,7 @@ + + for (i=0, count=1, lines=1; i= 4) + { +@@ -105,7 +105,7 @@ + + if (i >= strlen(search_gen)) + { +- digit = (atoi(search_gen) - 1); ++ digit = atoi(search_gen); + + if (digit >= 0 && digit < genre_count) + { --- id3ren-1.1b0.orig/debian/patches/05_directory.dpatch +++ id3ren-1.1b0/debian/patches/05_directory.dpatch @@ -0,0 +1,126 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05_directory.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: 05_directory + +@DPATCH@ + +--- id3ren-1.1b0.orig/src/id3ren.c ++++ id3ren-1.1b0/src/id3ren.c +@@ -102,6 +102,7 @@ + + void exit_function (void); + void apply_template (char *); ++void sanitize(char *); + void show_usage (char *); + void check_num_args (int, int); + int read_config (char *, char *); +@@ -131,6 +132,8 @@ + applied_filename[0] = '\0'; + ptrNewfile = applied_filename; + ++ if (NULL != def_field) sanitize(def_field); ++ + while (filename_template[tcount] != '\0') + { + if (filename_template[tcount] == IDENT_CHAR) +@@ -140,39 +143,44 @@ + switch (filename_template[tcount]) + { + case 'a': +- if(strcmp(ptrtag->artist,"")!=0) ++ if(strcmp(ptrtag->artist,"")!=0) { ++ sanitize(ptrtag->artist); + strcat(applied_filename, ptrtag->artist); +- else if(def_field!=NULL) ++ } else if(def_field!=NULL) + strcat(applied_filename, def_field); + break; + case 'c': +- if(strcmp(ptrtag->u.v10.comment,"")!=0) ++ if(strcmp(ptrtag->u.v10.comment,"")!=0) { ++ sanitize(ptrtag->u.v10.comment); + strcat(applied_filename, ptrtag->u.v10.comment); +- else if(def_field!=NULL) ++ } else if(def_field!=NULL) + strcat(applied_filename, def_field); + break; + case 'g': +- if (ptrtag->genre < genre_count && ptrtag->genre >= 0) ++ if (ptrtag->genre < genre_count && ptrtag->genre >= 0) + strcat(applied_filename, genre_table[ptrtag->genre]); +- else if(def_field!=NULL) ++ else if(def_field!=NULL) + strcat(applied_filename, def_field); + break; + case 's': +- if(strcmp(ptrtag->songname,"")!=0) ++ if(strcmp(ptrtag->songname,"")!=0) { ++ sanitize(ptrtag->songname); + strcat(applied_filename, ptrtag->songname); +- else if(def_field!=NULL) ++ } else if(def_field!=NULL) + strcat(applied_filename, def_field); + break; + case 't': +- if(strcmp(ptrtag->album,"")!=0) ++ if(strcmp(ptrtag->album,"")!=0) { ++ sanitize(ptrtag->album); + strcat(applied_filename, ptrtag->album); +- else if(def_field!=NULL) ++ } else if(def_field!=NULL) + strcat(applied_filename, def_field); + break; + case 'y': +- if(strcmp(ptrtag->year,"")!=0) ++ if(strcmp(ptrtag->year,"")!=0) { ++ sanitize(ptrtag->year); + strcat(applied_filename, ptrtag->year); +- else if(def_field!=NULL) ++ } else if(def_field!=NULL) + strcat(applied_filename, def_field); + break; + case 'n': +@@ -249,26 +257,28 @@ + } + + *ptrNewfile = '\0'; ++} + ++void sanitize(char* string) ++{ ++ int i; + /* Convert illegal or bad filename characters to good characters */ +- for (i=0; i < strlen(applied_filename); i++) ++ for (i=0; i < strlen(string); i++) + { +- switch (applied_filename[i]) ++ switch (string[i]) + { +- case '<': applied_filename[i] = '['; break; +- case '>': applied_filename[i] = ']'; break; +- case '|': applied_filename[i] = '_'; break; +- // this is now used to create dirs +- //case '/': applied_filename[i] = '-'; break; +- case '\\': applied_filename[i]= '-'; break; +- case '*': applied_filename[i] = '_'; break; +- case '?': applied_filename[i] = '_'; break; +- case ':': applied_filename[i] = ';'; break; +- case '"': applied_filename[i] = '-'; break; ++ case '<': string[i] = '['; break; ++ case '>': string[i] = ']'; break; ++ case '|': string[i] = '_'; break; ++ case '/': string[i] = '-'; break; ++ case '\\': string[i]= '-'; break; ++ case '*': string[i] = '_'; break; ++ case '?': string[i] = '_'; break; ++ case ':': string[i] = ';'; break; ++ case '"': string[i] = '-'; break; + default: break; + } + } +- + } + + --- id3ren-1.1b0.orig/debian/rules +++ id3ren-1.1b0/debian/rules @@ -0,0 +1,72 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +.NOTPARALLEL: + +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + + +build: build-stamp +build-stamp: patch + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install DESTDIR=`pwd`/debian/id3ren + gunzip < man/id3ren.1.gz > man/id3ren.1 + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installmenu id3ren.1.gz + dh_installman man/id3ren.1 + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- id3ren-1.1b0.orig/debian/watch +++ id3ren-1.1b0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://cbothamy.free.fr/projects/id3ren/ (?:.*/)?id3ren-?_?(.*)\.tgz debian uupdate