From 38b1894b6846798bbcf2cd2d56e0491e02750537 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 20 Oct 2009 13:40:55 -0400 Subject: [PATCH] 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. --- contrib/sssd.spec.in | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 4d1e0c9..8825648 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} -- 1.6.2.5