]> git.pld-linux.org Git - packages/sparse.git/blame - sparse.spec
- updated to 0.5.2
[packages/sparse.git] / sparse.spec
CommitLineData
12d186d8 1Summary: Sparse - a semantic parser of source files
7ddda079 2Summary(pl.UTF-8): Sparse - analizator semantyczny plików źródłowych
ab4aea11 3Name: sparse
791ad46d 4Version: 0.5.2
204719fb 5Release: 1
7ddda079 6License: OSL v1.1
ab4aea11 7Group: Development/Debuggers
791ad46d
JB
8Source0: https://www.kernel.org/pub/software/devel/sparse/dist/%{name}-%{version}.tar.xz
9# Source0-md5: 1eeec1b3cd53caedfad6175df4fa87a6
10Patch0: %{name}-llvm.patch
11URL: https://www.kernel.org/pub/software/devel/sparse/
12BuildRequires: gtk+3-devel >= 3.0
204719fb
JB
13BuildRequires: libxml2-devel >= 2.0
14BuildRequires: llvm-devel >= 3.0
15BuildRequires: pkgconfig
16BuildRequires: tar >= 1:1.22
17BuildRequires: xz
ab4aea11
AM
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Sparse is a semantic parser of source files: it's neither a compiler
22(although it could be used as a front-end for one) nor is it a
23preprocessor (although it contains as a part of it a preprocessing
24phase).
25
26It is meant to be a small - and simple - library. Scanty and meager,
27and partly because of that easy to use. It has one mission in life:
28create a semantic parse tree for some arbitrary user for further
29analysis. It's not a tokenizer, nor is it some generic context-free
30parser. In fact, context (semantics) is what it's all about - figuring
31out not just what the grouping of tokens are, but what the _types_ are
32that the grouping implies.
33
12d186d8
JB
34%description -l pl.UTF-8
35Sparse to analizator semantyczny plików źródłowych - nie jest to ani
36kompilator (choć mógłby być używany jako frontend dla niego) ani
37preprocesor (choć zawiera jako część fazę preprocesingu).
38
39Sparse ma być małą i prostą biblioteką. Ledwie wystarczającą i
40niewielką, i po części dlatego łatwą w użyciu. Ma jedno zadanie:
41utworzyć drzewo semantyczne analizy do dowolnego późniejszego
42wykorzystania. Nie jest to tokenizer ani żaden ogólny analizator
43bezkontekstowy. Właściwie kontekst (semantyka) to wszystko co
44istotne - przedstawianie nie tylko czym są grupowane tokeny, ale tego,
45czym są _typy_ obejmowane przez grupowanie.
46
ab4aea11
AM
47%prep
48%setup -q
791ad46d 49%patch0 -p1
ab4aea11
AM
50
51%build
52%{__make} \
53 CC="%{__cc}" \
54 CFLAGS="%{rpmcflags} -fpic" \
b9398d97
AM
55 LDFLAGS="%{rpmldflags}" \
56 PREFIX="%{_prefix}" \
204719fb
JB
57 LIBDIR="%{_libdir}" \
58 V=1
ab4aea11
AM
59
60%install
61rm -rf $RPM_BUILD_ROOT
62
63%{__make} install \
64 PREFIX="%{_prefix}" \
b9398d97 65 LIBDIR="%{_libdir}" \
ab4aea11
AM
66 DESTDIR=$RPM_BUILD_ROOT
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%files
72%defattr(644,root,root,755)
73%doc FAQ LICENSE README
7ddda079
JB
74%attr(755,root,root) %{_bindir}/c2xml
75%attr(755,root,root) %{_bindir}/cgcc
76%attr(755,root,root) %{_bindir}/sparse
204719fb
JB
77%attr(755,root,root) %{_bindir}/sparse-llvm
78%attr(755,root,root) %{_bindir}/sparsec
7ddda079 79%attr(755,root,root) %{_bindir}/test-inspect
ab4aea11 80%{_includedir}/%{name}
7ddda079
JB
81%{_libdir}/libsparse.a
82%{_pkgconfigdir}/sparse.pc
83%{_mandir}/man1/cgcc.1*
84%{_mandir}/man1/sparse.1*
This page took 0.043872 seconds and 4 git commands to generate.