88 lines
2.4 KiB
RPMSpec
88 lines
2.4 KiB
RPMSpec
Name: motioneye
|
|
Version: 0.42.1
|
|
Release: 1mamba
|
|
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: libpython3-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: python3
|
|
Requires: motion
|
|
Requires: v4l-utils
|
|
Requires: ffmpeg
|
|
%systemd_requires
|
|
Requires: python-setuptools-py3
|
|
Requires: pycurl-py3
|
|
Requires: python-Pillow-py3
|
|
Requires: python-Jinja2-py3
|
|
Requires: python-tornado-py3 < 6
|
|
Requires: python-six-py3
|
|
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}"
|
|
%{__python3} setup.py install \
|
|
-O1 --skip-build \
|
|
--root="%{buildroot}" \
|
|
--install-headers=%{python3_inc} \
|
|
--install-lib=%{python3_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)
|
|
%config(noreplace) %{_sysconfdir}/motioneye/motioneye.conf
|
|
%dir %{_sysconfdir}/motioneye
|
|
%{_unitdir}/motioneye.service
|
|
%dir %{_localstatedir}/lib/motioneye
|
|
%doc AUTHORS LICENSE
|
|
|
|
%changelog
|
|
* Thu Dec 31 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.42.1-1mamba
|
|
- update to 0.42.1
|
|
|
|
* 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
|