Skip to content

Commit 8feb316

Browse files
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2 parents 52584c0 + df3bdc3 commit 8feb316

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

distros/redhat/zoneminder.spec

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%global ceb_version 1.0-zm
1010

1111
# RtspServer is configured as a git submodule
12-
%global rtspserver_commit eab32851421ffe54fec0229c3efc44c642bc8d46
12+
%global rtspserver_commit 055d81fe1293429e496b19104a9ed3360755a440
1313

1414
%global sslcert %{_sysconfdir}/pki/tls/certs/localhost.crt
1515
%global sslkey %{_sysconfdir}/pki/tls/private/localhost.key
@@ -18,8 +18,8 @@
1818
%global zmtargetdistro %{?rhel:el%{rhel}}%{!?rhel:fc%{fedora}}
1919

2020
Name: zoneminder
21-
Version: 1.37.63
22-
Release: 2%{?dist}
21+
Version: 1.36.34
22+
Release: 1%{?dist}
2323
Summary: A camera monitoring and analysis tool
2424
Group: System Environment/Daemons
2525
# jQuery is under the MIT license: https://jquery.org/license/
@@ -40,7 +40,7 @@ Source3: https://github.com/ZoneMinder/RtspServer/archive/%{rtspserver_commit}.t
4040

4141
%{?rhel:BuildRequires: epel-rpm-macros}
4242
BuildRequires: systemd-devel
43-
BuildRequires: mariadb-connector-c-devel
43+
BuildRequires: mariadb-devel
4444
BuildRequires: perl-podlators
4545
BuildRequires: polkit-devel
4646
BuildRequires: cmake
@@ -75,7 +75,6 @@ BuildRequires: libv4l-devel
7575
BuildRequires: desktop-file-utils
7676
BuildRequires: gzip
7777
BuildRequires: zlib-devel
78-
BuildRequires: gsoap-devel
7978

8079
# ZoneMinder looks for and records the location of the ffmpeg binary during build
8180
BuildRequires: ffmpeg
@@ -106,6 +105,7 @@ Requires: php-gd
106105
Requires: php-intl
107106
Requires: php-process
108107
Requires: php-json
108+
Requires: cambozola
109109
Requires: php-pecl-apcu
110110
Requires: net-tools
111111
Requires: psmisc
@@ -125,7 +125,6 @@ Requires: perl(LWP::Protocol::https)
125125
Requires: perl(Module::Load::Conditional)
126126
Requires: ca-certificates
127127
Requires: zip
128-
Requires: gsoap
129128
%{?systemd_requires}
130129

131130
Requires(post): %{_bindir}/gpasswd
@@ -197,6 +196,7 @@ rm -rf ./dep/RtspServer
197196
mv -f RtspServer-%{rtspserver_commit} ./dep/RtspServer
198197

199198
# Change the following default values
199+
./utils/zmeditconfigdata.sh ZM_OPT_CAMBOZOLA yes
200200
./utils/zmeditconfigdata.sh ZM_OPT_CONTROL yes
201201
./utils/zmeditconfigdata.sh ZM_CHECK_FOR_UPDATES no
202202

@@ -208,7 +208,8 @@ mv -f RtspServer-%{rtspserver_commit} ./dep/RtspServer
208208
%cmake \
209209
-DZM_WEB_USER="%{zmuid_final}" \
210210
-DZM_WEB_GROUP="%{zmgid_final}" \
211-
-DZM_TARGET_DISTRO="%{zmtargetdistro}"
211+
-DZM_TARGET_DISTRO="%{zmtargetdistro}" \
212+
.
212213

213214
%cmake_build
214215

@@ -223,8 +224,6 @@ desktop-file-install \
223224

224225
# Remove unwanted files and folders
225226
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 || :
226-
rm -rf %{buildroot}/usr/include
227-
rm -rf %{buildroot}/usr/cmake
228227

229228
# Recursively change shebang in all relevant scripts and set execute permission
230229
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 {} \;
@@ -337,8 +336,7 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin
337336
%config(noreplace) %{_sysconfdir}/logrotate.d/zoneminder
338337

339338
%{_unitdir}/zoneminder.service
340-
%{_datadir}/polkit-1/actions/com.zoneminder.*
341-
%{_datadir}/polkit-1/rules.d/com.zoneminder.arp-scan.rules
339+
%{_datadir}/polkit-1/actions/com.zoneminder.systemctl.policy
342340
%{_bindir}/zmsystemctl.pl
343341

344342
%{_bindir}/zmaudit.pl
@@ -360,7 +358,6 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin
360358
%{_bindir}/zmonvif-trigger.pl
361359
%{_bindir}/zmstats.pl
362360
%{_bindir}/zmrecover.pl
363-
%{_bindir}/zmeventtool.pl
364361
%{_bindir}/zm_rtsp_server
365362

366363
%{perl_vendorlib}/ZoneMinder*
@@ -417,6 +414,10 @@ ln -sf %{_sysconfdir}/zm/www/zoneminder.nginx.conf %{_sysconfdir}/zm/www/zonemin
417414
%dir %attr(755,nginx,nginx) %{_localstatedir}/log/zoneminder
418415

419416
%changelog
417+
* Fri Aug 16 2024 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.36.34-1
418+
- 1.36.34 release
419+
- remove el7 support
420+
420421
* Sun Nov 12 2023 Jonathan Bennett <JBennett@IncomSystems.biz> - 1.37.47
421422
- Specify folders to remove before packaging
422423

0 commit comments

Comments
 (0)