From 6092bdcfdacd724b89751740fde55c96ec3aa0d6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:15:02 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.40-1mamba;Sat Aug 10 2019] --- README.md | 2 ++ motioneye.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 motioneye.spec diff --git a/README.md b/README.md index 6fbb6c6..f68a88d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # motioneye +A web frontend for the motion daemon. + diff --git a/motioneye.spec b/motioneye.spec new file mode 100644 index 0000000..cb33e60 --- /dev/null +++ b/motioneye.spec @@ -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 +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 0.40-1mamba +- package created using the webbuild interface