mkcue 1.8-1 (znver1;aarch64;x86_64) 2025-17899
0

Status rejected
Submitter rugyada [@T] gmail.com
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/521766
Packages
mkcue-1.8-1.znver1.source
mkcue-1.8-1.znver1.binary
mkcue-debuginfo-1.8-1.znver1.debuginfo
mkcue-debugsource-1.8-1.znver1.binary
mkcue-1.8-1.aarch64.source
mkcue-1.8-1.aarch64.binary
mkcue-debuginfo-1.8-1.aarch64.debuginfo
mkcue-debugsource-1.8-1.aarch64.binary
mkcue-1.8-1.x86_64.source
mkcue-1.8-1.x86_64.binary
mkcue-debuginfo-1.8-1.x86_64.debuginfo
mkcue-debugsource-1.8-1.x86_64.binary
Build Date 2025-05-04 11:51:29 +0000 UTC
Last Updated 2025-05-07 11:46:19.136458027 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 4c84682b3cd96a420499bb934c6c77e7e35c73ca

commit 4c84682b3cd96a420499bb934c6c77e7e35c73ca
Author:     uro <uro@urogaming.co.uk>
AuthorDate: Sun May 4 01:47:03 2025 +0100
Commit:     uro <uro@urogaming.co.uk>
CommitDate: Sun May 4 01:47:03 2025 +0100

    initial commit mkcue 1.8
---
 .abf.yml              |  3 ++
 mkcue-1-8-fixes.patch | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++
 mkcue.spec            | 57 ++++++++++++++++++++++++++++++++++
 3 files changed, 146 insertions(+)
 create mode 100644 .abf.yml
 create mode 100644 mkcue-1-8-fixes.patch
 create mode 100644 mkcue.spec

