summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/Makefile.am2
-rw-r--r--sss_client/Makefile.am7
-rw-r--r--sssd.spec.in6
3 files changed, 7 insertions, 8 deletions
diff --git a/server/Makefile.am b/server/Makefile.am
index 5eed43ca..2caf4f2c 100644
--- a/server/Makefile.am
+++ b/server/Makefile.am
@@ -386,7 +386,7 @@ memberof_la_SOURCES = \
memberof_la_CFLAGS = \
$(AM_CFLAGS)
memberof_la_LDFLAGS = \
- -version-info 1:0:0 \
+ -avoid-version \
-module
############
diff --git a/sss_client/Makefile.am b/sss_client/Makefile.am
index f9c8903a..eaedc5f9 100644
--- a/sss_client/Makefile.am
+++ b/sss_client/Makefile.am
@@ -19,7 +19,7 @@ libnss_sss_la_SOURCES = \
sss_cli.h
libnss_sss_la_LDFLAGS = \
-module \
- -version-info 2:0:0
+ -avoid-version
pam_sss_la_SOURCES = \
pam_sss.c \
@@ -33,7 +33,7 @@ pam_sss_la_LDFLAGS = \
-lpam \
-lpam_misc \
-module \
- -version-info 1:0:0
+ -avoid-version
noinst_PROGRAMS = pam_test_client
pam_test_client_SOURCES = pam_test_client.c
@@ -41,3 +41,6 @@ pam_test_client_LDFLAGS = -lpam -lpam_misc
EXTRA_DIST = build/config.rpath
+
+install-data-hook:
+ mv $(DESTDIR)/$(nsslibdir)/libnss_sss.so $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2
diff --git a/sssd.spec.in b/sssd.spec.in
index 0bba914e..84863189 100644
--- a/sssd.spec.in
+++ b/sssd.spec.in
@@ -104,19 +104,15 @@ rm -rf $RPM_BUILD_ROOT
%{_sbindir}/sss_groupmod
%{_libexecdir}/%{servicename}/
%{_libdir}/%{name}/
-%{_libdir}/ldb/memberof.so*
+%{_libdir}/ldb/memberof.so
%dir %{_sharedstatedir}/sss/
%attr(700,root,root) %dir %{_sharedstatedir}/sss/db
%dir %{_sharedstatedir}/sss/pipes
%attr(700,root,root) %dir %{_sharedstatedir}/sss/pipes/private
%dir %{_sysconfdir}/sssd
%config(noreplace) %{_sysconfdir}/sssd/sssd.conf
-/%{_lib}/libnss_sss.so
/%{_lib}/libnss_sss.so.2
-/%{_lib}/libnss_sss.so.2.0.0
/%{_lib}/security/pam_sss.so
-/%{_lib}/security/pam_sss.so.1
-/%{_lib}/security/pam_sss.so.1.0.0
%{_mandir}/man8/*
%{_datadir}/locale/*/LC_MESSAGES/sss_client.mo