add libmediainfo bcond (libzen is it's dependency)
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Nov 2018 13:50:15 +0000 (15:50 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Nov 2018 13:50:15 +0000 (15:50 +0200)
megacmd.spec

index 2a384f7c2928cbf2af6b4fbc6ca96a6c9cdeed39..5ed3b8cad4ca32b49608ece90f370a7049e3ece0 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-%bcond_without fuse       # build megafuse
+%bcond_without fuse            # build megafuse
+%bcond_without libmediainfo    # build with libmediainfo
 
 Summary:       Command Line Interactive and Scriptable Application to access MEGA
 Name:          megacmd
@@ -23,13 +24,12 @@ BuildRequires:      cppcheck
 BuildRequires: cryptopp-devel
 BuildRequires: ffmpeg-devel
 %{?with_fuse:BuildRequires:    libfuse-devel}
-BuildRequires: libmediainfo-devel
+%{?with_mediainfo:BuildRequires:       libmediainfo-devel}
 BuildRequires: libraw-devel
 BuildRequires: libsodium-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libtool
 BuildRequires: libuv-devel
-BuildRequires: libzen-devel
 BuildRequires: openssl-devel
 BuildRequires: pcre-cxx-devel
 BuildRequires: pcre-devel
@@ -81,6 +81,7 @@ mv sdk-*/* sdk
 autoreconf -vif
 %configure \
        %{__with_without fuse} \
+       %{__with_without libmediainfo} \
        --disable-silent-rules
 %{__make}
 
This page took 0.05022 seconds and 4 git commands to generate.