[packages/xmms-general-goodnight] Rel 4

arekm arekm at pld-linux.org
Sun Mar 15 18:26:50 CET 2026


commit c7aa7d2d7d1faf0910e9bb3c8940cc5d788f9b37
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 18:26:43 2026 +0100

    Rel 4

 xmms-general-goodnight-unistd.patch | 15 +++++++++++++++
 xmms-general-goodnight.spec         | 12 +++++++++---
 2 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/xmms-general-goodnight.spec b/xmms-general-goodnight.spec
index 583c36a..25bfaa1 100644
--- a/xmms-general-goodnight.spec
+++ b/xmms-general-goodnight.spec
@@ -2,11 +2,12 @@ Summary:	An XMMS plugin to stop playing/quit XMMS/suspend/shutdown at a given ti
 Summary(pl.UTF-8):	Wtyczka wyłączająca XMMS o określonej porze
 Name:		xmms-general-goodnight
 Version:	0.3.2
-Release:	3
+Release:	4
 License:	GPL v2
 Group:		X11/Applications/Sound
 Source0:	http://fiktiv.szgtikol.kando.hu/~folti/src/xmms-goodnight-%{version}.tar.gz
 # Source0-md5:	4a26d272917f034ef18525fa33af9885
+Patch0:		%{name}-unistd.patch
 URL:		http://fiktiv.szgtikol.kando.hu/~folti/src/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -24,13 +25,18 @@ Wtyczka wyłączająca XMMS o określonej porze.
 
 %prep
 %setup -q -n xmms-goodnight-%{version}
+%patch -P0 -p1
 
 %build
 rm -f missing
 %{__aclocal}
 %{__autoconf}
-%configure
-%{__make}
+%configure \
+	CFLAGS="%{rpmcflags} -fPIC" \
+	CPPFLAGS="%{rpmcppflags}" \
+	LDFLAGS="%{rpmldflags}"
+%{__make} \
+	CFLAGS="%{rpmcflags} -fPIC `xmms-config --cflags` -DHAVE_CONFIG_H -DVERSION=\\\"%{version}\\\""
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/xmms-general-goodnight-unistd.patch b/xmms-general-goodnight-unistd.patch
new file mode 100644
index 0000000..db8727f
--- /dev/null
+++ b/xmms-general-goodnight-unistd.patch
@@ -0,0 +1,15 @@
+Include unistd.h for sleep().
+
+Modern compilers reject the implicit declaration; the plugin uses the
+standard POSIX declaration from unistd.h.
+
+--- a/goodnight.c
++++ b/goodnight.c
+@@ -23,6 +23,7 @@
+ #include <signal.h>
+ #include <time.h>
+ #include <pthread.h>
++#include <unistd.h>
+ #include <glib.h>
+ #include <gtk/gtk.h>
+ #include <string.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xmms-general-goodnight.git/commitdiff/c7aa7d2d7d1faf0910e9bb3c8940cc5d788f9b37



More information about the pld-cvs-commit mailing list