[pytrailer] Add __pycache__ conditional in files for F15+

Stanislav Ochotnicky sochotni at fedoraproject.org
Wed Oct 27 09:11:29 UTC 2010


commit 6a3f5d445aaf61632cbd6e5a430103b6a7cf5116
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Wed Oct 27 11:08:02 2010 +0200

    Add __pycache__ conditional in files for F15+

 pytrailer.spec |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pytrailer.spec b/pytrailer.spec
index 0c4ead3..bcf5ef0 100644
--- a/pytrailer.spec
+++ b/pytrailer.spec
@@ -84,7 +84,10 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %doc LICENSE README
 %{python3_sitelib}/%{name}*
+# we __pycache__ dirs exist from Python 3.2+
+%if 0%{?fedora} > 14
 %{python3_sitelib}/__pycache__/*
+%endif
 %{python3_sitelib}/*.egg-info
 %endif # with_python3
 


More information about the scm-commits mailing list