94 lines
2.7 KiB
RPMSpec
94 lines
2.7 KiB
RPMSpec
Name: motioneye
|
|
Version: 0.42.1
|
|
Release: 3mamba
|
|
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
|
|
Source: https://github.com/ccrisan/motioneye.git/python3@25ee8195a699b70c7c6986f702d369201ad71656/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
|
|
|
|
%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
|
|
* Mon Aug 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.42.1-3mamba
|
|
- build from python3 branch
|
|
|
|
* Sat Apr 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.42.1-2mamba
|
|
- rebuilt with distdeps
|
|
|
|
* 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
|