summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-10-20 13:40:55 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-10-20 13:56:50 -0400
commitddbe8e598745ff1bcce5f89fd80945f56ece2ead (patch)
tree8287559230287071ca36fd047ba4f3074496fbf9 /contrib
parent1199bb0194d735e212f80735b33307a3467b7a3c (diff)
downloadsssd-ddbe8e598745ff1bcce5f89fd80945f56ece2ead.tar.gz
sssd-ddbe8e598745ff1bcce5f89fd80945f56ece2ead.tar.xz
sssd-ddbe8e598745ff1bcce5f89fd80945f56ece2ead.zip
Fix RPM builds on older versions of rpmbuild
Older versions of rpmbuild do not accept multiple '-f' options being specified, so we'll add the krb5_locator_plugin.so to the sss_daemon.lang filelist instead of putting it in its own file.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sssd.spec.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 4d1e0c990..882564864 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -108,16 +108,17 @@ rm -f \
$RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la \
$RPM_BUILD_ROOT/%{python_sitearch}/pysss.la
-touch locator.filelist
if test -e $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so
then
- echo %{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so > locator.filelist
+ # Apppend this file to the sss_daemon.lang
+ # Older versions of rpmbuild can only handle one -f option
+ echo %{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so >> sss_daemon.lang
fi
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f locator.filelist -f sss_daemon.lang
+%files -f sss_daemon.lang
%defattr(-,root,root,-)
%doc COPYING
%{_initrddir}/%{name}