fix python bindings by installing in %python3_sitearch [release 19.1.7-2mamba;Sat Jan 25 2025]
This commit is contained in:
parent
41ecd9bc0f
commit
3d1a08add9
27
clang.spec
27
clang.spec
@ -3,7 +3,7 @@
|
|||||||
%define majver %(echo %version | cut -d. -f1-2)
|
%define majver %(echo %version | cut -d. -f1-2)
|
||||||
Name: clang
|
Name: clang
|
||||||
Version: 19.1.7
|
Version: 19.1.7
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: C language family frontend for LLVM
|
Summary: C language family frontend for LLVM
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -67,6 +67,8 @@ Requires: gtk-doc
|
|||||||
%description -n lib%{name}-apidocs
|
%description -n lib%{name}-apidocs
|
||||||
This package includes the lib%{name} API documentation.
|
This package includes the lib%{name} API documentation.
|
||||||
|
|
||||||
|
## Don't clean build at the end
|
||||||
|
#% global __spec_rmbuild_cmd /bin/true
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -a0 -a1 -a2 -a3
|
%setup -q -c -a0 -a1 -a2 -a3
|
||||||
@ -110,16 +112,18 @@ ninja %{_smp_mflags}
|
|||||||
cd build
|
cd build
|
||||||
export DESTDIR=%{buildroot}
|
export DESTDIR=%{buildroot}
|
||||||
ninja install
|
ninja install
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Move scanbuild-py into site-packages and install Python bindings
|
||||||
|
install -d %{buildroot}%{python3_sitearch}
|
||||||
|
mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitearch}/
|
||||||
|
cp -a clang/bindings/python/clang %{buildroot}%{python3_sitearch}/
|
||||||
|
|
||||||
rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
||||||
|
|
||||||
## legacy libclang.so.11 symlink to libclang.so.11.1
|
|
||||||
#ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver}
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/analyze-build
|
%{_bindir}/analyze-build
|
||||||
@ -138,10 +142,12 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
|||||||
%{_bindir}/scan-view
|
%{_bindir}/scan-view
|
||||||
# FIXME: should be libexec64 on 64 bits archs
|
# FIXME: should be libexec64 on 64 bits archs
|
||||||
%{_prefix}/libexec/*
|
%{_prefix}/libexec/*
|
||||||
%dir %{_prefix}/lib/libear
|
%dir %{python3_sitearch}/clang
|
||||||
%{_prefix}/lib/libear/*
|
%{python3_sitearch}/clang/*
|
||||||
%dir %{_prefix}/lib/libscanbuild
|
%dir %{python3_sitearch}/libear
|
||||||
%{_prefix}/lib/libscanbuild/*
|
%{python3_sitearch}/libear/*
|
||||||
|
%dir %{python3_sitearch}/libscanbuild
|
||||||
|
%{python3_sitearch}/libscanbuild/*
|
||||||
%dir %{_datadir}/clang/
|
%dir %{_datadir}/clang/
|
||||||
%{_datadir}/clang/*
|
%{_datadir}/clang/*
|
||||||
%dir %{_datadir}/scan-build
|
%dir %{_datadir}/scan-build
|
||||||
@ -182,6 +188,9 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
|||||||
%{_datadir}/doc/Clang/clang/html/.buildinfo
|
%{_datadir}/doc/Clang/clang/html/.buildinfo
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 25 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 19.1.7-2mamba
|
||||||
|
- fix python bindings by installing in %python3_sitearch
|
||||||
|
|
||||||
* Wed Jan 15 2025 Automatic Build System <autodist@openmamba.org> 19.1.7-1mamba
|
* Wed Jan 15 2025 Automatic Build System <autodist@openmamba.org> 19.1.7-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user