[packages/normalize] - rel 3, fix build and rebuild outdated configure
baggins
baggins at pld-linux.org
Sun May 31 23:51:59 CEST 2026
commit 39915b352c522d8d0a0abf1f33f7dca37d9a2f6a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun May 31 23:51:25 2026 +0200
- rel 3, fix build and rebuild outdated configure
ftruncate.patch | 28 ++++++++++++++++++++++++++++
normalize.spec | 6 ++++--
2 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/normalize.spec b/normalize.spec
index d3075fd..b767118 100644
--- a/normalize.spec
+++ b/normalize.spec
@@ -6,11 +6,12 @@ Summary: A WAV and MP3 file volume adjuster
Summary(pl.UTF-8): Korektor poziomu głośności w plikach WAV i MP3
Name: normalize
Version: 0.7.7
-Release: 2
+Release: 3
License: GPL v2+
Group: Applications/Sound
Source0: http://savannah.nongnu.org/download/normalize/%{name}-%{version}.tar.bz2
# Source0-md5: 1749b16fc7a08aa5d0cf9f76eeaa8436
+Patch0: ftruncate.patch
URL: http://normalize.nongnu.org/
BuildRequires: automake
BuildRequires: gettext-tools
@@ -58,10 +59,11 @@ informacji o dostrojeniu głośności (ramek RVA2 w znacznikach ID3v2).
%prep
%setup -q
+%patch -P0 -p1
%build
cp -f /usr/share/automake/config.sub config
-
+%{__autoconf}
%configure \
--with-mad \
%{!?with_xmms:--disable-xmms} \
diff --git a/ftruncate.patch b/ftruncate.patch
new file mode 100644
index 0000000..5640513
--- /dev/null
+++ b/ftruncate.patch
@@ -0,0 +1,28 @@
+--- normalize-0.7.7/nid3lib/write.c.orig 2005-09-09 23:41:39.000000000 +0200
++++ normalize-0.7.7/nid3lib/write.c 2026-05-31 23:49:22.221272470 +0200
+@@ -20,7 +20,7 @@
+ * id3_write(), and many helper functions.
+ */
+
+-#define _POSIX_C_SOURCE 2
++#define _POSIX_C_SOURCE 200112L
+
+ #include "config.h"
+
+@@ -59,14 +59,8 @@
+ #if HAVE_INTTYPES_H
+ # include <inttypes.h>
+ #endif
+-#if HAVE_FTRUNCATE
+-/*
+- * ftruncate() shouldn't be declared yet, since we turn on
+- * _POSIX_C_SOURCE, but you never know, so we use an old style
+- * declaration to lessen the chance of conflict.
+- */
+-int ftruncate();
+-#endif
++#include <unistd.h>
++#include <sys/types.h>
+
+ #include "nid3P.h"
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/normalize.git/commitdiff/39915b352c522d8d0a0abf1f33f7dca37d9a2f6a
More information about the pld-cvs-commit
mailing list