diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2012-01-17 17:22:17 -0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2012-01-24 21:18:49 -0800 |
commit | eec87bb86265f22f9f7b1bc0b49db867b44e34b6 (patch) | |
tree | 4d9661ba8d4e65941d28ee110817ded8ef3d6658 /ceph.spec.in | |
parent | 2c2cc1596cd63b6368d13a2665c6c85d3d8ed532 (diff) | |
download | ceph-eec87bb86265f22f9f7b1bc0b49db867b44e34b6.tar.gz |
package *.py* files
Some post-install rpmbuild defaults byte-compile all packaged python
files, so don't bother removing the .pyc files, and package .py* to
get both .pyo and .pyc. It wastes a tiny little bit of space, but it
makes the spec file portable across a wider range of rpm and python
configurations.
Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicam.br>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'ceph.spec.in')
-rw-r--r-- | ceph.spec.in | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/ceph.spec.in b/ceph.spec.in index 3950fd17492..d4994b51f46 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -255,10 +255,6 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/ceph/ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ceph/ -# remove *.pyc where *.pyo exists -rm $RPM_BUILD_ROOT/%{python_sitelib}/rados.pyc -rm $RPM_BUILD_ROOT/%{python_sitelib}/rbd.pyc -rm $RPM_BUILD_ROOT/%{python_sitelib}/rgw.pyc %clean rm -rf $RPM_BUILD_ROOT @@ -351,12 +347,6 @@ fi %ghost %dir %{_localstatedir}/run/ceph/ %dir %{_sysconfdir}/ceph/ /usr/sbin/rcceph -# not sure why I need to list those for CentOS although they're removed in install -%if 0%{defined centos_version} -%{python_sitelib}/rados.pyc -%{python_sitelib}/rbd.pyc -%{python_sitelib}/rgw.pyc -%endif %{_libdir}/rados-classes/libcls_rbd.so.* %{_libdir}/rados-classes/libcls_rgw.so.* @@ -483,11 +473,8 @@ fi ################################################################################# %files -n python-ceph %defattr(-,root,root,-) -%{python_sitelib}/rados.py -%{python_sitelib}/rados.pyo -%{python_sitelib}/rbd.py -%{python_sitelib}/rbd.pyo -%{python_sitelib}/rgw.py -%{python_sitelib}/rgw.pyo +%{python_sitelib}/rados.py* +%{python_sitelib}/rbd.py* +%{python_sitelib}/rgw.py* %changelog |