From 5cffb4e7a7ee6730071751cdc8bf37d1314dbe9c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 8 Oct 2014 19:52:00 +0200 Subject: [PATCH] redhat: use appropriate macros for directory --- redhat/lldpd.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index 5697f7ca..4b190dee 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -131,10 +131,13 @@ This package is required to develop alternate clients for lldpd. --with-privsep-chroot=%lldpd_chroot \ --with-systemdsystemunitdir=no \ --with-sysusersdir=no \ - --prefix=/usr --localstatedir=%{_localstatedir} --sysconfdir=/etc --libdir=%{_libdir} \ + --prefix=%{_usr} \ + --localstatedir=%{_localstatedir} \ + --sysconfdir=%{_sysconfdir} \ + --libdir=%{_libdir} \ --docdir=%{_docdir}/lldpd -[ -f /usr/include/net-snmp/agent/struct.h ] || touch src/struct.h +[ -f %{_includedir}/net-snmp/agent/struct.h ] || touch src/struct.h make %{?_smp_mflags} %install @@ -209,9 +212,9 @@ rm -rf $RPM_BUILD_ROOT %dir %attr(750,root,root) %lldpd_chroot %config %attr(755,root,root) %{_initrddir}/lldpd %if 0%{?suse_version} -%attr(644,root,root) /var/adm/fillup-templates/sysconfig.lldpd +%attr(644,root,root) %{_var}/adm/fillup-templates/sysconfig.lldpd %else -%config(noreplace) /etc/sysconfig/lldpd +%config(noreplace) %{_sysconfdir}/sysconfig/lldpd %endif %files devel -- 2.39.5