diff --git a/config/buzon.yaml b/config/buzon.yaml index 2886c57..24b9630 100644 --- a/config/buzon.yaml +++ b/config/buzon.yaml @@ -1,5 +1,6 @@ --- -mqtt_host: mq.rockylinux.org +# Set the configuration items below. +mqtt_host: mq.example.com mqtt_port: 1883 mqtt_user: buzon mqtt_password: buzon @@ -8,5 +9,7 @@ mqtt_topic_default: default mqtt_qos: 2 loglevel: INFO + +# When your configuration is ready, change "test" to "prod" mode: test ... diff --git a/rpm/python-buzon.spec b/rpm/python-buzon.spec index 880c4a8..0acbd5d 100644 --- a/rpm/python-buzon.spec +++ b/rpm/python-buzon.spec @@ -1,7 +1,7 @@ %global pyname buzon Name: python-%{pyname} -Version: 0.1.0 +Version: 0.2.0 Release: 1%{?dist} Summary: MQTT Webhook Delivery Service @@ -40,13 +40,19 @@ Summary: %{summary} %pyproject_install %pyproject_save_files buzon -# install buzon.yaml to /etc/buzon +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} %files -f %{pyproject_files} %license LICENSE -%ghost %{_sysconfdir}/%{name}/%{name}.cfg - - +%config %{_sysconfdir}/%{pyname}/%{pyname}.yaml +%{_unitdir}/%{pyname}.service +%{_sysconfdir}/sysconfig/%{pyname} %changelog * Wed Dec 18 2024 Louis Abel - 0.1.0-1