enable javascript scripting support
authorJan Palus <atler@pld-linux.org>
Sat, 17 Apr 2021 17:11:16 +0000 (19:11 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 17 Apr 2021 17:11:16 +0000 (19:11 +0200)
gerbera.spec

index 9699158e8c7b076c5fbfdbd20ad0ef3d9964805e..70c9bcfadb7ea79ab4249f1238ce72babc7df058 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without js              # JavaScript scripting support
+
 Summary:       UPnP Media Server
 Name:          gerbera
 Version:       1.8.0
@@ -9,6 +13,7 @@ Source0:       https://github.com/gerbera/gerbera/archive/v%{version}/%{name}-%{versio
 URL:           https://gerbera.io
 BuildRequires: cmake >= 3.13
 BuildRequires: curl-devel
+%{?with_js:BuildRequires:      duktape-devel}
 BuildRequires: exiv2-devel
 BuildRequires: ffmpeg-devel
 BuildRequires: ffmpegthumbnailer-devel
@@ -20,7 +25,7 @@ BuildRequires:        libstdc++-devel >= 6:7.1
 BuildRequires: libupnp-devel >= 1.14.0
 BuildRequires: libuuid-devel
 BuildRequires: pugixml-devel
-BuildRequires: rpmbuild(macros) >= 1.644
+BuildRequires: rpmbuild(macros) >= 1.742
 BuildRequires: spdlog-devel
 BuildRequires: sqlite3-devel >= 3.7.0
 BuildRequires: systemd-devel
@@ -46,11 +51,11 @@ compatible devices.
 install -d build
 cd build
 %cmake .. \
-       -DWITH_AVCODEC=1 \
-       -DWITH_DEBUG=0 \
-       -DWITH_EXIV2=1 \
-       -DWITH_FFMPEGTHUMBNAILER=1 \
-       -DWITH_JS=0
+       -DWITH_AVCODEC:BOOL=OFF \
+       -DWITH_DEBUG:BOOL=OFF \
+       -DWITH_EXIV2:BOOL=OFF \
+       -DWITH_FFMPEGTHUMBNAILER:BOOL=ON \
+       %{cmake_on_off js WITH_JS}
 
 %{__make}
 
This page took 0.084029 seconds and 4 git commands to generate.