[lcgdm] adjust %files for PEP 3147

tomspur tomspur at fedoraproject.org
Wed Aug 25 15:47:40 UTC 2010


commit b4f940d21446a512a63bc78f6ec7f89e5a0ad5ef
Author: Thomas Spura <tomspur at fedoraproject.org>
Date:   Wed Aug 25 17:47:26 2010 +0200

    adjust %files for PEP 3147

 lcgdm.spec |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/lcgdm.spec b/lcgdm.spec
index d381719..4873688 100644
--- a/lcgdm.spec
+++ b/lcgdm.spec
@@ -11,6 +11,7 @@
 %if %{?fedora}%{!?fedora:0} >= 13
 %global altpython python3
 %global __altpython %{_bindir}/python3
+%global with_python3 1
 %endif
 
 %if %{?altpython:1}%{!?altpython:0}
@@ -2067,6 +2068,9 @@ fi
 %{altpython_sitearch}/lfc2.py*
 %{altpython_sitearch}/_lfc2thr.so
 %{altpython_sitearch}/lfc2thr.py*
+%if 0%{?with_python3}
+%{altpython_sitearch}/__pycache__/lfc*
+%endif # with_python3
 %endif
 
 %files -n lfc-mysql
@@ -2184,6 +2188,9 @@ fi
 %{altpython_sitearch}/dpm.py*
 %{altpython_sitearch}/_dpm2.so
 %{altpython_sitearch}/dpm2.py*
+%if 0%{?with_python3}
+%{altpython_sitearch}/__pycache__/dpm*
+%endif # with_python3
 %endif
 
 %files -n dpm-mysql
@@ -2397,6 +2404,7 @@ fi
 
 %changelog
 * Wed Aug 25 2010 Thomas Spura <tomspur at fedoraproject.org> - 1.7.4.7-4
+- adjust %%files for PEP 3147
 - rebuild with python3.2
   http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
 


More information about the scm-commits mailing list