Skip to content

Commit

Permalink
rpm specfiles - add json-devel builddep & delete unwanted files
Browse files Browse the repository at this point in the history
  • Loading branch information
knight-of-ni authored Jan 25, 2025
1 parent 0eb8c03 commit 42b4ee0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distros/redhat/zoneminder.spec
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ BuildRequires: desktop-file-utils
BuildRequires: gzip
BuildRequires: zlib-devel

# jwt-cpp looks for nlohmann_json which is part of json-devel
BuildRequires: json-devel

# ZoneMinder looks for and records the location of the ffmpeg binary during build
BuildRequires: ffmpeg
BuildRequires: ffmpeg-devel
Expand Down Expand Up @@ -223,6 +226,10 @@ desktop-file-install \
# Remove unwanted files and folders
find %{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 || :

# Remove third-party header and cmake files that should not have been installed
rm -rf %{buildroot}%{_prefix}/cmake
rm -rf %{buildroot}%{_includedir}

# Recursively change shebang in all relevant scripts and set execute permission
find %{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 {} \;

Expand Down

0 comments on commit 42b4ee0

Please sign in to comment.