package created using the webbuild interface [release 0.40-1mamba;Sat Aug 10 2019]

This commit is contained in:
Silvan Calarco 2024-01-06 07:15:02 +01:00
parent 22b267b921
commit 6092bdcfda
2 changed files with 79 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# motioneye # motioneye
A web frontend for the motion daemon.

77
motioneye.spec Normal file
View File

@ -0,0 +1,77 @@
Name: motioneye
Version: 0.40
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: 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
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
%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
%{_unitdir}/motioneye.service
%doc AUTHORS LICENSE
%changelog
* Sat Aug 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.40-1mamba
- package created using the webbuild interface