46 lines
880 B
RPMSpec
46 lines
880 B
RPMSpec
|
Name: buzon
|
||
|
Version: 0.1.0
|
||
|
Release: 1%{?dist}
|
||
|
Summary: MQTT Webhook Delivery Service
|
||
|
|
||
|
License: GPLv3
|
||
|
URL: https://git.resf.org/infrastructure/buzon
|
||
|
Source0: %{name}-%{version}.tar.gz
|
||
|
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: pyproject-rpm-macros
|
||
|
BuildRequires: systemd-rpm-macros
|
||
|
Requires: (python3dist(uvicorn) with /usr/bin/uvicorn)
|
||
|
|
||
|
%description
|
||
|
Buzon is a webhook system designed to receive messages from a forgejo instance
|
||
|
and then send it to an MQTT-aware endpoint.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{name}-%{version} -p1
|
||
|
|
||
|
%generate_buildrequires
|
||
|
%pyproject_buildrequires
|
||
|
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
|
%pyproject_save_files buzon
|
||
|
|
||
|
# install buzon.yaml to /etc/buzon
|
||
|
|
||
|
%files -f %{pyproject_files}
|
||
|
%license LICENSE
|
||
|
%ghost %{_sysconfdir}/%{name}/%{name}.cfg
|
||
|
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Wed Dec 18 2024 Louis Abel <label@resf.org> - 0.1.0-1
|
||
|
- Initial buzon spec file
|
||
|
|