Compare commits
9 Commits
Author | SHA1 | Date |
---|---|---|
Rex Dieter | a70305af80 | |
Tom Stellard | 6558eeb314 | |
Tom Stellard | fd570ec077 | |
Tom Stellard | da075636c1 | |
Tom Stellard | 604a42b909 | |
Tom Stellard | 762150e96d | |
Tom Stellard | cb23bde5c3 | |
David Goerger | 3f2091d33a | |
Tom Stellard | 9325cf5240 |
50
clang.spec
50
clang.spec
|
@ -16,8 +16,7 @@
|
||||||
%{_bindir}/clang-cpp \
|
%{_bindir}/clang-cpp \
|
||||||
%{_bindir}/clang-format \
|
%{_bindir}/clang-format \
|
||||||
%{_bindir}/clang-import-test \
|
%{_bindir}/clang-import-test \
|
||||||
%{_bindir}/clang-offload-bundler \
|
%{_bindir}/clang-offload-bundler
|
||||||
%{_bindir}/git-clang-format
|
|
||||||
|
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
%bcond_without python3
|
%bcond_without python3
|
||||||
|
@ -27,7 +26,7 @@
|
||||||
|
|
||||||
Name: clang
|
Name: clang
|
||||||
Version: 4.0.1
|
Version: 4.0.1
|
||||||
Release: 4%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: A C language family front-end for LLVM
|
Summary: A C language family front-end for LLVM
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
|
@ -118,11 +117,31 @@ intended to run in tandem with a build of a project or code base.
|
||||||
%package tools-extra
|
%package tools-extra
|
||||||
Summary: Extra tools for clang
|
Summary: Extra tools for clang
|
||||||
Requires: llvm-libs%{?_isa} = %{version}
|
Requires: llvm-libs%{?_isa} = %{version}
|
||||||
Requires: clang-libs%{?_isa} = %{version}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description tools-extra
|
%description tools-extra
|
||||||
A set of extra tools built using Clang's tooling API.
|
A set of extra tools built using Clang's tooling API.
|
||||||
|
|
||||||
|
# Put git-clang-format in its own package, because it Requires git and python2
|
||||||
|
# and we don't want to force users to install all those dependenices if they
|
||||||
|
# just want clang.
|
||||||
|
%package -n git-clang-format
|
||||||
|
Summary: clang-format integration for git
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: git
|
||||||
|
Requires: python2
|
||||||
|
|
||||||
|
%description -n git-clang-format
|
||||||
|
clang-format integration for git.
|
||||||
|
|
||||||
|
%package -n python2-clang
|
||||||
|
Summary: Python2 bindings for clang
|
||||||
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: python2
|
||||||
|
%description -n python2-clang
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -T -q -b 1 -n clang-tools-extra-%{version}.src
|
%setup -T -q -b 1 -n clang-tools-extra-%{version}.src
|
||||||
%patch3 -p1 -b .lit-dep-fix
|
%patch3 -p1 -b .lit-dep-fix
|
||||||
|
@ -167,8 +186,13 @@ cd _build
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd _build
|
make install DESTDIR=%{buildroot} -C _build
|
||||||
make install DESTDIR=%{buildroot}
|
|
||||||
|
sed -i -e 's~#!/usr/bin/env python~#!%{_bindir}/python2~' %{buildroot}%{_bindir}/git-clang-format
|
||||||
|
|
||||||
|
# install clang python bindings
|
||||||
|
mkdir -p %{buildroot}%{python2_sitelib}/clang/
|
||||||
|
install -p -m644 bindings/python/clang/* %{buildroot}%{python2_sitelib}/clang/
|
||||||
|
|
||||||
# multilib fix
|
# multilib fix
|
||||||
mv -v %{buildroot}%{_includedir}/clang/Config/config{,-%{__isa_bits}}.h
|
mv -v %{buildroot}%{_includedir}/clang/Config/config{,-%{__isa_bits}}.h
|
||||||
|
@ -239,7 +263,21 @@ make %{?_smp_mflags} check || :
|
||||||
%{_bindir}/find-all-symbols
|
%{_bindir}/find-all-symbols
|
||||||
%{_bindir}/modularize
|
%{_bindir}/modularize
|
||||||
|
|
||||||
|
%files -n git-clang-format
|
||||||
|
%{_bindir}/git-clang-format
|
||||||
|
|
||||||
|
%files -n python2-clang
|
||||||
|
%{python2_sitelib}/clang/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 04 2017 Rex Dieter <rdieter@fedoraproject.org> - 4.0.1-6
|
||||||
|
- python2-clang subpkg (#1490997)
|
||||||
|
- tools-extras: tighten (internal) -libs dep
|
||||||
|
- %%install: avoid cd
|
||||||
|
|
||||||
|
* Wed Aug 30 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-5
|
||||||
|
- Add Requires: python for git-clang-format
|
||||||
|
|
||||||
* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 4.0.1-4
|
* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 4.0.1-4
|
||||||
- Rebuilt for AutoReq cmake-filesystem
|
- Rebuilt for AutoReq cmake-filesystem
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue