Compare commits
10 Commits
401cfe8fd4
...
505478beda
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
505478beda | ||
|
|
7fc707cd53 | ||
|
|
1741d1d340 | ||
|
|
e60938e189 | ||
|
|
25c630bbac | ||
|
|
0c4ac74c35 | ||
|
|
60fb7053c2 | ||
|
|
4e565eadc9 | ||
|
|
6a63184357 | ||
|
|
bec66cf020 |
@ -1,24 +0,0 @@
|
||||
--- xmms-1.2.10/General/ir/ir.h.orig 2001-03-05 23:17:44.000000000 +1000
|
||||
+++ xmms-1.2.10/General/ir/ir.h 2005-03-24 20:48:31.000000000 +1000
|
||||
@@ -49,8 +49,6 @@
|
||||
}
|
||||
irConfig;
|
||||
|
||||
-extern pthread_t irapp_thread;
|
||||
-extern gboolean keepGoing;
|
||||
extern irConfig ircfg;
|
||||
extern gboolean irconf_is_going;
|
||||
|
||||
--- xmms-1.2.10/xmms/sm.c.orig 2004-01-11 18:33:00.000000000 +0100
|
||||
+++ xmms-1.2.10/xmms/sm.c 2004-04-12 22:44:28.000000000 +0200
|
||||
@@ -147,8 +147,9 @@
|
||||
|
||||
#else
|
||||
|
||||
-void sm_init(int argc, char **argv, const char *previous_session_id)
|
||||
+const char * sm_init(int argc, char **argv, const char *previous_session_id)
|
||||
{
|
||||
+ return NULL;
|
||||
}
|
||||
|
||||
void sm_cleanup(void)
|
||||
57
xmms-1.2.11-20071117cvs-sw.patch
Executable file
57
xmms-1.2.11-20071117cvs-sw.patch
Executable file
@ -0,0 +1,57 @@
|
||||
diff -Naur xmms-1.2.11-20071117cvs.org/aclocal.m4 xmms-1.2.11-20071117cvs.sw/aclocal.m4
|
||||
--- xmms-1.2.11-20071117cvs.org/aclocal.m4 2022-03-03 02:55:30.470000000 +0000
|
||||
+++ xmms-1.2.11-20071117cvs.sw/aclocal.m4 2022-03-03 02:56:24.740000000 +0000
|
||||
@@ -1532,7 +1532,7 @@
|
||||
[
|
||||
# Guess based on the CPU.
|
||||
case "$host_cpu" in
|
||||
- alpha* | i[34567]86 | m68k | s390*)
|
||||
+ sw_64* | alpha* | i[34567]86 | m68k | s390*)
|
||||
gt_cv_int_divbyzero_sigfpe="guessing yes";;
|
||||
*)
|
||||
gt_cv_int_divbyzero_sigfpe="guessing no";;
|
||||
diff -Naur xmms-1.2.11-20071117cvs.org/configure xmms-1.2.11-20071117cvs.sw/configure
|
||||
--- xmms-1.2.11-20071117cvs.org/configure 2022-03-03 02:55:30.570000000 +0000
|
||||
+++ xmms-1.2.11-20071117cvs.sw/configure 2022-03-03 02:58:09.280000000 +0000
|
||||
@@ -25421,7 +25421,7 @@
|
||||
|
||||
# Guess based on the CPU.
|
||||
case "$host_cpu" in
|
||||
- alpha* | i3456786 | m68k | s390*)
|
||||
+ sw_64* | alpha* | i3456786 | m68k | s390*)
|
||||
gt_cv_int_divbyzero_sigfpe="guessing yes";;
|
||||
*)
|
||||
gt_cv_int_divbyzero_sigfpe="guessing no";;
|
||||
@@ -33336,7 +33336,7 @@
|
||||
*) CFLAGS="$CFLAGS -fomit-frame-pointer" ;;
|
||||
esac
|
||||
case "$host" in
|
||||
- alpha*-*-freebsd*)
|
||||
+ alpha*-*-freebsd* | sw_64*-*-freebsd*)
|
||||
;;
|
||||
*-*-freebsd*)
|
||||
CFLAGS="$CFLAGS -ffast-math"
|
||||
diff -Naur xmms-1.2.11-20071117cvs.org/configure.in xmms-1.2.11-20071117cvs.sw/configure.in
|
||||
--- xmms-1.2.11-20071117cvs.org/configure.in 2022-03-03 02:55:30.530000000 +0000
|
||||
+++ xmms-1.2.11-20071117cvs.sw/configure.in 2022-03-03 02:59:20.030000000 +0000
|
||||
@@ -516,7 +516,7 @@
|
||||
*) CFLAGS="$CFLAGS -fomit-frame-pointer" ;;
|
||||
esac
|
||||
case "$host" in
|
||||
- alpha*-*-freebsd*)
|
||||
+ alpha*-*-freebsd* | sw_64*-*-freebsd*)
|
||||
;;
|
||||
*-*-freebsd*)
|
||||
CFLAGS="$CFLAGS -ffast-math"
|
||||
diff -Naur xmms-1.2.11-20071117cvs.org/intl/dcigettext.c xmms-1.2.11-20071117cvs.sw/intl/dcigettext.c
|
||||
--- xmms-1.2.11-20071117cvs.org/intl/dcigettext.c 2022-03-03 02:55:30.550000000 +0000
|
||||
+++ xmms-1.2.11-20071117cvs.sw/intl/dcigettext.c 2022-03-03 02:59:00.130000000 +0000
|
||||
@@ -72,7 +72,7 @@
|
||||
#ifdef _LIBC
|
||||
/* Guess whether integer division by zero raises signal SIGFPE.
|
||||
Set to 1 only if you know for sure. In case of doubt, set to 0. */
|
||||
-# if defined __alpha__ || defined __arm__ || defined __i386__ \
|
||||
+# if defined __alpha__ || defined __sw_64__ || defined __arm__ || defined __i386__ \
|
||||
|| defined __m68k__ || defined __s390__
|
||||
# define INTDIV0_RAISES_SIGFPE 1
|
||||
# else
|
||||
@ -1,77 +0,0 @@
|
||||
--- xmms-1.2.11-20071117cvs/xmms/main.c 2008-09-02 19:08:34.000000000 +0100
|
||||
+++ xmms-1.2.11-20071117cvs/xmms/main-new.c 2008-09-02 19:16:29.000000000 +0100
|
||||
@@ -307,6 +307,40 @@
|
||||
sizeof(mainwin_general_menu_entries) /
|
||||
sizeof(mainwin_general_menu_entries[0]);
|
||||
|
||||
+#include <kde/artsc/artsc.h>
|
||||
+#include <dlfcn.h>
|
||||
+
|
||||
+/* dlopen libarts, for seeing if we should use this as the default plugin. */
|
||||
+static int arts_running(void) {
|
||||
+ void *arts_handle;
|
||||
+ int (*a_init)(void);
|
||||
+ void (*a_close)(void);
|
||||
+ int ret = 0;
|
||||
+
|
||||
+ arts_handle = dlopen("libartsc.so.0", RTLD_NOW);
|
||||
+ if (!arts_handle)
|
||||
+ return 0;
|
||||
+
|
||||
+ a_init = dlsym(arts_handle, "arts_init");
|
||||
+ a_close = dlsym(arts_handle, "arts_free");
|
||||
+ if (!a_init || !a_close) {
|
||||
+ dlclose(arts_handle);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ signal(SIGPIPE, SIG_DFL);
|
||||
+ if ((*a_init)() == 0) {
|
||||
+ ret = 1;
|
||||
+ /* there are problems with library unloading in conjunction with X11, */
|
||||
+ /* (Arts::X11GlobalComm), so we don't unload stuff here */
|
||||
+ /* (*a_close)(); */
|
||||
+ }
|
||||
+ signal(SIGPIPE, SIG_IGN);
|
||||
+ dlclose(arts_handle);
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+
|
||||
static void make_xmms_dir(void)
|
||||
{
|
||||
gchar *filename;
|
||||
@@ -503,6 +537,19 @@
|
||||
cfg.skin = g_strdup("/usr/share/xmms/Skins/Bluecurve-xmms.zip");
|
||||
if (cfg.outputplugin == NULL)
|
||||
{
|
||||
+ /* If aRts is running and the plugin is there, use that... */
|
||||
+ if (arts_running())
|
||||
+ {
|
||||
+ cfg.outputplugin = g_strdup_printf("%s/%s/libarts.so", PLUGIN_DIR, plugin_dir_list[0]);
|
||||
+ if (access(cfg.outputplugin, X_OK))
|
||||
+ {
|
||||
+ g_free(cfg.outputplugin);
|
||||
+ cfg.outputplugin = NULL;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ if (cfg.outputplugin == NULL)
|
||||
+ {
|
||||
#ifdef HAVE_OSS
|
||||
cfg.outputplugin = g_strdup_printf("%s/%s/libALSA.so", PLUGIN_DIR, plugin_dir_list[0]);
|
||||
#elif defined(sun)
|
||||
@@ -515,6 +562,13 @@
|
||||
cfg.outputplugin = g_strdup("");
|
||||
#endif
|
||||
}
|
||||
+ /* Migrate users of the previous arts plugin */
|
||||
+ if (!strcmp(g_basename(cfg.outputplugin),"libartsout.so")) {
|
||||
+ if (access(cfg.outputplugin,X_OK)) {
|
||||
+ g_free(cfg.outputplugin);
|
||||
+ cfg.outputplugin = g_strdup_printf("%s/%s/libarts.so", PLUGIN_DIR, plugin_dir_list[0]);
|
||||
+ }
|
||||
+ }
|
||||
if (cfg.eqpreset_default_file == NULL)
|
||||
cfg.eqpreset_default_file = g_strdup("dir_default.preset");
|
||||
if (cfg.eqpreset_extension == NULL)
|
||||
20
xmms.spec
20
xmms.spec
@ -1,7 +1,7 @@
|
||||
Name: xmms
|
||||
Epoch: 1
|
||||
Version: 1.2.11
|
||||
Release: 39.20071117cvs
|
||||
Release: 43.20071117cvs
|
||||
License: GPLv2+
|
||||
Summary: XMMS is a legacy GTK+1 music player modeled after Winamp
|
||||
URL: https://git.conf.top/public/rpmbuild/src/master/xmms
|
||||
@ -13,7 +13,7 @@ Source4: xmms.desktop
|
||||
Provides: xmms-esd = 1:%{version}-%{release} xmms-gui bundled(libmpg123) xmms-mp3 = %{version}-%{release} xmms-libs = 1:%{version}-%{release}
|
||||
Obsoletes: xmms-esd < 1:18.20071117cvs xmms-mp3 < 1.2.11-8 xmms-libs < 1:%{version}-%{release}
|
||||
BuildRequires: gtk+-devel alsa-lib-devel libogg-devel libvorbis-devel mikmod-devel gettext-devel
|
||||
BuildRequires: zlib-devel libGL-devel libXt-devel libSM-devel libXxf86vm-devel desktop-file-utils
|
||||
BuildRequires: zlib-devel libGL-devel libXt-devel libSM-devel libXxf86vm-devel desktop-file-utils gcc chrpath
|
||||
Requires: unzip libcanberra-gtk2 gtk2
|
||||
Requires(post): desktop-file-utils
|
||||
Requires(postun): desktop-file-utils
|
||||
@ -34,6 +34,7 @@ Patch0013: xmms-alsa-fix-loop.patch
|
||||
Patch0014: xmms-1.2.11-mikmod-fix.patch
|
||||
Patch0015: xmms-1.2.11-a-b.patch
|
||||
Patch9000: 9000-add-stack-protector-for-build.patch
|
||||
Patch9001: xmms-1.2.11-20071117cvs-sw.patch
|
||||
|
||||
%description
|
||||
XMMS is a legacy GTK+1 music player similar to Winamp's. XMMS supports
|
||||
@ -57,6 +58,7 @@ Help document for XMMS.
|
||||
%prep
|
||||
%autosetup -n xmms-%{version}-20071117cvs -a3 -p1
|
||||
sed -i -e 's|"/lib /usr/lib"|"/%{_lib} %{_libdir}"|' configure
|
||||
install -p -m 0644 /usr/lib/rpm/mkinstalldirs mkinstalldirs
|
||||
%build
|
||||
%configure --disable-dependency-tracking --enable-kanji --enable-texthack --enable-ipv6 --with-pic --disable-esd
|
||||
%make_build
|
||||
@ -74,6 +76,8 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE4}
|
||||
install -Dpm 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/xmms.xpm
|
||||
install -Dpm 644 xmms.pc %{buildroot}%{_libdir}/pkgconfig/xmms.pc
|
||||
%find_lang xmms
|
||||
chrpath -d %{buildroot}/%{_libexecdir}/*
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%postun
|
||||
@ -100,6 +104,18 @@ install -Dpm 644 xmms.pc %{buildroot}%{_libdir}/pkgconfig/xmms.pc
|
||||
%{_mandir}/man1/*xmms.1*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 12 2024 wangkai <13474090681@163.com> - 1:1.2.11-43.20071117cvs
|
||||
- Remove rpath
|
||||
|
||||
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 1:1.2.11-42.20071117cvs
|
||||
- Add sw64 architecture
|
||||
|
||||
* Thu Jan 13 2022 Chen Chen <chen_aka_jan@163.com> - 1:1.2.11-41.20071117cvs
|
||||
- fix mkinstalldirs path error
|
||||
|
||||
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1:1.2.11-40.20071117cvs
|
||||
- Completing build dependencies to fix gcc compiler missing error
|
||||
|
||||
* Tue Mar 17 2020 Ling Yang <lingyang2@huawei.com> - 1:1.2.11-39.20071117cvs
|
||||
- Add stack protector for building
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user