%define gitver %(echo %version | cut -d. -f4) Name: motioneye Version: 0.42.1.20201229git.25ee819 Release: 1mamba Summary: A web frontend for the motion daemon Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/ccrisan/motioneye Source: https://github.com/ccrisan/motioneye.git/python3@%{gitver}/motioneye-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel BuildRequires: python3.7dist(jinja2) BuildRequires: python3.7dist(pillow) BuildRequires: python3.7dist(pycurl) BuildRequires: python3.7dist(setuptools) BuildRequires: python3.7dist(six) BuildRequires: python3.7dist(tornado) ## AUTOBUILDREQ-END Requires: motion Requires: v4l-utils Requires: ffmpeg %systemd_requires %description A web frontend for the motion daemon. %prep %setup -q # Remove requirement for python-tornado < 6 sed -i "s|,<6||" setup.py %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 "\,\.egg-info/,d;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 %dir %{python3_sitearch}/motioneye-*.egg-info %{python3_sitearch}/motioneye-*.egg-info/* %{python3_sitearch}/motioneye/__pycache__/*.cpython*.pyc %doc AUTHORS LICENSE %changelog * Sun Feb 20 2022 Silvan Calarco 0.42.1.20201229git.25ee819-1mamba - update to 0.42.1.20201229git.25ee819 * Mon Aug 09 2021 Silvan Calarco 0.42.1-3mamba - build from python3 branch * Sat Apr 03 2021 Silvan Calarco 0.42.1-2mamba - rebuilt with distdeps * Thu Dec 31 2020 Silvan Calarco 0.42.1-1mamba - update to 0.42.1 * Sat Aug 10 2019 Silvan Calarco 0.40-2mamba - install required directory /var/lib/motioneye * Sat Aug 10 2019 Silvan Calarco 0.40-1mamba - package created using the webbuild interface