SHA256
1
0
forked from pool/sssd

undo specfile horkage 2

OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=190
This commit is contained in:
Jan Engelhardt 2017-10-25 12:01:40 +00:00 committed by Git OBS Bridge
parent b37bcee6c1
commit 1509d47d02

View File

@ -431,27 +431,28 @@ export LDFLAGS="-pie"
make %{?_smp_mflags} all make %{?_smp_mflags} all
%install %install
make install DESTDIR="%buildroot" b="%buildroot"
make install DESTDIR="$b"
# Copy default sssd.conf file # Copy default sssd.conf file
install -d "%buildroot/%_mandir"/{cs,cs/man8,nl,nl/man8,pt,pt/man8,uk,uk/man1} \ install -d "$b/%_mandir"/{cs,cs/man8,nl,nl/man8,pt,pt/man8,uk,uk/man1} \
"%buildroot/%_mandir"/{uk/man5,uk/man8} "$b/%_mandir"/{uk/man5,uk/man8}
install -d "%buildroot/%_sysconfdir/sssd" install -d "$b/%_sysconfdir/sssd"
install -m600 src/examples/sssd-example.conf "%buildroot/%_sysconfdir/sssd/sssd.conf" install -m600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf"
install -d "%buildroot/%_sysconfdir/sssd/conf.d" install -d "$b/%_sysconfdir/sssd/conf.d"
install -d "%buildroot/%_unitdir" install -d "$b/%_unitdir"
install -m644 %{S:4} "%buildroot/%_unitdir/sssd.service" install -m644 %{S:4} "$b/%_unitdir/sssd.service"
rm -Rf "%buildroot/%_initddir" rm -Rf "$b/%_initddir"
ln -s service "%buildroot/%_sbindir/rcsssd" ln -s service "$b/%_sbindir/rcsssd"
mkdir -p "%buildroot/%sssdstatedir/mc" mkdir -p "$b/%sssdstatedir/mc"
mkdir -p "%buildroot/%_sysconfdir/ld.so.conf.d" mkdir -p "$b/%_sysconfdir/ld.so.conf.d"
cat >"%buildroot/%_sysconfdir/ld.so.conf.d/sssd-wbclient.conf" <<-EOF cat >"$b/%_sysconfdir/ld.so.conf.d/sssd-wbclient.conf" <<-EOF
%_libdir/%name/modules %_libdir/%name/modules
EOF 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 %find_lang %name --all-name