diff --git a/.abf.yml b/.abf.yml
new file mode 100644
index 0000000..69b837a
--- /dev/null
+++ b/.abf.yml
@@ -0,0 +1,3 @@
+sources:
+  mkcue_1.orig.tar.gz: d9a69718ba3d862b589588bdf61796f755200f9d
+  mkcue_1-8.debian.tar.xz: 9b5219e051ce0a99c51afc35fd78791a8e8c469b
diff --git a/mkcue-1-8-fixes.patch b/mkcue-1-8-fixes.patch
new file mode 100644
index 0000000..bb658e1
--- /dev/null
+++ b/mkcue-1-8-fixes.patch
@@ -0,0 +1,86 @@
+diff -urN mkcue-1.orig/diskid.cc mkcue-1.orig-fixes/diskid.cc
+--- mkcue-1.orig/diskid.cc	2004-10-23 03:19:22.000000000 +0100
++++ mkcue-1.orig-fixes/diskid.cc	2025-05-03 20:36:21.928182396 +0100
+@@ -46,7 +46,7 @@
+ {
+ }
+ 
+-void DiskId::ReportError(char *err)
++void DiskId::ReportError(const char *err)
+ {
+    m_errorMsg = string(err);
+ }
+diff -urN mkcue-1.orig/diskid.h mkcue-1.orig-fixes/diskid.h
+--- mkcue-1.orig/diskid.h	2004-10-23 03:19:22.000000000 +0100
++++ mkcue-1.orig-fixes/diskid.h	2025-05-03 20:35:19.799509064 +0100
+@@ -28,8 +28,6 @@
+ 
+ #include <string>
+ 
+-using namespace std;
+-
+ //
+ //  platform specific stuff
+ //
+@@ -83,7 +81,7 @@
+ 
+ //                 DiskId(void);
+ 
+-        void  ReportError(char *err);
++        void  ReportError(const char *err);
+ 
+         // This function is OS dependent, and will be implemented by
+         // one of the modules in the osdep dir.
+diff -urN mkcue-1.orig/GNUmakefile.in mkcue-1.orig-fixes/GNUmakefile.in
+--- mkcue-1.orig/GNUmakefile.in	2004-10-27 07:38:57.000000000 +0100
++++ mkcue-1.orig-fixes/GNUmakefile.in	2025-05-03 20:35:14.391427642 +0100
+@@ -54,7 +54,7 @@
+ all: mkcue
+ 
+ mkcue: mkcue.o mb.o
+-	${CXX} -o $@ mkcue.o mb.o
++	${CXX} -o $@ mkcue.o mb.o ${LDFLAGS}
+ 
+ clean:
+ 	rm -f mkcue *.o
+diff -urN mkcue-1.orig/mkcue.cc mkcue-1.orig-fixes/mkcue.cc
+--- mkcue-1.orig/mkcue.cc	2004-10-27 07:20:30.000000000 +0100
++++ mkcue-1.orig-fixes/mkcue.cc	2025-05-03 20:42:20.428107780 +0100
+@@ -12,8 +12,11 @@
+ 
+ #include "diskid.h"
+ 
++/* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439790 */
++#define MSF_OFFSET 150
++
+ void
+-DiskId::ReportError(char *err)
++DiskId::ReportError(const char *err)
+ {
+     fprintf(stderr, "%s\n", err);
+     exit(2);
+@@ -58,12 +61,10 @@
+     puts("    INDEX 01 00:00:00");
+ 
+ #define min(x, y) ((x) < (y) ? (x) : (y))
+-    for (track = cdinfo.FirstTrack + 1;
++    for (track = cdinfo.FirstTrack;
+          track <= min(trackcount, cdinfo.LastTrack);
+          track++) {
+-        /* There is frequently (always?) an offset of 150 sectors, so
+-         * subtract the first track's offset. */
+-        cdinfo.FrameOffset[track] -= cdinfo.FrameOffset[1];
++        cdinfo.FrameOffset[track] -= MSF_OFFSET;
+ 
+         minutes = seconds = sectors = 0;
+         sectors = cdinfo.FrameOffset[track] % 75;
+@@ -76,6 +77,9 @@
+         }
+ 
+         printf("  TRACK %02d AUDIO\n", track);
++        if (track == 1 && cdinfo.FrameOffset[track] > 0) {
++            printf("    INDEX 00 00:00:00\n");
++        }
+         printf("    INDEX 01 %02d:%02d:%02d\n", minutes, seconds, sectors);
+     }
+ 
diff --git a/mkcue.spec b/mkcue.spec
new file mode 100644
index 0000000..aa4b570
--- /dev/null
+++ b/mkcue.spec
@@ -0,0 +1,57 @@
+%define oname mkcue-1
+
+Name:		mkcue
+Version:	1.8
+Release:	1
+License:	LGPL-2.1-or-later
+Group:		Sound/Utilities
+Summary:	Generates cue sheets from a CD's TOC (Table Of Contents)
+URL:		https://diplodocus.org/projects/audio/
+# Currently maintained at https://tracker.debian.org/pkg/mkcue
+Source0:	https://httpredir.debian.org/debian/pool/main/m/mkcue/mkcue_1.orig.tar.gz
+Source1:	https://httpredir.debian.org/debian/pool/main/m/mkcue/mkcue_1-8.debian.tar.xz
+# All the upstream mkcue_-1-8 patches rolled into one.
+Patch0:		mkcue-1-8-fixes.patch
+
+BuildRequires:	autoconf automake slibtool
+BuildRequires:	make
+Suggests:	abcde
+
+%description
+mkcue generates cue sheets from a CD's TOC (Table Of Contents).
+
+It uses code borrowed from the MusicBrainz client library,
+and is thus released under the terms of the GNU GPL.
+
+Usage is quite simple.  By default, list all tracks from /dev/cdrom in
+the cue sheet.  An optional device argument overrides /dev/cdrom.
+
+The -t track-count option only lists up to track-count tracks in the cue
+sheet, which is handy for CDs with data tracks you want to ignore.
+
+It is a perfect companion for abcde to generate backups of your audio CDs
+using the FLAC codec and the single track option.
+
+%prep
+%setup -q -n %{oname}.orig -a1
+%autopatch -p1
+
+%build
+export DESTDIR=%{buildroot}%{_bindir}
+%ifarch aarch64
+./configure --prefix=/usr --build=aarch64-unknown-linux-gnu
+%else
+./configure --prefix=/usr
+%endif
+%make_build all
+
+%install
+export DESTDIR=%{buildroot}%{_bindir}
+export bindir=%{_bindir}
+install -D mkcue %{buildroot}%{_bindir}/mkcue
+
+%files
+%{_bindir}/%{name}
+%doc README
+%doc debian/changelog
+%license COPYING debian/copyright
\ No newline at end of file
Not Available

rugyada [@T] gmail.comNo Comment.25d 02hrs