1 |
|
%define version 1.0 |
2 |
|
%define release 3 |
3 |
Summary: Set up zoneminder for SME Server. |
Summary: Set up zoneminder for SME Server. |
4 |
Name: smeserver-zoneminder |
Name: smeserver-zoneminder |
5 |
Version: 0.1 |
Version: %{version} |
6 |
Release: 4.el4.sme%{?dist} |
Release: %{release}%{?dist} |
7 |
License: GNU GPL version 2 |
License: GNU GPL version 2 |
8 |
URL: http://www.contribs.org |
URL: http://www.contribs.org |
9 |
Group: SMEserver/addon |
Group: SMEserver/addon |
10 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
11 |
|
Patch0: smeserver-zoneminder-1.0-bz10539-initial_fixes.patch |
12 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
13 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
14 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
15 |
Requires: e-smith-release >= 7.0 |
Requires: e-smith-release >= 9.0 |
16 |
Requires: zoneminder |
Requires: zoneminder |
17 |
Requires: e-smith-base |
Requires: e-smith-base |
18 |
|
Requires: smeserver-php-scl |
19 |
AutoReqProv: no |
AutoReqProv: no |
20 |
|
|
21 |
%description |
%description |
22 |
rpm to setup zoneminder |
rpm to setup zoneminder |
23 |
|
|
24 |
%changelog |
%changelog |
25 |
|
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-3.sme |
26 |
|
- fix few bugs on initial release [SME: 10539] |
27 |
|
- fix auth using SME Server admin user and pass for http auth |
28 |
|
- add setting of mysql for innodb |
29 |
|
|
30 |
|
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-2.sme |
31 |
|
- fix bad dep to phpscl should be php-scl [SME: 10539] |
32 |
|
|
33 |
|
* Tue Mar 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme |
34 |
|
- initial version for SME9 [SME: 10539] |
35 |
|
- create password for db, db , and fill it |
36 |
|
- based on zoneminder rpm from http://zmrepo.metroeasthomevetcare.com for el6, |
37 |
|
el7 will be on rpmfusion |
38 |
|
- added event zoneminder-update |
39 |
|
- removed post and postun scripts |
40 |
|
- set admin password inside zm user db |
41 |
|
|
42 |
* Sat Sep 01 2007 Steve Ognenovski <steve@socomms.com> - 0.1-2 |
* Sat Sep 01 2007 Steve Ognenovski <steve@socomms.com> - 0.1-2 |
43 |
- added 23zoneminder |
- added 23zoneminder |
44 |
- expand templates on %post and %postun |
- expand templates on %post and %postun |
52 |
|
|
53 |
%prep |
%prep |
54 |
%setup |
%setup |
55 |
|
%patch0 -p1 |
56 |
|
|
57 |
%build |
%build |
58 |
perl createlinks |
perl createlinks |
69 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
70 |
|
|
71 |
%post |
%post |
|
mysql mysql < /usr/share/zoneminder/db/zm_create.sql |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
/etc/init.d/httpd graceful |
|
|
/etc/init.d/zoneminder start |
|
|
true |
|
72 |
|
|
73 |
%postun |
%postun |
|
mysqladmin -f drop zm |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
/etc/init.d/httpd graceful |
|
|
true |
|
74 |
|
|
75 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
76 |
%defattr(-,root,root) |
%defattr(-,root,root) |