Petr Lautrbach 2018-07-16 13:24:29 +02:00
parent 82235c11c3
commit 829d3b3f71

View File

@ -1,5 +1,8 @@
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
# Disable automatic compilation of Python files in extra directories
%global _python_bytecompile_extra 0
Summary: Analysis plugins for use with setroubleshoot
Name: setroubleshoot-plugins
Version: 3.3.9
@ -36,6 +39,9 @@ make PYTHON=%{__python3}
rm -rf %{buildroot}
make DESTDIR=%{buildroot} PYTHON=%{__python3} pkgdocdir=%{_pkgdocdir} install
%find_lang %{name}
# Manually invoke the python byte compile macro for each path that needs byte
# compilation.
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/setroubleshoot/plugins
%clean
rm -rf %{buildroot}