diff --git a/sssd.spec b/sssd.spec index 5748e74..ffc9710 100644 --- a/sssd.spec +++ b/sssd.spec @@ -431,27 +431,28 @@ export LDFLAGS="-pie" make %{?_smp_mflags} all %install -make install DESTDIR="%buildroot" +b="%buildroot" +make install DESTDIR="$b" # Copy default sssd.conf file -install -d "%buildroot/%_mandir"/{cs,cs/man8,nl,nl/man8,pt,pt/man8,uk,uk/man1} \ - "%buildroot/%_mandir"/{uk/man5,uk/man8} -install -d "%buildroot/%_sysconfdir/sssd" -install -m600 src/examples/sssd-example.conf "%buildroot/%_sysconfdir/sssd/sssd.conf" -install -d "%buildroot/%_sysconfdir/sssd/conf.d" -install -d "%buildroot/%_unitdir" -install -m644 %{S:4} "%buildroot/%_unitdir/sssd.service" -rm -Rf "%buildroot/%_initddir" -ln -s service "%buildroot/%_sbindir/rcsssd" +install -d "$b/%_mandir"/{cs,cs/man8,nl,nl/man8,pt,pt/man8,uk,uk/man1} \ + "$b/%_mandir"/{uk/man5,uk/man8} +install -d "$b/%_sysconfdir/sssd" +install -m600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf" +install -d "$b/%_sysconfdir/sssd/conf.d" +install -d "$b/%_unitdir" +install -m644 %{S:4} "$b/%_unitdir/sssd.service" +rm -Rf "$b/%_initddir" +ln -s service "$b/%_sbindir/rcsssd" -mkdir -p "%buildroot/%sssdstatedir/mc" -mkdir -p "%buildroot/%_sysconfdir/ld.so.conf.d" -cat >"%buildroot/%_sysconfdir/ld.so.conf.d/sssd-wbclient.conf" <<-EOF +mkdir -p "$b/%sssdstatedir/mc" +mkdir -p "$b/%_sysconfdir/ld.so.conf.d" +cat >"$b/%_sysconfdir/ld.so.conf.d/sssd-wbclient.conf" <<-EOF %_libdir/%name/modules EOF -find "%buildroot" -type f -name "*.la" -delete +find "$b" -type f -name "*.la" -delete -rm -Rf "%buildroot/%_sysconfdir/dbus-1" "%buildroot/%_datadir/dbus-1" +rm -Rf "$b/%_sysconfdir/dbus-1" "$b/%_datadir/dbus-1" %find_lang %name --all-name