%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ Release: @RPM_RELEASE@%{?dist} Summary: To do list management License: GPLv2+ #URL: Source0: %{name}-%{version}.tar.gz BuildRequires: ocaml >= 3.12.0 BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-sqlite-devel # For building manual pages. BuildRequires: perl-podlators %description %prep %setup -q %build %configure make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT install %if %opt # Remove bytecode library. rm $RPM_BUILD_ROOT%{_libdir}/ocaml/todo/todo.cma %endif %files %doc COPYING README %changelog * Thu Nov 10 2016 Richard W.M. Jones - @PACKAGE_VERSION@-@RPM_RELEASE@ - Initial release. # Local variables: # mode: shell-script # sh-shell: rpm # end: