diff --git a/.cvsignore b/.cvsignore index e69de29..c6303cc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +modplugtools-0.5.0.tar.gz diff --git a/0002-Fix-format-string-related-issues.patch b/0002-Fix-format-string-related-issues.patch new file mode 100644 index 0000000..64e9046 --- /dev/null +++ b/0002-Fix-format-string-related-issues.patch @@ -0,0 +1,78 @@ +From b99b42bb1ddf9966920924c675e8cdcae9fb0ae8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ville=20Skytt=C3=A4?= +Date: Mon, 21 Jun 2010 09:38:37 +0300 +Subject: [PATCH 2/3] Fix format string related issues. + +--- + modplug-tools/mp123/modplug123.c | 9 ++++----- + modplug-tools/mpplay/modplugplay.c | 6 +++--- + 2 files changed, 7 insertions(+), 8 deletions(-) + +diff --git a/modplug-tools/mp123/modplug123.c b/modplug-tools/mp123/modplug123.c +index 7acf930..8c8d411 100644 +--- a/modplug-tools/mp123/modplug123.c ++++ b/modplug-tools/mp123/modplug123.c +@@ -94,7 +94,6 @@ command line option handling + static struct termios stored_settings; + int audio_fd, mixer_fd; + unsigned char audio_buffer[BUF_SIZE]; +-char order[3]; + + typedef struct { + int x, y; +@@ -317,7 +316,7 @@ for (song=1; song +Date: Mon, 21 Jun 2010 09:41:53 +0300 +Subject: [PATCH 3/3] Usage message/--help/-h fixes. + +Fixes exit status, gets rid of spurious "too few arguments" and fixes +program name in output. +--- + modplug-tools/mp123/modplug123.c | 16 ++++++++-------- + modplug-tools/mpplay/modplugplay.c | 16 ++++++++-------- + 2 files changed, 16 insertions(+), 16 deletions(-) + +diff --git a/modplug-tools/mp123/modplug123.c b/modplug-tools/mp123/modplug123.c +index 8c8d411..ffa10bb 100644 +--- a/modplug-tools/mp123/modplug123.c ++++ b/modplug-tools/mp123/modplug123.c +@@ -163,13 +163,14 @@ void versioninfo() + printf("Version %s compiled on %s at %s.\n",VERSION,__DATE__,__TIME__); + } + +-void help(char *s) ++void help(char *s, int exitcode) + { + printf("Copyright (C) 2003 Gürkan Sengün\n"); + printf("Version %s compiled on %s at %s.\n",VERSION,__DATE__,__TIME__); + printf("\n"); +- printf("%s: too few arguments\n",s); +- printf("Usage: modplugplay" /*[OPTIONS]*/" [FILES]\n"); ++ if (exitcode!=0) ++ printf("%s: too few arguments\n",s); ++ printf("Usage: %s" /*[OPTIONS]*/" [FILES]\n",s); + printf("\n"); + + printf(" -v/--version print version info\n"); +@@ -181,7 +182,7 @@ void help(char *s) + printf(" -i use stdin for file input\n"); + printf(" -q be quiet\n"); + */ +- exit(1); ++ exit(exitcode); + } + + char *getFileData(char *filename, long *size) +@@ -265,7 +266,7 @@ int main(int argc, char* argv[]) + pollfds.events = POLLIN; /* Wait for input */ + + if (argc==1) { +- help(argv[0]); ++ help(argv[0],1); + } + + if (!get_term_size(STDIN_FILENO,&terminal)) { +@@ -280,7 +281,7 @@ for (song=1; song= 0.8.0 +BuildRequires: alsa-oss-devel +Obsoletes: modplugplay < 2.06 +Provides: modplugplay = 1:%{version}-%{release} + +%description +%{summary}. + + +%prep +%setup -q +if ! pkg-config --atleast-version 0.8.8 libmodplug ; then +%patch0 -p1 +fi +%patch1 -p1 +%patch2 -p2 +%patch3 -p2 + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README TODO +%{_bindir}/modplug123 +%{_bindir}/modplugplay + + +%changelog +* Mon Jun 21 2010 Ville Skyttä - 0.5.0-2 +- Patch to fix --help related issues (#600835). +- Patch to fix format string issues (#600835). +- License: GPLv3 (per the AUTHORS file) (#600835). + +* Sat May 8 2010 Ville Skyttä - 0.5.0-1 +- First build. diff --git a/sources b/sources index e69de29..d085678 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d41699c9a2a662f2191200ddef5678b0 modplugtools-0.5.0.tar.gz