Skip to content

Commit 227d6e8

Browse files
committed
[llvm] Fix local builds of llvm. Contributes to JB#50500
Cleanup spec.
1 parent 1b2bbd7 commit 227d6e8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

rpm/llvm.spec

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Version: 9.0.1
1414
Release: 0
1515
Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
1616
License: University of Illinois/NCSA Open Source License
17-
Group: Development/Tools
1817
URL: http://llvm.org/
1918
Source: %{version}/%{name}-%{version}.tar.gz
2019
Requires(post): /sbin/ldconfig
@@ -41,9 +40,10 @@ Requires: %{name} = %{version}
4140
LLVM Header files
4241

4342
%prep
44-
%setup -q -n %{name}-%{version}/%{name}/llvm
43+
%setup -q -n %{name}-%{version}/%{name}
4544

4645
%build
46+
pushd llvm
4747

4848
mkdir -p build
4949
pushd build
@@ -80,16 +80,23 @@ pushd build
8080
%ninja_build
8181
popd
8282

83+
popd
84+
8385
%install
86+
pushd llvm
87+
8488
rm -rf %{buildroot}
8589
%ninja_install -C build
8690

91+
popd
92+
8793
%post -p /sbin/ldconfig
8894

8995
%postun -p /sbin/ldconfig
9096

9197
%files
9298
%defattr(-, root, root)
99+
%license llvm/LICENSE.TXT
93100
%{_bindir}/*
94101
%{_libdir}/*.so.*
95102
%{_libdir}/libLLVM-*.so

0 commit comments

Comments
 (0)