1 |
%define version 1.0 |
2 |
%define release 12 |
3 |
Summary: Set up zoneminder for SME Server. |
4 |
Name: smeserver-zoneminder |
5 |
Version: %{version} |
6 |
Release: %{release}%{?dist} |
7 |
License: GNU GPL version 2 |
8 |
URL: http://www.contribs.org |
9 |
Group: SMEserver/addon |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
Patch0: smeserver-zoneminder-1.0-bz10539-initial_fixes.patch |
12 |
Patch1: smeserver-zoneminder-1.0-bz10539-fix-cgi-path.patch |
13 |
Patch2: smeserver-zoneminder-1.0-bz10676-fix-sql-perms.patch |
14 |
Patch3: smeserver-zoneminder-1.0-Update-httpd-for-php-fpw.patch |
15 |
Patch4: smeserver-zoneminder-1.0-Update-for-SME10-systemd.patch |
16 |
Patch5: smeserver-zoneminder-1.0-bz12069-24syntax.patch |
17 |
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
20 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
21 |
Requires: e-smith-release >= 10.0 |
22 |
Requires: e-smith-apache >= 2.6.0-19 |
23 |
Requires: smeserver-php >= 3.0.0-43 |
24 |
Requires: zoneminder |
25 |
Requires: e-smith-base |
26 |
#Requires: php70-php-pecl-apcu-bc php71-php-pecl-apcu-bc php72-php-pecl-apcu-bc php73-php-pecl-apcu-bc |
27 |
#Requires: php54-php-pecl-apcu php55-php-pecl-apcu php56-php-pecl-apcu php70-php-pecl-apcu php71-php-pecl-apcu php72-php-pecl-apcu php73-php-pecl-apcu |
28 |
AutoReqProv: no |
29 |
|
30 |
%description |
31 |
rpm to setup zoneminder |
32 |
|
33 |
%changelog |
34 |
* Mon Aug 01 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-12.sme |
35 |
- adapt to httpd 2.4 access syntax [SME: 12069] |
36 |
|
37 |
* Tue Feb 16 2021 Brian Read <brianr@bjsystems.co.uk> 1.0-11.sme |
38 |
- Update for systemd changes [SME: 11226] |
39 |
|
40 |
* Fri Dec 04 2020 Brian Read <brianr@bjsystems.co.uk> 1.0-10.sme |
41 |
- Update httpds.conf for php-fpw [SME: 11226] |
42 |
|
43 |
* Thu Dec 03 2020 Brian Read <brianr@bjsystems.co.uk> 1.0-9.sme |
44 |
- Remove smeserver-php-scl [SME: 11226] |
45 |
|
46 |
* Thu Dec 03 2020 Brian Read <brianr@bjsystems.co.uk> 1.0-8.sme |
47 |
- Initial import to SME10 tree [SME: 11226] |
48 |
|
49 |
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-7.sme |
50 |
- add deps [SME: 10539] |
51 |
- fix sql init file perms [SME: 10676] |
52 |
|
53 |
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-4.sme |
54 |
- fix wrong cgi path preventing realtime image to display [SME: 10539] |
55 |
|
56 |
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme |
57 |
- fix few bugs on initial release [SME: 10539] |
58 |
- fix auth using SME Server admin user and pass for http auth |
59 |
- add setting of mysql for innodb |
60 |
|
61 |
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-2.sme |
62 |
- fix bad dep to phpscl should be php-scl [SME: 10539] |
63 |
|
64 |
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme |
65 |
- initial version for SME9 [SME: 10539] |
66 |
- create password for db, db , and fill it |
67 |
- based on zoneminder rpm from http://zmrepo.metroeasthomevetcare.com for el6, |
68 |
el7 will be on rpmfusion |
69 |
- added event zoneminder-update |
70 |
- removed post and postun scripts |
71 |
- set admin password inside zm user db |
72 |
|
73 |
* Sat Sep 01 2007 Steve Ognenovski <steve@socomms.com> - 0.1-2 |
74 |
- added 23zoneminder |
75 |
- expand templates on %post and %postun |
76 |
- start zoneminder daemon |
77 |
- removed ScriptAlias from 86zoneminder |
78 |
- added to %post mysql mysql < /usr/share/zoneminder/db/zm_create.sql |
79 |
- added to %postun mysqladmin -f drop zm |
80 |
|
81 |
* Fri Aug 10 2007 Greg Swallow <greg@runlevle7.ca> - 0.1-1 |
82 |
- initial release |
83 |
|
84 |
%prep |
85 |
%setup |
86 |
%patch0 -p1 |
87 |
%patch1 -p1 |
88 |
%patch2 -p1 |
89 |
%patch3 -p1 |
90 |
%patch4 -p1 |
91 |
%patch5 -p1 |
92 |
|
93 |
%build |
94 |
perl createlinks |
95 |
|
96 |
%install |
97 |
rm -rf $RPM_BUILD_ROOT |
98 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
99 |
rm -f %{name}-%{version}-filelist |
100 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
101 |
> %{name}-%{version}-filelist |
102 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
103 |
|
104 |
%clean |
105 |
rm -rf $RPM_BUILD_ROOT |
106 |
|
107 |
%post |
108 |
|
109 |
%postun |
110 |
|
111 |
%files -f %{name}-%{version}-filelist |
112 |
%defattr(-,root,root) |