motioneye/motioneye.spec

104 lines
3.1 KiB
RPMSpec
Raw Normal View History

%define gitver %(echo %version | cut -d. -f4)
Name: motioneye
Version: 0.42.1.20201229git.25ee819
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/motioneye-project/motioneye
Source: https://github.com/ccrisan/motioneye.git/python3@%{gitver}/motioneye-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(jinja2)
BuildRequires: python3.11dist(pillow)
BuildRequires: python3.11dist(pycurl)
BuildRequires: python3.11dist(setuptools)
BuildRequires: python3.11dist(six)
BuildRequires: python3.11dist(tornado)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
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 Oct 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.42.1.20201229git.25ee819-2mamba
- rebuilt with python3 == 3.11
* Sun Feb 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.42.1.20201229git.25ee819-1mamba
- update to 0.42.1.20201229git.25ee819
* 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