mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-25 01:35:17 +00:00
Fix python3-clang
Drop confusing `cd ..` so we stay in the root of the LLVM sources and the install command succeeds.
This commit is contained in:
parent
4a3b0b3b90
commit
1c8a88c870
1 changed files with 2 additions and 4 deletions
|
@ -98,8 +98,6 @@ touch %{buildroot}%{_bindir}/llvm-config%{exec_suffix}
|
||||||
mkdir -p %{buildroot}%{pkg_datadir}/llvm/cmake
|
mkdir -p %{buildroot}%{pkg_datadir}/llvm/cmake
|
||||||
cp -Rv cmake/* %{buildroot}%{pkg_datadir}/llvm/cmake
|
cp -Rv cmake/* %{buildroot}%{pkg_datadir}/llvm/cmake
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region CLANG installation
|
#region CLANG installation
|
||||||
|
@ -134,7 +132,7 @@ mkdir -p %{buildroot}%{python3_sitelib}/clang/
|
||||||
# install: omitting directory 'bindings/python/clang/__pycache__'
|
# install: omitting directory 'bindings/python/clang/__pycache__'
|
||||||
# NOTE: this only happens if we include the gdb plugin of libomp.
|
# NOTE: this only happens if we include the gdb plugin of libomp.
|
||||||
# Remove the plugin with command and we're good: rm -rf %{buildroot}/%{_datarootdir}/gdb
|
# Remove the plugin with command and we're good: rm -rf %{buildroot}/%{_datarootdir}/gdb
|
||||||
install -p -m644 clang/bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/ || true
|
install -p -m644 clang/bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/
|
||||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/clang
|
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/clang
|
||||||
|
|
||||||
# install scanbuild-py to python sitelib.
|
# install scanbuild-py to python sitelib.
|
||||||
|
@ -268,7 +266,7 @@ done
|
||||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Alternatives/
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Alternatives/
|
||||||
touch %{buildroot}%{_bindir}/ld
|
touch %{buildroot}%{_bindir}/ld
|
||||||
|
|
||||||
install -D -m 644 -t %{buildroot}%{_mandir}/man1/ %{src_tarball_dir}/lld/docs/ld.lld.1
|
install -D -m 644 -t %{buildroot}%{_mandir}/man1/ lld/docs/ld.lld.1
|
||||||
|
|
||||||
%post -n %{pkg_name_lld}
|
%post -n %{pkg_name_lld}
|
||||||
%{_sbindir}/update-alternatives --install %{_bindir}/ld ld %{_bindir}/ld.lld 1
|
%{_sbindir}/update-alternatives --install %{_bindir}/ld ld %{_bindir}/ld.lld 1
|
||||||
|
|
Loading…
Reference in a new issue