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:18 -0500 |
commit | fb900c6ed1680f0fd9f0df6645c36e169ba756d4 (patch) | |
tree | bbbe59eb17ea9237efd340428f62ff06b508f297 /contrib/sssd.spec.in | |
parent | 728e1917bce6950a38642556db2fd1219a36b725 (diff) | |
download | sssd-fb900c6ed1680f0fd9f0df6645c36e169ba756d4.tar.gz sssd-fb900c6ed1680f0fd9f0df6645c36e169ba756d4.tar.xz sssd-fb900c6ed1680f0fd9f0df6645c36e169ba756d4.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 |