commit 9ef218fd26edc657fc49361f80fdafb2a1566bdc
Author: Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net>
Date: Sat Jan 14 11:51:35 2017 +0100
clean up ffmpegsuffix macro
- rename to _without_tools to reflect intended usage
- SDL is required only when building the tools (ffplay)
- don't override --build-suffix, this is already handled by build_suffix
macro
ffmpeg.spec | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index 4c26990..f411430 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -133,7 +133,7 @@ BuildRequires: opus-devel
BuildRequires: perl(Pod::Man)
%{?_with_rubberband:BuildRequires: rubberband-devel}
BuildRequires: schroedinger-devel
-BuildRequires: SDL2-devel
+%{!?_without_tools:BuildRequires: SDL2-devel}
%{?_with_snappy:BuildRequires: snappy-devel}
BuildRequires: soxr-devel
BuildRequires: speex-devel
@@ -289,8 +289,7 @@ cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/
%build
%{ff_configure}\
--shlibdir=%{_libdir} \
-%if 0%{?ffmpegsuffix:1}
- --build-suffix=%{ffmpegsuffix} \
+%if 0%{?_without_tools:1}
--disable-doc \
--disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver \
%else
@@ -330,7 +329,9 @@ make alltools V=1
%install
%make_install V=1
-rm -r %{buildroot}%{_datadir}/%{name}/examples
+%if 0%{!?flavor:1}
+rm -r %{buildroot}%{_datadir}/%{name}/examples}
+%endif
%if 0%{!?progs_suffix:1}
install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
%endif
@@ -343,7 +344,7 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
%postun -n libavdevice%{?flavor} -p /sbin/ldconfig
-%if 0%{!?ffmpegsuffix:1}
+%if 0%{!?_without_tools:1}
%files
%doc COPYING.* CREDITS README.md doc/ffserver.conf
%{_bindir}/ffmpeg%{?progs_suffix}
@@ -374,7 +375,7 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
%files devel
%doc MAINTAINERS doc/APIchanges doc/*.txt
%doc _doc/examples
-%doc %{_docdir}/%{name}/*.html
+%{!?flavor:%doc %{_docdir}/%{name}/*.html}
%{_includedir}/%{name}
%{_libdir}/pkgconfig/lib*.pc
%{_libdir}/lib*.so
Show replies by date