commit 93825572fe5c75bc5c79f725a4a0ac086aabac97
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Fri Jun 7 10:55:33 2019 +0200
Condition xmms
faad2.spec | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/faad2.spec b/faad2.spec
index 1845b25..63a1f95 100644
--- a/faad2.spec
+++ b/faad2.spec
@@ -8,6 +8,8 @@
%{?el2:%define _without_sysfs 1}
%define xmmsinputplugindir %(xmms-config --input-plugin-dir 2>/dev/null)
+%{?el7:%define _with_xmms 1}
+
Summary: Library and frontend for decoding MPEG2/4 AAC
Name: faad2
Epoch: 1
@@ -25,9 +27,13 @@ Patch1: faad2-fix-overflows.patch
BuildRequires: gcc-c++
BuildRequires: id3lib-devel
%{!?_without_sysfs:BuildRequires: libsysfs-devel}
-BuildRequires: xmms-devel
+%{?_with_xmms:BuildRequires: xmms-devel}
BuildRequires: zlib-devel
+%{!?_with_xmms:
+Obsoletes: %{name}-xmms < %{version}-%{release}
+}
+
%description
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch.
@@ -54,6 +60,7 @@ written from scratch.
This package contains development files and documentation for libfaad.
+%{?_with_xmms:
%package -n xmms-%{name}
Summary: AAC XMMS Input Plugin
Group: Applications/Multimedia
@@ -66,6 +73,7 @@ FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder,
completely
written from scratch.
This package contains an input plugin for xmms.
+}
%prep
%autosetup -p1
@@ -116,14 +124,17 @@ sed -i.rpath
's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{_includedir}/neaacdec.h
%{_libdir}/libfaad.so
+%{?_with_xmms:
%files -n xmms-%{name}
%doc plugins/xmms/AUTHORS plugins/xmms/NEWS
%doc plugins/xmms/ChangeLog plugins/xmms/README plugins/xmms/TODO
%{xmmsinputplugindir}/libmp4.so
+}
%changelog
* Fri Jun 07 2019 Nicolas Chauvet <kwizart(a)gmail.com> - 1:2.7-9
- Fix overflows
+- Conditionalize xmms for el7
* Tue Aug 23 2016 Nicolas Chauvet <nicolas.chauvet(a)kwizart.fr> - 1:2.7-8
- Bump for dist
Show replies by date