summaryrefslogtreecommitdiffstats
path: root/sssd.spec.in
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-05-19 14:03:14 -0400
committerSimo Sorce <ssorce@redhat.com>2009-05-19 15:17:14 -0400
commit897060147ddea72ecc1e86c6b7b915ff1d462f71 (patch)
treea758e9d24c4c42a3c12b9b3b3c1251546928319a /sssd.spec.in
parent0a6de98efdfdd6108ca3394129d1eed873715df6 (diff)
downloadsssd-897060147ddea72ecc1e86c6b7b915ff1d462f71.tar.gz
sssd-897060147ddea72ecc1e86c6b7b915ff1d462f71.tar.xz
sssd-897060147ddea72ecc1e86c6b7b915ff1d462f71.zip
Fix RPM generation issues with sssd
Ensures that the common libraries build statically. Also ensures that the sssd.spec creates the SYSV init script with the appropriate permissions. Cleans up the useless rpmdist target that was obsolete. Adds the *.so.N.0.0 files to the RPM, as the .so and .so.N files were dangling symlinks.
Diffstat (limited to 'sssd.spec.in')
-rw-r--r--sssd.spec.in19
1 files changed, 4 insertions, 15 deletions
diff --git a/sssd.spec.in b/sssd.spec.in
index dd5cb4ddd..886812da5 100644
--- a/sssd.spec.in
+++ b/sssd.spec.in
@@ -71,13 +71,8 @@ make install DESTDIR=$RPM_BUILD_ROOT
# Delete files that we do not want to package for now
# Eventually some of these will be added to a -devel package
rm -f \
- $RPM_BUILD_ROOT/%{_lib}/libnss_sss.a \
$RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
- $RPM_BUILD_ROOT/%{_lib}/libnss_sss.so.2.0.0 \
- $RPM_BUILD_ROOT/%{_lib}/security/pam_sss.a \
$RPM_BUILD_ROOT/%{_lib}/security/pam_sss.la \
- $RPM_BUILD_ROOT/%{_lib}/security/pam_sss.so.1 \
- $RPM_BUILD_ROOT/%{_lib}/security/pam_sss.so.1.0.0 \
$RPM_BUILD_ROOT/%{_includedir}/collection.h \
$RPM_BUILD_ROOT/%{_includedir}/collection_tools.h \
$RPM_BUILD_ROOT/%{_includedir}/dhash.h \
@@ -87,19 +82,10 @@ rm -f \
$RPM_BUILD_ROOT/%{_libdir}/ldb/memberof.la \
$RPM_BUILD_ROOT/%{_libdir}/libcollection.a \
$RPM_BUILD_ROOT/%{_libdir}/libcollection.la \
- $RPM_BUILD_ROOT/%{_libdir}/libcollection.so \
- $RPM_BUILD_ROOT/%{_libdir}/libcollection.so.0 \
- $RPM_BUILD_ROOT/%{_libdir}/libcollection.so.0.0.0 \
$RPM_BUILD_ROOT/%{_libdir}/libdhash.a \
$RPM_BUILD_ROOT/%{_libdir}/libdhash.la \
- $RPM_BUILD_ROOT/%{_libdir}/libdhash.so \
- $RPM_BUILD_ROOT/%{_libdir}/libdhash.so.0 \
- $RPM_BUILD_ROOT/%{_libdir}/libdhash.so.0.0.0 \
$RPM_BUILD_ROOT/%{_libdir}/libini_config.a \
$RPM_BUILD_ROOT/%{_libdir}/libini_config.la \
- $RPM_BUILD_ROOT/%{_libdir}/libini_config.so \
- $RPM_BUILD_ROOT/%{_libdir}/libini_config.so.0 \
- $RPM_BUILD_ROOT/%{_libdir}/libini_config.so.0.0.0 \
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/collection.pc \
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/dhash.pc \
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/ini_config.pc \
@@ -116,7 +102,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING
-%{_initrddir}/%{name}
+%attr(755,root,root) %{_initrddir}/%{name}
%{_sbindir}/sssd
%{_sbindir}/sss_useradd
%{_sbindir}/sss_userdel
@@ -130,7 +116,10 @@ rm -rf $RPM_BUILD_ROOT
%{_sharedstatedir}/sss/
/%{_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/*
%post