From: Tim Serong Date: Fri, 19 Aug 2016 11:16:48 +0000 (+1000) Subject: ceph.spec.in: don't try to package __pycache__ for SUSE X-Git-Tag: v11.0.1~390^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=be39d6dc71af13eb3ee0d4482012a2091d121f66;p=ceph.git ceph.spec.in: don't try to package __pycache__ for SUSE When building on openSUSE Tumbleweed, nothing seems to create the various __pycache__ directories (so the build fails because those files don't exist), and in any case they should be created automatically at runtime, so shouldn't need to be packaged. However, the Fedora packaging guidelines suggest including __pycache__, so I've used a %suse_version guard here. Fixes: http://tracker.ceph.com/issues/17106 Signed-off-by: Tim Serong --- diff --git a/ceph.spec.in b/ceph.spec.in index dc132ad6103..8e47543a34d 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1433,15 +1433,19 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 %{python3_sitearch}/cephfs.cpython*.so %{python3_sitearch}/cephfs-*.egg-info %{python3_sitelib}/ceph_volume_client.py +%if ! 0%{?suse_version} %{python3_sitelib}/__pycache__/ceph_volume_client.cpython*.py* +%endif ################################################################################# %files -n python%{python3_pkgversion}-ceph-argparse %defattr(-,root,root,-) %{python3_sitelib}/ceph_argparse.py -%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py* %{python3_sitelib}/ceph_daemon.py +%if ! 0%{?suse_version} +%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py* %{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py* +%endif ################################################################################# %files -n ceph-test