From a50194d27f6c38fcc147c5480b1c0f4b7309301e Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Wed, 9 Dec 2009 12:04:51 +0100 Subject: Fix egg-info file generation in the spec file We were actually listing files that are on the system, not those that we created in the $RPM_BUILD_ROOT. Also, by doing an echo with the regular expression, we put more than one file on one line. Rpmbuild doesn't like that and will not generate the rpms. --- contrib/sssd.spec.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index dd3689574..e3baf043e 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -125,10 +125,10 @@ then # Older versions of rpmbuild can only handle one -f option echo %{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so >> sss_daemon.lang fi -if ls $RPM_BUILD_ROOT/%{python_sitelib}/*.egg-info 1> /dev/null 2> /dev/null -then - echo %{python_sitelib}/*.egg-info >> sss_daemon.lang -fi +for file in `ls $RPM_BUILD_ROOT/%{python_sitelib}/*.egg-info 2> /dev/null` +do + echo %{python_sitelib}/`basename $file` >> sss_daemon.lang +done %clean rm -rf $RPM_BUILD_ROOT -- cgit