Skip to content

Commit

Permalink
[llvm] Fix local builds of llvm. Contributes to JB#50500
Browse files Browse the repository at this point in the history
Cleanup spec.
  • Loading branch information
mlehtima committed Oct 14, 2020
1 parent 1b2bbd7 commit 227d6e8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rpm/llvm.spec
Expand Up @@ -14,7 +14,6 @@ Version: 9.0.1
Release: 0
Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
License: University of Illinois/NCSA Open Source License
Group: Development/Tools
URL: http://llvm.org/
Source: %{version}/%{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Expand All @@ -41,9 +40,10 @@ Requires: %{name} = %{version}
LLVM Header files

%prep
%setup -q -n %{name}-%{version}/%{name}/llvm
%setup -q -n %{name}-%{version}/%{name}

%build
pushd llvm

mkdir -p build
pushd build
Expand Down Expand Up @@ -80,16 +80,23 @@ pushd build
%ninja_build
popd

popd

%install
pushd llvm

rm -rf %{buildroot}
%ninja_install -C build

popd

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%license llvm/LICENSE.TXT
%{_bindir}/*
%{_libdir}/*.so.*
%{_libdir}/libLLVM-*.so
Expand Down

0 comments on commit 227d6e8

Please sign in to comment.