Modify .spec file to fix rpmbuild

pull/3785/head
Jonathan Bennett 2023-11-12 16:49:22 -06:00
parent 1f4e12d2c3
commit 3ee44207e5
1 changed files with 5 additions and 0 deletions

View File

@ -223,6 +223,8 @@ 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 || :
rm -rf %{buildroot}/usr/include
rm -rf %{buildroot}/usr/cmake
# 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 {} \;
@ -415,6 +417,9 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin
%dir %attr(755,nginx,nginx) %{_localstatedir}/log/zoneminder
%changelog
* Sunday Nov 12 2023 Jonathan Bennett <JBennett@IncomSystems.biz> - 1.37.47
- Specify folders to remove before packaging
* Thu Sep 28 2023 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.37.45-2
- buildrequire mariadb-connector-c-devel
- conditionals around gsoap and php-json packages no longer needed