mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 17:34:47 +00:00
Fix handling of llvm-config
This commit is contained in:
parent
edd830c761
commit
c28ca03ed2
1 changed files with 24 additions and 6 deletions
30
llvm.spec
30
llvm.spec
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{pkg_name}
|
||||||
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
|
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
|
@ -284,10 +284,6 @@ pathfix.py -i %{__python3} -pn \
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
mkdir -p %{buildroot}/%{_bindir}
|
mkdir -p %{buildroot}/%{_bindir}
|
||||||
mv %{buildroot}/%{pkg_bindir}/llvm-config %{buildroot}/%{pkg_bindir}/llvm-config%{exec_suffix}-%{__isa_bits}
|
|
||||||
|
|
||||||
# ghost presence
|
|
||||||
touch %{buildroot}%{_bindir}/llvm-config%{exec_suffix}
|
|
||||||
|
|
||||||
%if %{without compat_build}
|
%if %{without compat_build}
|
||||||
|
|
||||||
|
@ -384,7 +380,6 @@ ln -s %{_libdir}/LLVMgold.so %{buildroot}%{_libdir}/bfd-plugins/
|
||||||
%else
|
%else
|
||||||
|
|
||||||
# Add version suffix to binaries
|
# Add version suffix to binaries
|
||||||
mkdir -p %{buildroot}/%{_bindir}
|
|
||||||
for f in %{buildroot}/%{install_bindir}/*; do
|
for f in %{buildroot}/%{install_bindir}/*; do
|
||||||
filename=`basename $f`
|
filename=`basename $f`
|
||||||
ln -s ../../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename%{exec_suffix}
|
ln -s ../../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename%{exec_suffix}
|
||||||
|
@ -416,6 +411,26 @@ rm -Rf %{build_install_prefix}/share/opt-viewer
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# llvm-config special casing. llvm-config is managed by update-alternatives.
|
||||||
|
# the original file must remain available for compatibility with the CMake
|
||||||
|
# infrastructure. Without compat, cmake points to the symlink, with compat it
|
||||||
|
# points to the original file.
|
||||||
|
|
||||||
|
%if %{without compat_build}
|
||||||
|
|
||||||
|
mv %{buildroot}/%{pkg_bindir}/llvm-config %{buildroot}/%{pkg_bindir}/llvm-config%{exec_suffix}-%{__isa_bits}
|
||||||
|
|
||||||
|
%else
|
||||||
|
|
||||||
|
rm %{buildroot}%{_bindir}/llvm-config%{exec_suffix}
|
||||||
|
(cd %{buildroot}/%{pkg_bindir} ; ln -s llvm-config llvm-config%{exec_suffix}-%{__isa_bits} )
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# ghost presence
|
||||||
|
touch %{buildroot}%{_bindir}/llvm-config%{exec_suffix}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# TODO: Fix the failures below
|
# TODO: Fix the failures below
|
||||||
|
@ -545,6 +560,9 @@ fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 17 2021 sguelton@redhat.com - 12.0.0-2
|
||||||
|
- Fix handling of llvm-config
|
||||||
|
|
||||||
* Mon May 10 2021 Serge Guelton - 12.0.0-1
|
* Mon May 10 2021 Serge Guelton - 12.0.0-1
|
||||||
- 12.0.0 final release
|
- 12.0.0 final release
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue