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