Compare commits

...

9 Commits
master ... f26

Author SHA1 Message Date
Rex Dieter a70305af80 python2-clang subpkg (#1490997)
tools-extras: tighten (internal) -libs dep
%install: avoid cd
2017-10-10 11:07:34 -05:00
Tom Stellard 6558eeb314 Fix Requires for git-clang-format and split into its own package 2017-09-05 18:27:20 +00:00
Tom Stellard fd570ec077 Re-enable tests
This was accidently disabled by the previous merge commit.
2017-08-24 13:29:31 +00:00
Tom Stellard da075636c1 Merge remote-tracking branch 'origin/f27' into f26 2017-08-24 00:06:49 +00:00
Tom Stellard 604a42b909 Enable eh/rtti, which are required by lldb. 2017-05-11 10:34:06 +00:00
Tom Stellard 762150e96d Fix clang-tools-extra build
Also fix the %install step.
2017-05-11 10:33:55 +00:00
Tom Stellard cb23bde5c3 clang 4.0.0 final release 2017-05-11 10:32:49 +00:00
David Goerger 3f2091d33a Add clang-tools-extra package rhbz#1328091 2017-05-11 10:31:29 +00:00
Tom Stellard 9325cf5240 Enable build-id by default rhbz#1432403 2017-03-16 16:14:48 +00:00
1 changed files with 44 additions and 6 deletions

View File

@ -16,8 +16,7 @@
%{_bindir}/clang-cpp \
%{_bindir}/clang-format \
%{_bindir}/clang-import-test \
%{_bindir}/clang-offload-bundler \
%{_bindir}/git-clang-format
%{_bindir}/clang-offload-bundler
%if 0%{?fedora}
%bcond_without python3
@ -27,7 +26,7 @@
Name: clang
Version: 4.0.1
Release: 4%{?dist}
Release: 6%{?dist}
Summary: A C language family front-end for LLVM
License: NCSA
@ -118,11 +117,31 @@ intended to run in tandem with a build of a project or code base.
%package tools-extra
Summary: Extra tools for clang
Requires: llvm-libs%{?_isa} = %{version}
Requires: clang-libs%{?_isa} = %{version}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description tools-extra
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
%setup -T -q -b 1 -n clang-tools-extra-%{version}.src
%patch3 -p1 -b .lit-dep-fix
@ -167,8 +186,13 @@ cd _build
make %{?_smp_mflags}
%install
cd _build
make install DESTDIR=%{buildroot}
make install DESTDIR=%{buildroot} -C _build
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
mv -v %{buildroot}%{_includedir}/clang/Config/config{,-%{__isa_bits}}.h
@ -239,7 +263,21 @@ make %{?_smp_mflags} check || :
%{_bindir}/find-all-symbols
%{_bindir}/modularize
%files -n git-clang-format
%{_bindir}/git-clang-format
%files -n python2-clang
%{python2_sitelib}/clang/
%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
- Rebuilt for AutoReq cmake-filesystem