python2-clang subpkg (#1490997)
tools-extras: tighten (internal) -libs dep %install: avoid cd
This commit is contained in:
parent
ecb2e4f306
commit
c9eea4fec4
27
clang.spec
27
clang.spec
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
Name: clang
|
Name: clang
|
||||||
Version: 4.0.1
|
Version: 4.0.1
|
||||||
Release: 5%{?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
|
||||||
@ -117,7 +117,7 @@ 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.
|
||||||
@ -134,6 +134,14 @@ Requires: python2
|
|||||||
%description -n git-clang-format
|
%description -n git-clang-format
|
||||||
clang-format integration for git.
|
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
|
||||||
@ -178,11 +186,14 @@ 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
|
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
|
||||||
install -m 0644 %{SOURCE100} %{buildroot}%{_includedir}/clang/Config/config.h
|
install -m 0644 %{SOURCE100} %{buildroot}%{_includedir}/clang/Config/config.h
|
||||||
@ -255,7 +266,15 @@ make %{?_smp_mflags} check || :
|
|||||||
%files -n git-clang-format
|
%files -n git-clang-format
|
||||||
%{_bindir}/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
|
* Wed Aug 30 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-5
|
||||||
- Add Requires: python for git-clang-format
|
- Add Requires: python for git-clang-format
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user