Skip to content

Commit

Permalink
ceph.spec.in: don't try to package __pycache__ for SUSE
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tserong committed Aug 24, 2016
1 parent 07a06d1 commit be39d6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be39d6d

Please sign in to comment.