X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=whenjobs.spec.in;h=cdb38978977f1f6a8c1382246cc2dc8f6bede71d;hp=2fb2fb352df4c0c5619c0f6a941167c5a8a17e76;hb=1d0b030e3a62a905dce16d05e8816cb3da8c49eb;hpb=7e7c73ffc8b81c601ba035b36e333c45d1f2db02 diff --git a/whenjobs.spec.in b/whenjobs.spec.in index 2fb2fb3..cdb3897 100644 --- a/whenjobs.spec.in +++ b/whenjobs.spec.in @@ -1,5 +1,5 @@ -%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) -%define debug_package %{nil} +%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +%global debug_package %{nil} Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ @@ -58,12 +58,12 @@ make check %install -rm -rf $RPM_BUILD_ROOT - make DESTDIR=$RPM_BUILD_ROOT install +%if %opt # Remove bytecode library. rm $RPM_BUILD_ROOT%{_libdir}/whenjobs/whenlib.cma +%endif # Strip binaries (why doesn't RPM do this?) strip --strip-all $RPM_BUILD_ROOT%{_bindir}/whenjobs @@ -77,7 +77,11 @@ strip --strip-all $RPM_BUILD_ROOT%{_sbindir}/whenjobsd %dir %{_libdir}/whenjobs %{_libdir}/whenjobs/*.cmi %{_libdir}/whenjobs/pa_when.cmo +%if %opt %{_libdir}/whenjobs/whenlib.cmxa +%else +%{_libdir}/whenjobs/whenlib.cma +%endif %{_mandir}/man1/*.1* %{_mandir}/man8/*.8*