[packages/python-configobj] validate.py is used
glen
glen at pld-linux.org
Tue Jun 28 20:43:41 CEST 2016
commit f4be78033af91e590254f1ffbacbb21f4bc1925a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jun 28 21:41:43 2016 +0300
validate.py is used
from validate import VdtMissingValue
python-configobj.spec | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/python-configobj.spec b/python-configobj.spec
index 50d28ce..12ac1e1 100644
--- a/python-configobj.spec
+++ b/python-configobj.spec
@@ -1,6 +1,7 @@
# NOTE:
# Pollutes module namespace by
-# %{py_sitescriptdir}/_version.py*
+# %{py*_sitescriptdir}/_version.py*
+# %{py*_sitescriptdir}/validate.py*
#
# Conditional build:
@@ -71,16 +72,10 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%py_install
%py_postclean
-
-# Seems not be needed:
-%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/validate.py*
%endif
%if %{with python3}
%py3_install
-# Seems not be needed:
-%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/validate.py
-%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/__pycache__/validate.*
%endif
%clean
@@ -92,6 +87,8 @@ rm -rf $RPM_BUILD_ROOT
%{py_sitescriptdir}/%{module}.py[co]
# Import error without _version.py
%{py_sitescriptdir}/_version.py[co]
+# from validate import VdtMissingValue
+%{py_sitescriptdir}/validate.py[co]
%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
%endif
@@ -103,5 +100,8 @@ rm -rf $RPM_BUILD_ROOT
# Import error without _version.py
%{py3_sitescriptdir}/_version.py
%{py3_sitescriptdir}/__pycache__/_version.*.pyc
+# from validate import VdtMissingValue
+%{py3_sitescriptdir}/validate.py
+%{py3_sitescriptdir}/__pycache__/validate.*.pyc
%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-configobj.git/commitdiff/f4be78033af91e590254f1ffbacbb21f4bc1925a
More information about the pld-cvs-commit
mailing list