]>
Commit | Line | Data |
---|---|---|
b4bd1ab1 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without opt # build opt | |
4 | ||
5 | %define debug_package %{nil} | |
6 | Summary: cpp for OCaml | |
7 | Summary(pl.UTF-8): Wiązania cppo dla OCamla | |
8 | Name: cppo | |
9 | Version: 0.9.3 | |
10 | Release: 1 | |
11 | License: BSD | |
12 | Group: Applications | |
13 | Source0: http://mjambon.com/releases/cppo/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: cfea4211ab9a7c1276537ce4fc3669b5 | |
15 | URL: http://mjambon.com/cppo.html | |
16 | BuildRequires: ocaml >= 3.04-7 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Cppo is an OCaml-friendly implementation of cpp, the C preprocessor. | |
21 | It can replace camlp4 for preprocessing OCaml files, using cpp style | |
22 | and syntax. It allows defining simple macros and file inclusion. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Pakiet ten zawiera binaria potrzebne do uruchamiania programów | |
26 | używających tej biblioteki. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | %{__make} -j1 all %{?with_opt:opt} \ | |
33 | CC="%{__cc} %{rpmcflags} -fPIC" | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT%{_bindir} | |
38 | install -p cppo $RPM_BUILD_ROOT%{_bindir} | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc README Changes LICENSE examples | |
46 | %attr(755,root,root) %{_bindir}/cppo |