@@ -76,6 +76,9 @@ BuildRequires: desktop-file-utils
7676BuildRequires: gzip
7777BuildRequires: zlib-devel
7878
79+ # jwt-cpp looks for nlohmann_json which is part of json-devel
80+ BuildRequires: json-devel
81+
7982# ZoneMinder looks for and records the location of the ffmpeg binary during build
8083BuildRequires: ffmpeg
8184BuildRequires: ffmpeg-devel
@@ -195,7 +198,6 @@ rm -rf ./dep/RtspServer
195198mv -f RtspServer-%{rtspserver_commit } ./dep/RtspServer
196199
197200# Change the following default values
198- ./utils/zmeditconfigdata.sh ZM_OPT_CAMBOZOLA yes
199201./utils/zmeditconfigdata.sh ZM_OPT_CONTROL yes
200202./utils/zmeditconfigdata.sh ZM_CHECK_FOR_UPDATES no
201203
@@ -224,6 +226,10 @@ desktop-file-install \
224226# Remove unwanted files and folders
225227find %{buildroot } \( -name .htaccess -or -name .editorconfig -or -name .packlist -or -name .git -or -name .gitignore -or -name .gitattributes -or -name .travis.yml \) -type f -delete > /dev/null 2> &1 || :
226228
229+ # Remove third-party header and cmake files that should not have been installed
230+ rm -rf %{buildroot }%{_prefix }/cmake
231+ rm -rf %{buildroot }%{_includedir }
232+
227233# Recursively change shebang in all relevant scripts and set execute permission
228234find %{buildroot }%{_datadir }/zoneminder/www/api \( -name cake -or -name cake.php \) -type f -exec sed -i 's\^#!/usr/bin/env bash$\#!%{_buildshell}\' {} \; -exec %{__chmod} 755 {} \;
229235
@@ -336,12 +342,15 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin
336342
337343%{_unitdir }/zoneminder.service
338344%{_datadir }/polkit-1/actions/com.zoneminder.systemctl.policy
345+ %{_datadir }/polkit-1/actions/com.zoneminder.arp-scan.policy
346+ %{_datadir }/polkit-1/rules.d/com.zoneminder.arp-scan.rules
339347%{_bindir }/zmsystemctl.pl
340348
341349%{_bindir }/zmaudit.pl
342350%{_bindir }/zmc
343351%{_bindir }/zmcontrol.pl
344352%{_bindir }/zmdc.pl
353+ %{_bindir }/zmeventtool.pl
345354%{_bindir }/zmfilter.pl
346355%{_bindir }/zmpkg.pl
347356%{_bindir }/zmtrack.pl
0 commit comments