From e5177a46a5161f950cb9c591dd6f91e49cd0ea93 Mon Sep 17 00:00:00 2001 From: Jan Friesse Date: Wed, 20 Mar 2019 18:17:33 +0100 Subject: [PATCH] Modernize a specfile a bit - Add license - Use install -p Signed-off-by: Jan Friesse --- corosync-qdevice.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/corosync-qdevice.spec b/corosync-qdevice.spec index 3d71b0d..f52029a 100644 --- a/corosync-qdevice.spec +++ b/corosync-qdevice.spec @@ -10,7 +10,7 @@ Name: corosync-qdevice Summary: The Corosync Cluster Engine Qdevice Version: 3.0.0 -Release: 2%{?gitver}%{?dist} +Release: 3%{?gitver}%{?dist} License: BSD URL: https://github.com/corosync/corosync-qdevice Source0: https://github.com/corosync/corosync-qdevice/releases/download/v%{version}%{?gittarver}/%{name}-%{version}%{?gittarver}.tar.gz @@ -69,10 +69,10 @@ make install DESTDIR=%{buildroot} rm -rf %{buildroot}%{_docdir}/* mkdir -p %{buildroot}%{_sysconfdir}/sysconfig # /etc/sysconfig/corosync-qdevice -install -m 644 init/corosync-qdevice.sysconfig.example \ +install -p -m 644 init/corosync-qdevice.sysconfig.example \ %{buildroot}%{_sysconfdir}/sysconfig/corosync-qdevice # /etc/sysconfig/corosync-qnetd -install -m 644 init/corosync-qnetd.sysconfig.example \ +install -p -m 644 init/corosync-qnetd.sysconfig.example \ %{buildroot}%{_sysconfdir}/sysconfig/corosync-qnetd %if %{with systemd} @@ -112,6 +112,7 @@ fi %endif %files +%license LICENSE %dir %{_sysconfdir}/corosync/qdevice %dir %config(noreplace) %{_sysconfdir}/corosync/qdevice/net %dir %{_localstatedir}/run/corosync-qdevice @@ -172,6 +173,7 @@ fi %endif %files -n corosync-qnetd +%license LICENSE %dir %config(noreplace) %attr(770, coroqnetd, coroqnetd) %{_sysconfdir}/corosync/qnetd %dir %attr(770, coroqnetd, coroqnetd) %{_localstatedir}/run/corosync-qnetd %{_bindir}/corosync-qnetd @@ -188,6 +190,9 @@ fi %{_mandir}/man8/corosync-qnetd.8* %changelog +* Wed Mar 20 2019 Jan Friesse - 3.0.0-3 +- Add license and use install -p + * Thu Jan 31 2019 Fedora Release Engineering - 3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild