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