]> git.pld-linux.org Git - packages/megacmd.git/commitdiff
bcond to build without ffmpeg
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Nov 2018 14:30:55 +0000 (16:30 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Nov 2018 14:30:55 +0000 (16:30 +0200)
megacmd.spec

index ccef1979aa978f7587333f22a86fe0c96866e7b4..68cd4c0e70e45f581eadc41d65e7f0e9f998090d 100644 (file)
@@ -1,7 +1,8 @@
 #
 # Conditional build:
-%bcond_without fuse            # build megafuse
-%bcond_without libmediainfo    # build with libmediainfo
+%bcond_without fuse                    # build megafuse
+%bcond_without libmediainfo    # build with libmediainfo for media file attributes
+%bcond_without ffmpeg                  # build with ffmpeg for thumbnails and previews
 
 Summary:       Command Line Interactive and Scriptable Application to access MEGA
 Name:          megacmd
@@ -21,7 +22,7 @@ BuildRequires:        autoconf
 BuildRequires: automake
 BuildRequires: c-ares-devel
 BuildRequires: cryptopp-devel
-BuildRequires: ffmpeg-devel
+%{?with_ffmpeg:BuildRequires:  ffmpeg-devel}
 %{?with_fuse:BuildRequires:    libfuse-devel}
 %{?with_mediainfo:BuildRequires:       libmediainfo-devel}
 BuildRequires: libraw-devel
@@ -80,6 +81,7 @@ mv sdk-*/* sdk
 autoreconf -vif
 %configure \
        ac_cv_prog_HAVE_CPPCHECK=/usr/bin/cppcheck \
+       %{__with_without ffmpeg} \
        %{__with_without fuse} \
        %{__with_without libmediainfo} \
        --disable-silent-rules
This page took 0.096355 seconds and 4 git commands to generate.