blob: e97a83e9e35ecf72d0c4e037e869131859a34b41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
Name: Bear
Version: 2.3.11
Release: 1%{?dist}
Summary: Tool that generates a compilation database for clang tooling
License: GPLv3
URL: https://github.com/rizsotto/%{name}
Source: %{URL}/archive/%{version}.tar.gz
# fix the shebang from /usr/bin/env python3 to /usr/bin/python3
# not usable for upstream since they also support python2
# Patch0: bear-fix-shebang-line.patch
BuildRequires: cmake make python%{python3_pkgversion} python%{python3_pkgversion}-devel gcc sed
%if 0%{?fedora}
BuildRequires: python3-lit
%endif
Requires: python%{python3_pkgversion}
%description
Build ear produces compilation database in JSON format. This database describes
how single compilation unit should be processed and can be used by Clang
tooling.
%prep
%autosetup
sed -i 's:/usr/bin/env python:%{__python3}:' bear/main.py.in
%build
%cmake .
%make_build
%install
%make_install
%if 0%{?fedora}
%check
make check
%endif
%ldconfig_post
%ldconfig_postun
%files
%{_bindir}/bear
%{_libdir}/bear/libear.so
%{_mandir}/man1/bear.1*
%doc %{_datadir}/doc/bear/*
%changelog
* Tue Apr 10 2018 Dan Čermák <dan.cermak@cgc-instruments.de> 2.3.11-1
- Bump version to 2.3.11
* Thu Sep 03 2015 Pavel Odvody <podvody@redhat.com> 2.1.2-1.git15f4447
- new package built with tito
|