55 lines
1.0 KiB
RPMSpec
55 lines
1.0 KiB
RPMSpec
%global pyname buzon
|
|
|
|
Name: python-%{pyname}
|
|
Version: 0.1.0
|
|
Release: 1%{?dist}
|
|
Summary: MQTT Webhook Delivery Service
|
|
|
|
License: GPLv3
|
|
URL: https://git.resf.org/infrastructure/buzon
|
|
Source0: %{url}/archive/%{pyname}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: pyproject-rpm-macros
|
|
BuildRequires: systemd-rpm-macros
|
|
Requires: (python3dist(uvicorn) with /usr/bin/uvicorn)
|
|
|
|
%global _description %{expand:
|
|
Buzon is a webhook system designed to receive messages from a forgejo instance
|
|
and then send it to an MQTT-aware endpoint.}
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-buzon
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-buzon %_description
|
|
|
|
%prep
|
|
%autosetup -n buzon-%{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
|
|
|