Compare commits

...

3 Commits

View File

@ -2,7 +2,7 @@
%define MAJver %(echo %version | cut -d. -f1)
%define majver %(echo %version | cut -d. -f1-2)
Name: clang
Version: 19.1.7
Version: 20.1.5
Release: 1mamba
Summary: C language family frontend for LLVM
Group: Development/Languages
@ -20,6 +20,7 @@ BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libllvm-devel
BuildRequires: libperl
BuildRequires: libpython311-devel
BuildRequires: libstdc++6-devel
BuildRequires: libxml2-devel
BuildRequires: perl-devel
@ -67,6 +68,8 @@ Requires: gtk-doc
%description -n lib%{name}-apidocs
This package includes the lib%{name} API documentation.
## Don't clean build at the end
#% global __spec_rmbuild_cmd /bin/true
%prep
%setup -q -c -a0 -a1 -a2 -a3
@ -110,16 +113,18 @@ ninja %{_smp_mflags}
cd build
export DESTDIR=%{buildroot}
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
## legacy libclang.so.11 symlink to libclang.so.11.1
#ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/analyze-build
@ -138,10 +143,12 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
%{_bindir}/scan-view
# FIXME: should be libexec64 on 64 bits archs
%{_prefix}/libexec/*
%dir %{_prefix}/lib/libear
%{_prefix}/lib/libear/*
%dir %{_prefix}/lib/libscanbuild
%{_prefix}/lib/libscanbuild/*
%dir %{python3_sitearch}/clang
%{python3_sitearch}/clang/*
%dir %{python3_sitearch}/libear
%{python3_sitearch}/libear/*
%dir %{python3_sitearch}/libscanbuild
%{python3_sitearch}/libscanbuild/*
%dir %{_datadir}/clang/
%{_datadir}/clang/*
%dir %{_datadir}/scan-build
@ -171,7 +178,7 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
%{_libdir}/clang/*/include/*
%dir %{_libdir}/cmake/clang
%{_libdir}/cmake/clang/*.cmake
%doc clang/NOTES.txt clang/README.txt
%doc clang/NOTES.txt
%files -n lib%{name}-apidocs
%defattr(-,root,root)
@ -182,6 +189,18 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
%{_datadir}/doc/Clang/clang/html/.buildinfo
%changelog
* Sat May 24 2025 Automatic Build System <autodist@openmamba.org> 20.1.5-1mamba
- automatic version update by autodist
* Sat May 17 2025 Automatic Build System <autodist@openmamba.org> 20.1.4-1mamba
- automatic version update by autodist
* Sat Mar 08 2025 Automatic Build System <autodist@openmamba.org> 20.1.0-1mamba
- automatic version update by autodist
* 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
- automatic version update by autodist