commit cc3bee19c6c8fa4f596a83ab5688f3a5b4b41423
Author: Jakub Bogusz <[email protected]>
Date:   Mon Mar 27 17:17:01 2023 +0200

    - last version of xmms-input-flac plugin, built from flac 1.4.1 sources

 flac-xmms-only.patch | 52 ++++++++++++++++++++++++++++++++++
 xmms-input-flac.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 131 insertions(+)
---
diff --git a/xmms-input-flac.spec b/xmms-input-flac.spec
new file mode 100644
index 0000000..f4fd912
--- /dev/null
+++ b/xmms-input-flac.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_with    sse2            # SSE2 instructions
+
+%ifarch %{x8664} x32 pentium4
+%define        with_sse2       1
+%endif
+Summary:       Free Lossless Audio Codec - XMMS plugin
+Summary(pl.UTF-8):     Wtyczka FLAC dla XMMS
+Name:          xmms-input-flac
+# last version containing xmms plugin
+Version:       1.4.1
+Release:       1
+License:       GPL v2+
+Group:         Libraries
+Source0:       https://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz
+# Source0-md5: 835c44ca77c4674b9cdc5b24571306ce
+Patch0:                flac-xmms-only.patch
+URL:           https://xiph.org/flac/
+BuildRequires: autoconf >= 2.60
+BuildRequires: automake >= 1:1.11
+BuildRequires: doxygen
+BuildRequires: flac-devel >= 1.4.1
+# for AM_ICONV
+BuildRequires: gettext-tools
+BuildRequires: libogg-devel >= 2:1.0
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:2
+BuildRequires: rpmbuild(macros) >= 1.125
+BuildRequires: tar >= 1:1.22
+BuildRequires: xmms-devel >= 0.9.5.1
+BuildRequires: xz
+Requires:      flac >= 1.4.1
+Requires:      xmms >= 0.9.5.1
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+FLAC input plugin for XMMS.
+
+%description -l pl.UTF-8
+Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
+
+%prep
+%setup -q -n flac-%{version}
+%patch0 -p1
+
+%{__rm} m4/ogg.m4
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-examples \
+       --disable-silent-rules \
+       %{!?with_sse2:--disable-sse}
+
+# force using system FLAC headers
+%{__rm} -r include/FLAC*
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGELOG.md COPYING.Xiph README.md
+%attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so
diff --git a/flac-xmms-only.patch b/flac-xmms-only.patch
new file mode 100644
index 0000000..53b1890
--- /dev/null
+++ b/flac-xmms-only.patch
@@ -0,0 +1,52 @@
+--- flac-1.4.1/include/Makefile.am.orig        2022-09-01 16:41:44.790332694 
+0200
++++ flac-1.4.1/include/Makefile.am     2023-03-27 16:21:38.605145317 +0200
+@@ -20,4 +20,4 @@ if FLaC__WITH_CPPLIBS
+ CPPLIBS_DIRS = FLAC++
+ endif
+ 
+-SUBDIRS = FLAC $(CPPLIBS_DIRS) share test_libs_common
++SUBDIRS = share
+--- flac-1.4.1/Makefile.am.orig        2022-09-21 20:57:31.770347502 +0200
++++ flac-1.4.1/Makefile.am     2023-03-27 16:22:33.748179915 +0200
+@@ -31,7 +31,7 @@
+ 
+ ACLOCAL_AMFLAGS = -I m4
+ 
+-SUBDIRS = doc include m4 man src test microbench oss-fuzz
++SUBDIRS = include m4 src
+ 
+ if EXAMPLES
+ SUBDIRS += examples
+--- flac-1.4.1/src/Makefile.am.orig    2022-09-01 16:41:44.794332706 +0200
++++ flac-1.4.1/src/Makefile.am 2023-03-27 16:23:07.364664466 +0200
+@@ -29,17 +29,8 @@ PROGRAMS_DIRS = flac metaflac
+ endif
+ 
+ SUBDIRS = \
+-      libFLAC \
+       share \
+-      $(PROGRAMS_DIRS) \
+-      $(XMMS_DIRS) \
+-      test_grabbag \
+-      test_libs_common \
+-      test_libFLAC \
+-      test_seeking \
+-      test_streams \
+-      utils \
+-      $(CPPLIBS_DIRS)
++      $(XMMS_DIRS)
+ 
+ EXTRA_DIST = \
+       CMakeLists.txt
+--- flac-1.4.1/src/plugin_xmms/Makefile.am.orig        2022-09-01 
16:41:44.810332751 +0200
++++ flac-1.4.1/src/plugin_xmms/Makefile.am     2023-03-27 16:25:45.833805964 
+0200
+@@ -59,8 +59,7 @@ libxmms_flac_la_LIBADD = \
+       $(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la 
\
+       
$(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
+       $(top_builddir)/src/share/utf8/libutf8.la \
+-      $(top_builddir)/src/libFLAC/libFLAC.la \
+-      -L$(top_builddir)/src/libFLAC/.libs \
++      -lFLAC \
+       @XMMS_LIBS@ \
+       @LIBICONV@
+ libxmms_flac_la_LDFLAGS = -module -avoid-version
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xmms-input-flac.git/commitdiff/cc3bee19c6c8fa4f596a83ab5688f3a5b4b41423

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to