2024-12-19 00:47:01 +00:00
|
|
|
%global pyname buzon
|
|
|
|
|
|
|
|
Name: python-%{pyname}
|
2024-12-22 03:22:16 +00:00
|
|
|
Version: 0.2.1
|
2024-12-18 20:42:59 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: MQTT Webhook Delivery Service
|
|
|
|
|
|
|
|
License: GPLv3
|
|
|
|
URL: https://git.resf.org/infrastructure/buzon
|
2024-12-19 00:47:01 +00:00
|
|
|
Source0: %{url}/archive/%{pyname}-%{version}.tar.gz
|
2024-12-18 20:42:59 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
Requires: (python3dist(uvicorn) with /usr/bin/uvicorn)
|
|
|
|
|
2024-12-19 00:47:01 +00:00
|
|
|
%global _description %{expand:
|
2024-12-18 20:42:59 +00:00
|
|
|
Buzon is a webhook system designed to receive messages from a forgejo instance
|
2024-12-19 00:47:01 +00:00
|
|
|
and then send it to an MQTT-aware endpoint.}
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
%package -n python3-buzon
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n python3-buzon %_description
|
2024-12-18 20:42:59 +00:00
|
|
|
|
|
|
|
%prep
|
2024-12-19 00:47:01 +00:00
|
|
|
%autosetup -n buzon-%{version} -p1
|
2024-12-18 20:42:59 +00:00
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files buzon
|
|
|
|
|
2024-12-20 04:11:39 +00:00
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{pyname}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
|
|
|
|
|
|
install -pm 0644 rpm/buzon.service %{buildroot}%{_unitdir}/%{pyname}.service
|
|
|
|
install -pm 0644 config/buzon.yaml %{buildroot}%{_sysconfdir}/%{pyname}.yaml
|
|
|
|
install -pm 0644 rpm/buzon.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{pyname}
|
2024-12-18 20:42:59 +00:00
|
|
|
|
|
|
|
%files -f %{pyproject_files}
|
|
|
|
%license LICENSE
|
2024-12-20 04:11:39 +00:00
|
|
|
%config %{_sysconfdir}/%{pyname}/%{pyname}.yaml
|
|
|
|
%{_unitdir}/%{pyname}.service
|
|
|
|
%{_sysconfdir}/sysconfig/%{pyname}
|
2024-12-18 20:42:59 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-12-22 03:22:16 +00:00
|
|
|
* Sat Dec 21 2024 Louis Abel <label@resf.org> - 0.2.1-1
|
|
|
|
- Add additional fields for topics
|
|
|
|
|
2024-12-18 20:42:59 +00:00
|
|
|
* Wed Dec 18 2024 Louis Abel <label@resf.org> - 0.1.0-1
|
|
|
|
- Initial buzon spec file
|
|
|
|
|