diff --git a/flac-1.3.4.tar.xz b/flac-1.3.4.tar.xz deleted file mode 100644 index 9baf217..0000000 Binary files a/flac-1.3.4.tar.xz and /dev/null differ diff --git a/flac-1.3.4-sw.patch b/flac-1.4.2-sw.patch similarity index 53% rename from flac-1.3.4-sw.patch rename to flac-1.4.2-sw.patch index 588d97b..2d46be4 100755 --- a/flac-1.3.4-sw.patch +++ b/flac-1.4.2-sw.patch @@ -1,6 +1,6 @@ -diff -Nuar flac-1.3.4.org/m4/endian.m4 flac-1.3.4.sw/m4/endian.m4 ---- flac-1.3.4.org/m4/endian.m4 2022-03-03 02:53:08.140000000 +0000 -+++ flac-1.3.4.sw/m4/endian.m4 2022-03-03 02:54:44.740000000 +0000 +diff -Nuar flac-1.4.2.org/m4/endian.m4 flac-1.4.2.sw/m4/endian.m4 +--- flac-1.4.2.org/m4/endian.m4 2022-03-03 02:53:08.140000000 +0000 ++++ flac-1.4.2.sw/m4/endian.m4 2022-03-03 02:54:44.740000000 +0000 @@ -115,7 +115,7 @@ # by looking at the target CPU type. [ diff --git a/flac-1.4.2.tar.xz b/flac-1.4.2.tar.xz new file mode 100644 index 0000000..f6d9f14 Binary files /dev/null and b/flac-1.4.2.tar.xz differ diff --git a/flac.spec b/flac.spec index fbe87e2..a4c7413 100644 --- a/flac.spec +++ b/flac.spec @@ -1,7 +1,5 @@ -%define xmms_inputdir %(xmms-config --input-plugin-dir 2>/dev/null || echo %{_libdir}/xmms/General) - Name: flac -Version: 1.3.4 +Version: 1.4.2 Release: 1 Summary: encoder/decoder which support the Free Lossless Audio Codec License: BSD and GPLv2+ and GFDL @@ -9,15 +7,14 @@ Source0: http://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz URL: http://www.xiph.org/flac/ %ifarch sw_64 -Patch0000: flac-1.3.4-sw.patch +Patch0001: flac-1.4.2-sw.patch %endif Provides: %{name}-libs Obsoletes: %{name}-libs BuildRequires: gcc-c++ libogg-devel gcc automake autoconf libtool gettext-devel doxygen -BuildRequires: xmms-devel desktop-file-utils -Source1: xmms-flac.desktop +BuildRequires: desktop-file-utils %description FLAC stands for Free Lossless Audio Codec, an audio format similar to MP3, @@ -31,17 +28,6 @@ Requires: flac %description devel FLAC libraries and header files for development. -%package -n xmms-flac -Summary: XMMS plugin needed to play FLAC files -License: GPLv2+ -Requires(post): desktop-file-utils -Requires(postun): desktop-file-utils - -%description -n xmms-flac -This package contains an XMMS input plugin to play FLAC audio streams. It also -provides symlinks for it to work with Beep Media Player, since plugins between -the two players are interchangeable. - %package help Summary: help package for %{name} with man docs @@ -54,34 +40,25 @@ document files for %{name} ./autogen.sh -V export CFLAGS="%{optflags} -funroll-loops" -%configure --enable-xmms-plugin --disable-silent-rules --disable-thorough-tests +%configure --disable-silent-rules --disable-thorough-tests make %install %make_install -desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} - mv %{buildroot}%{_docdir}/flac* ./flac-doc mkdir -p flac-doc-devel mv flac-doc{/api,-devel} -rm flac-doc/FLAC.tag %{buildroot}%{_libdir}/*.la \ -%{buildroot}%{xmms_inputdir}/*.la +rm flac-doc/FLAC.tag %{buildroot}%{_libdir}/*.la %check #make -C test check FLAC__TEST_LEVEL=0 &> /dev/null %ldconfig_scriptlets libs -%post -n xmms-flac -update-desktop-database &> /dev/null || : - -%postun -n xmms-flac -update-desktop-database &> /dev/null || : - %files -%doc flac-doc/* AUTHORS COPYING* README +%doc flac-doc/* AUTHORS COPYING* README.md %{_bindir}/flac %{_bindir}/metaflac %{_libdir}/*.so.* @@ -92,16 +69,14 @@ update-desktop-database &> /dev/null || : %{_libdir}/pkgconfig/* %{_datadir}/aclocal/*.m4 -%files -n xmms-flac -%license COPYING.GPL -%{_datadir}/applications/xmms-flac.desktop -%{xmms_inputdir}/libxmms-flac.so - %files help %{_mandir}/man1/* %doc flac-doc-devel/* %changelog +* Mon Jan 30 2023 chenhaixiang - 1.4.2-1 +- update to 1.4.2 + * Wed Nov 9 2022 chenhaixiang - 1.3.4-1 - update to 1.3.4 diff --git a/xmms-flac.desktop b/xmms-flac.desktop deleted file mode 100644 index 64b823d..0000000 --- a/xmms-flac.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Name=XMMS -Exec=xmms -p -e %F -Icon=xmms -MimeType=audio/x-flac;audio/flac; -Categories=AudioVideo;Player; -Terminal=false -Type=Application -NoDisplay=true