update spec file further

This commit is contained in:
Louis Abel 2024-12-19 21:11:39 -07:00
parent 1084d1c3a4
commit 009fafb7a5
Signed by: label
GPG key ID: 2A6975660E424560
2 changed files with 15 additions and 6 deletions

View file

@ -1,5 +1,6 @@
--- ---
mqtt_host: mq.rockylinux.org # Set the configuration items below.
mqtt_host: mq.example.com
mqtt_port: 1883 mqtt_port: 1883
mqtt_user: buzon mqtt_user: buzon
mqtt_password: buzon mqtt_password: buzon
@ -8,5 +9,7 @@ mqtt_topic_default: default
mqtt_qos: 2 mqtt_qos: 2
loglevel: INFO loglevel: INFO
# When your configuration is ready, change "test" to "prod"
mode: test mode: test
... ...

View file

@ -1,7 +1,7 @@
%global pyname buzon %global pyname buzon
Name: python-%{pyname} Name: python-%{pyname}
Version: 0.1.0 Version: 0.2.0
Release: 1%{?dist} Release: 1%{?dist}
Summary: MQTT Webhook Delivery Service Summary: MQTT Webhook Delivery Service
@ -40,13 +40,19 @@ Summary: %{summary}
%pyproject_install %pyproject_install
%pyproject_save_files buzon %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} %files -f %{pyproject_files}
%license LICENSE %license LICENSE
%ghost %{_sysconfdir}/%{name}/%{name}.cfg %config %{_sysconfdir}/%{pyname}/%{pyname}.yaml
%{_unitdir}/%{pyname}.service
%{_sysconfdir}/sysconfig/%{pyname}
%changelog %changelog
* Wed Dec 18 2024 Louis Abel <label@resf.org> - 0.1.0-1 * Wed Dec 18 2024 Louis Abel <label@resf.org> - 0.1.0-1