3 %bcond_without opt # build opt
5 %define debug_package %{nil}
7 Summary(pl.UTF-8): Wiązania cppo dla OCamla
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)
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.
24 %description -l pl.UTF-8
25 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
26 używających tej biblioteki.
32 %{__make} -j1 all %{?with_opt:opt} \
33 CC="%{__cc} %{rpmcflags} -fPIC"
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_bindir}
38 install -p cppo $RPM_BUILD_ROOT%{_bindir}
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
45 %doc README Changes LICENSE examples
46 %attr(755,root,root) %{_bindir}/cppo