summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-12-09 12:04:51 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-12-09 10:05:18 -0500
commitfb900c6ed1680f0fd9f0df6645c36e169ba756d4 (patch)
treebbbe59eb17ea9237efd340428f62ff06b508f297
parent728e1917bce6950a38642556db2fd1219a36b725 (diff)
downloadsssd-fb900c6ed1680f0fd9f0df6645c36e169ba756d4.tar.gz
sssd-fb900c6ed1680f0fd9f0df6645c36e169ba756d4.tar.bz2
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.
-rw-r--r--contrib/sssd.spec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index dd368957..e3baf043 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