From be39d6dc71af13eb3ee0d4482012a2091d121f66 Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Fri, 19 Aug 2016 21:16:48 +1000 Subject: [PATCH] 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 --- ceph.spec.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5