From 1509d47d0282b5763b6e5540c030e9b669111e20c687a8d0ae6f725c5901a3d4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 25 Oct 2017 12:01:40 +0000 Subject: [PATCH] undo specfile horkage 2 OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=190 --- sssd.spec | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) 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