Compile .py files

f41
David Tardon 2 years ago
parent d0e5108264
commit abc46d7d86

@ -15,6 +15,7 @@ BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: pkgconfig(cppunit)
BuildRequires: pkgconfig(zlib)
BuildRequires: python3-devel
BuildRequires: make
%description
@ -69,10 +70,13 @@ sed -i \
%install
%make_install
rm -f %{buildroot}/%{_libdir}/*.la
# we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}
%py_byte_compile %{python3} %{buildroot}%{_datadir}
%ldconfig_scriptlets
%check
@ -104,6 +108,7 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PA
%files gdb
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-%{apiversion}-gdb.py*
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-stream-%{apiversion}-gdb.py*
%{_datadir}/gdb/auto-load%{_libdir}/__pycache__
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/python
%endif

Loading…
Cancel
Save