diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-12-09 12:04:51 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-12-09 10:05:10 -0500 |
commit | a50194d27f6c38fcc147c5480b1c0f4b7309301e (patch) | |
tree | 77adc32facc6f07226ea2079ed8859b51c3514e1 /contrib/sssd.spec.in | |
parent | eca06bebf568b0d00285d924db8284cb9eed396d (diff) | |
download | sssd-a50194d27f6c38fcc147c5480b1c0f4b7309301e.tar.gz sssd-a50194d27f6c38fcc147c5480b1c0f4b7309301e.tar.xz sssd-a50194d27f6c38fcc147c5480b1c0f4b7309301e.zip |
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.
Diffstat (limited to 'contrib/sssd.spec.in')
-rw-r--r-- | contrib/sssd.spec.in | 8 |
1 files 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 |