# TODO #%define _use_internal_dependency_generator 0 #%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh #%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh # disable debug - not useful? %define debug_package %{nil} # # Conditional build: %bcond_without opt # build opt Summary: TEMPLATE binding for OCaml Summary(pl.UTF-8): Wiązania TEMPLATE dla OCamla Name: ocaml-template Version: - Release: 1 License: - (enter GPL/LGPL/BSD/BSD-like/other license name here) Group: Libraries Source0: template-%{version}.tar.gz # Source0-md5: - BuildRequires: -devel BuildRequires: ocaml >= 3.04-7 %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This package contains files needed to run bytecode executables using this library. %description -l pl.UTF-8 Pakiet ten zawiera binaria potrzebne do uruchamiania programów używających tej biblioteki. %package devel Summary: TEMPLATE binding for OCaml - development part Summary(pl.UTF-8): Wiązania TEMPLATE dla OCamla - cześć programistyczna Group: Development/Libraries Requires: %{name} = %{version}-%{release} %requires_eq ocaml %description devel This package contains files needed to develop OCaml programs using this library. %description devel -l pl.UTF-8 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających tej biblioteki. %prep %setup -q -n template-%{version} %build %{__make} CC="%{__cc} %{rpmcflags} -fPIC" all opt %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{template,stublibs} install *.cm[ixa]* *.a dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/template install dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} cp -r foo bar $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/template cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/template/META <