[packages/python-moksha-common] fix files

glen glen at pld-linux.org
Sun Nov 23 00:51:42 CET 2014


commit 636cdb30344ecdb4a181078bebe6764fd052566a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 23 01:51:36 2014 +0200

    fix files

 python-moksha-common.spec | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/python-moksha-common.spec b/python-moksha-common.spec
index 6598b65..72dec2c 100644
--- a/python-moksha-common.spec
+++ b/python-moksha-common.spec
@@ -82,6 +82,9 @@ rm -rf $RPM_BUILD_ROOT
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/moksha/common/tests
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/moksha/common/testtools
+
 %py_postclean
 %endif
 
@@ -91,25 +94,30 @@ rm -rf $RPM_BUILD_ROOT
 	install --skip-build \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/moksha/common/tests
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/moksha/common/testtools
 %endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python3}
+%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc README COPYING AUTHORS
 %attr(755,root,root) %{_bindir}/moksha
-#%{py_sitescriptdir}/moksha/
-%{py_sitescriptdir}/%{module}-%{version}*
+%dir %{py_sitescriptdir}/moksha
+%{py_sitescriptdir}/moksha/common
+%{py_sitescriptdir}/moksha.common-%{version}-py*.egg-info
+%{py_sitescriptdir}/moksha.common-%{version}-py*-nspkg.pth
 %endif
 
 %if %{with python3}
 %files -n python3-moksha-common
 %defattr(644,root,root,755)
 %doc README COPYING AUTHORS
-%{py3_sitescriptdir}/moksha/
-%{py3_sitescriptdir}/%{module}-%{version}*
-%{__python}3-moksha
+%dir %{py3_sitescriptdir}/moksha
+%dir %{py3_sitescriptdir}/moksha/common
+%{py3_sitescriptdir}/moksha.common-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-moksha-common.git/commitdiff/636cdb30344ecdb4a181078bebe6764fd052566a



More information about the pld-cvs-commit mailing list