]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph.spec.in: don't try to package __pycache__ for SUSE
authorTim Serong <tserong@suse.com>
Fri, 19 Aug 2016 11:16:48 +0000 (21:16 +1000)
committerTim Serong <tserong@suse.com>
Wed, 24 Aug 2016 09:09:14 +0000 (19:09 +1000)
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 <tserong@suse.com>
ceph.spec.in

index dc132ad6103e3138ac204948e8b08ca0d513a64c..8e47543a34df4f54e56569a6b5494df86246b366 100644 (file)
@@ -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