diff --git a/sssd.spec b/sssd.spec index 69fe122..b01ea33 100644 --- a/sssd.spec +++ b/sssd.spec @@ -390,7 +390,7 @@ export LDFLAGS="-pie" --with-pipe-path="%pipepath" \ --with-pubconf-path="%pubconfpath" \ --with-init-dir="%_initrddir" \ - --with-environment-file=%{_sysconfdir}/sysconfig/sssd \ + --with-environment-file="%_sysconfdir/sysconfig/sssd" \ --with-initscript=systemd \ --with-syslog=journald \ --enable-nsslibdir="/%_lib" \ @@ -407,7 +407,7 @@ make %{?_smp_mflags} all %install # sss_obfuscate is compatible with both python 2 and 3 -sed -i -e 's:/usr/bin/python:/usr/bin/python3:' src/tools/sss_obfuscate +sed -i -e 's:%_bindir/python:%_bindir/python3:' src/tools/sss_obfuscate b="%buildroot" make install DESTDIR="$b" @@ -421,8 +421,8 @@ install -d "$b/%_sysconfdir/sssd/conf.d" install -d "$b/%_unitdir" # Copy default logrotate file -install -d "$b/%{_sysconfdir}/logrotate.d" -install -m644 src/examples/logrotate "$b/%{_sysconfdir}/logrotate.d/sssd" +install -d "$b/%_sysconfdir/logrotate.d" +install -m644 src/examples/logrotate "$b/%_sysconfdir/logrotate.d/sssd" rm -Rf "$b/%_initddir" ln -s service "$b/%_sbindir/rcsssd"