mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 17:34:47 +00:00
Simplify spec with rpm macros.
This commit is contained in:
parent
622ff5c1f5
commit
1a4ccaa8f8
2 changed files with 8 additions and 18 deletions
|
@ -1,9 +0,0 @@
|
||||||
#include <bits/wordsize.h>
|
|
||||||
|
|
||||||
#if __WORDSIZE == 32
|
|
||||||
#include "llvm-config-32.h"
|
|
||||||
#elif __WORDSIZE == 64
|
|
||||||
#include "llvm-config-64.h"
|
|
||||||
#else
|
|
||||||
#error "Unknown word size"
|
|
||||||
#endif
|
|
17
llvm.spec
17
llvm.spec
|
@ -7,15 +7,13 @@
|
||||||
|
|
||||||
Name: llvm
|
Name: llvm
|
||||||
Version: 4.0.0
|
Version: 4.0.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
URL: http://llvm.org
|
URL: http://llvm.org
|
||||||
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.xz
|
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.xz
|
||||||
|
|
||||||
Source100: llvm-config.h
|
|
||||||
|
|
||||||
# recognize s390 as SystemZ when configuring build
|
# recognize s390 as SystemZ when configuring build
|
||||||
Patch0: llvm-3.7.1-cmake-s390.patch
|
Patch0: llvm-3.7.1-cmake-s390.patch
|
||||||
Patch1: 0001-CMake-Fix-pthread-handling-for-out-of-tree-builds.patch
|
Patch1: 0001-CMake-Fix-pthread-handling-for-out-of-tree-builds.patch
|
||||||
|
@ -26,6 +24,7 @@ BuildRequires: zlib-devel
|
||||||
BuildRequires: libffi-devel
|
BuildRequires: libffi-devel
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
|
BuildRequires: multilib-rpm-config
|
||||||
%if %{with gold}
|
%if %{with gold}
|
||||||
BuildRequires: binutils-devel
|
BuildRequires: binutils-devel
|
||||||
%endif
|
%endif
|
||||||
|
@ -70,10 +69,7 @@ Summary: LLVM static libraries
|
||||||
Static libraries for the LLVM compiler infrastructure.
|
Static libraries for the LLVM compiler infrastructure.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}.src
|
%autosetup -n %{name}-%{version}.src -p1
|
||||||
%patch0 -p1 -b .s390
|
|
||||||
%patch1 -p1 -b .pthread-fix
|
|
||||||
%patch67 -p1 -b .rust67
|
|
||||||
|
|
||||||
%ifarch armv7hl
|
%ifarch armv7hl
|
||||||
|
|
||||||
|
@ -151,8 +147,8 @@ make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
# fix multi-lib
|
# fix multi-lib
|
||||||
mv -v %{buildroot}%{_bindir}/llvm-config{,-%{__isa_bits}}
|
mv -v %{buildroot}%{_bindir}/llvm-config{,-%{__isa_bits}}
|
||||||
mv -v %{buildroot}%{_includedir}/llvm/Config/llvm-config{,-%{__isa_bits}}.h
|
|
||||||
install -m 0644 %{SOURCE100} %{buildroot}%{_includedir}/llvm/Config/llvm-config.h
|
%multilib_fix_c_header --file %{_includedir}/llvm/Config/llvm-config.h
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd _build
|
cd _build
|
||||||
|
@ -199,6 +195,9 @@ fi
|
||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 10 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
|
||||||
|
- Simplify spec with rpm macros.
|
||||||
|
|
||||||
* Wed May 10 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
|
* Wed May 10 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
|
||||||
- LLVM 4.0.0 Final Release
|
- LLVM 4.0.0 Final Release
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue