]> git.pld-linux.org Git - packages/ffmpeg.git/commitdiff
- package examples
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Mar 2014 08:48:39 +0000 (09:48 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Mar 2014 08:48:39 +0000 (09:48 +0100)
- disable x265 where not available

ffmpeg.spec

index 242f26797535e8640f9fbdd55579f1aba5e6320b..a7ea83f63d5dbcd2f121efe31e53d0d3e8168834 100644 (file)
 %bcond_without zvbi            # teletext via libzvbi
 %bcond_without doc             # don't build docs
 
+%ifnarch %{ix86} %{x8664} arm
+%undefine      with_x265
+%endif
+%ifarch i386 i486
+%undefine      with_x265
+%endif
 Summary:       FFmpeg - a very fast video and audio converter
 Summary(pl.UTF-8):     FFmpeg - szybki konwerter audio/wideo
 Name:          ffmpeg
@@ -528,6 +534,12 @@ install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
 # simple to do (by querying pkgconfig), but why?
 install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig
 
+# packaged as %doc in -doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/ffmpeg/*.html
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/ffmpeg/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -641,6 +653,7 @@ fi
 %{_mandir}/man3/libswresample.3*
 %{_mandir}/man3/libswscale.3*
 %endif
+%{_examplesdir}/%{name}-%{version}
 
 %files static
 %defattr(644,root,root,755)
This page took 0.173103 seconds and 4 git commands to generate.