Name:          motioneye
Version:       0.43.1b1
Release:       0.1%{?dist}
Summary:       A web frontend for the motion daemon
License:       GPL-3.0
URL:           https://github.com/motioneye/motioneye
Source0:       %url/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildArch:     noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3dist(boto3)
Requires:      motion

%description
motionEye is a web-based frontend for motion.

%prep
%autosetup -p1
%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files motioneye

%files -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_bindir}/meyectl
%{_bindir}/motioneye_init

%changelog
* Tue Sep 05 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 0.43.1b1-0.1
- Initial package