85 lines
2.3 KiB
RPMSpec
85 lines
2.3 KiB
RPMSpec
Name: motioneye
|
|
Version: 0.40
|
|
Release: 2mamba
|
|
Summary: A web frontend for the motion daemon
|
|
Group: Applications/Web
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/ccrisan/motioneye.git
|
|
## GITSOURCE https://github.com/ccrisan/motioneye.git 0.40
|
|
Source: https://github.com/ccrisan/motioneye.git/%{version}/motioneye-%{version}.tar.bz2
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: python
|
|
Requires: motion
|
|
Requires: v4l-utils
|
|
Requires: ffmpeg
|
|
%systemd_requires
|
|
Requires: python-setuptools
|
|
Requires: pycurl
|
|
Requires: python-Pillow
|
|
Requires: python-Jinja2
|
|
Requires: python-tornado < 6
|
|
Requires: python-six
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
A web frontend for the motion daemon.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python} setup.py install \
|
|
-O1 --skip-build \
|
|
--root="%{buildroot}" \
|
|
--install-headers=%{python_inc} \
|
|
--install-lib=%{python_sitearch} \
|
|
--record=%{name}.filelist
|
|
|
|
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
sed -i "/handlers.cpython/d" %{name}.filelist
|
|
sed -i "/server.cpython/d" %{name}.filelist
|
|
|
|
install -D -m0644 extra/motioneye.systemd-unit %{buildroot}%{_unitdir}/motioneye.service
|
|
install -D -m0644 extra/motioneye.conf.sample %{buildroot}%{_sysconfdir}/motioneye/motioneye.conf
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/lib/motioneye
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post
|
|
%systemd_post %{name}
|
|
:
|
|
|
|
%preun
|
|
%systemd_preun %{name}
|
|
:
|
|
|
|
%postun
|
|
%systemd_postun_with_restart %{name}
|
|
:
|
|
|
|
%files -f %{name}.filelist
|
|
%defattr(-,root,root)
|
|
%dir %{_sysconfdir}/motioneye
|
|
%config(noreplace) %{_sysconfdir}/motioneye/motioneye.conf
|
|
%{_unitdir}/motioneye.service
|
|
%dir %{_localstatedir}/lib/motioneye
|
|
%doc AUTHORS LICENSE
|
|
|
|
%changelog
|
|
* Sat Aug 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.40-2mamba
|
|
- install required directory /var/lib/motioneye
|
|
|
|
* Sat Aug 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.40-1mamba
|
|
- package created using the webbuild interface
|