1 |
%define version 1.0 |
2 |
%define release 8 |
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 |
|
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildArchitectures: noarch |
17 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
18 |
Requires: e-smith-release >= 9.0 |
19 |
Requires: zoneminder |
20 |
Requires: e-smith-base |
21 |
Requires: smeserver-php-scl |
22 |
Requires: php70-php-pecl-apcu-bc php71-php-pecl-apcu-bc php72-php-pecl-apcu-bc php73-php-pecl-apcu-bc |
23 |
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 |
24 |
Requires: ffmpeg-compat_0.10.16 |
25 |
AutoReqProv: no |
26 |
|
27 |
%description |
28 |
rpm to setup zoneminder |
29 |
|
30 |
%changelog |
31 |
* Thu Dec 03 2020 Brian Read <brianr@bjsystems.co.uk> 1.0-8.sme |
32 |
- Initial import to SME10 tree [SME: 11226] |
33 |
|
34 |
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-7.sme |
35 |
- add deps [SME: 10539] |
36 |
- fix sql init file perms [SME: 10676] |
37 |
|
38 |
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-4.sme |
39 |
- fix wrong cgi path preventing realtime image to display [SME: 10539] |
40 |
|
41 |
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme |
42 |
- fix few bugs on initial release [SME: 10539] |
43 |
- fix auth using SME Server admin user and pass for http auth |
44 |
- add setting of mysql for innodb |
45 |
|
46 |
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-2.sme |
47 |
- fix bad dep to phpscl should be php-scl [SME: 10539] |
48 |
|
49 |
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme |
50 |
- initial version for SME9 [SME: 10539] |
51 |
- create password for db, db , and fill it |
52 |
- based on zoneminder rpm from http://zmrepo.metroeasthomevetcare.com for el6, |
53 |
el7 will be on rpmfusion |
54 |
- added event zoneminder-update |
55 |
- removed post and postun scripts |
56 |
- set admin password inside zm user db |
57 |
|
58 |
* Sat Sep 01 2007 Steve Ognenovski <steve@socomms.com> - 0.1-2 |
59 |
- added 23zoneminder |
60 |
- expand templates on %post and %postun |
61 |
- start zoneminder daemon |
62 |
- removed ScriptAlias from 86zoneminder |
63 |
- added to %post mysql mysql < /usr/share/zoneminder/db/zm_create.sql |
64 |
- added to %postun mysqladmin -f drop zm |
65 |
|
66 |
* Fri Aug 10 2007 Greg Swallow <greg@runlevle7.ca> - 0.1-1 |
67 |
- initial release |
68 |
|
69 |
%prep |
70 |
%setup |
71 |
%patch0 -p1 |
72 |
%patch1 -p1 |
73 |
%patch2 -p1 |
74 |
|
75 |
%build |
76 |
perl createlinks |
77 |
|
78 |
%install |
79 |
rm -rf $RPM_BUILD_ROOT |
80 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
81 |
rm -f %{name}-%{version}-filelist |
82 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
83 |
> %{name}-%{version}-filelist |
84 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
85 |
|
86 |
%clean |
87 |
rm -rf $RPM_BUILD_ROOT |
88 |
|
89 |
%post |
90 |
|
91 |
%postun |
92 |
|
93 |
%files -f %{name}-%{version}-filelist |
94 |
%defattr(-,root,root) |