add legacy provide for libclang.so.11 [release 11.1.0-2mamba;Thu Mar 25 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 21:24:32 +01:00
parent f47fe1dcba
commit 94632c79d2

View File

@ -1,8 +1,9 @@
%define gccver %(gcc -dumpversion) %define gccver %(gcc -dumpversion)
%define MAJver %(echo %version | cut -d. -f1)
%define majver %(echo %version | cut -d. -f1-2) %define majver %(echo %version | cut -d. -f1-2)
Name: clang Name: clang
Version: 11.0.1 Version: 11.1.0
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
@ -24,7 +25,6 @@ BuildRequires: perl-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: llvm = %{version} BuildRequires: llvm = %{version}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
C language family frontend for LLVM. C language family frontend for LLVM.
@ -32,6 +32,13 @@ C language family frontend for LLVM.
%package -n lib%{name} %package -n lib%{name}
Group: System/Libraries Group: System/Libraries
Summary: Shared libraries for %{name} Summary: Shared libraries for %{name}
%ifarch x86_64 aarch64
Provides: libclang.so.%{MAJver}()(64bit)
Provides: libclang.so.%{MAJver}(LLVM_%{MAJver})(64bit)
%else
Provides: libclang.so.%{MAJver}
Provides: libclang.so.%{MAJver}(LLVM_%{MAJver})
%endif
%description -n lib%{name} %description -n lib%{name}
This package contains shared libraries for %{name}. This package contains shared libraries for %{name}.
@ -41,7 +48,7 @@ Summary: Libraries and header files for LLVM
Group: Development/Languages Group: Development/Languages
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: clang-devel Provides: clang-devel
Obsoletes: clang-devel Obsoletes: clang-devel < 11.1.0
%description -n lib%{name}-devel %description -n lib%{name}-devel
C language family frontend for LLVM. C language family frontend for LLVM.
@ -59,9 +66,10 @@ This package includes the lib%{name} API documentation.
%debug_package %debug_package
%prep %prep
#% setup -q -a1 -n %{name}-%{version}.src %setup -q -a1 -n %{name}-%{version}.src
%setup -q -n %{name}-%{version}.src -D -T #% setup -q -n %{name}-%{version}.src
:<< _EOF #-D -T
#:<< _EOF
mv clang-tools-extra-%{version}.src tools/extra mv clang-tools-extra-%{version}.src tools/extra
@ -99,6 +107,9 @@ ninja install
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}"
@ -128,8 +139,8 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
%{_prefix}/libexec/c++-analyzer %{_prefix}/libexec/c++-analyzer
%{_prefix}/libexec/ccc-analyzer %{_prefix}/libexec/ccc-analyzer
%dir %{_libdir}/clang %dir %{_libdir}/clang
%dir %{_libdir}/clang/%{version} #%dir %{_libdir}/clang/%{version}
%{_libdir}/clang/%{version}/* #%{_libdir}/clang/%{version}/*
%dir %{_datadir}/clang/ %dir %{_datadir}/clang/
%{_datadir}/clang/* %{_datadir}/clang/*
%dir %{_datadir}/scan-build %dir %{_datadir}/scan-build
@ -157,6 +168,8 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
%{_includedir}/clang-tidy/* %{_includedir}/clang-tidy/*
%{_libdir}/libclang*.so %{_libdir}/libclang*.so
%{_libdir}/libfindAllSymbols.so %{_libdir}/libfindAllSymbols.so
%dir %{_libdir}/clang/%{version}/include
%{_libdir}/clang/%{version}/include/*
%dir %{_libdir}/cmake/clang %dir %{_libdir}/cmake/clang
%{_libdir}/cmake/clang/*.cmake %{_libdir}/cmake/clang/*.cmake
%doc NOTES.txt README.txt %doc NOTES.txt README.txt
@ -169,6 +182,12 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
%{_docdir}/clang-tools/* %{_docdir}/clang-tools/*
%changelog %changelog
* Thu Mar 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 11.1.0-2mamba
- add legacy provide for libclang.so.11
* Tue Mar 16 2021 Automatic Build System <autodist@mambasoft.it> 11.1.0-1mamba
- automatic version update by autodist
* Mon Jan 11 2021 Automatic Build System <autodist@mambasoft.it> 11.0.1-1mamba * Mon Jan 11 2021 Automatic Build System <autodist@mambasoft.it> 11.0.1-1mamba
- automatic version update by autodist - automatic version update by autodist