diff --git a/tevent.spec b/tevent.spec index 5ccf500..e64a98d 100644 --- a/tevent.spec +++ b/tevent.spec @@ -224,8 +224,7 @@ rm $RPM_BUILD_ROOT/%{_mandir}/man3/todo.3 %{python_sitearch}/tevent.py %{python_sitearch}/_tevent.so %if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 0%{?rhel_version} > 599 -%{python_sitearch}/tevent.pyc -%{python_sitearch}/tevent.pyo +%{python_sitearch}/tevent.py[co] %endif %if %{with_python3} @@ -233,6 +232,9 @@ rm $RPM_BUILD_ROOT/%{_mandir}/man3/todo.3 %defattr(-,root,root) %{python3_sitearch}/_tevent.%{py3_soflags}.so %{python3_sitearch}/tevent.py +%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 0%{?rhel_version} > 599 +%{python3_sitearch}/__pycache__/tevent.cpython-*.py[co] +%endif %endif %else