[packages/ocaml-easy-format] new, version 1.0.1
glen
glen at pld-linux.org
Sat Nov 23 22:14:30 CET 2013
commit 4d73a89cf5d821649695185914a30bab6d13d251
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Nov 23 23:14:02 2013 +0200
new, version 1.0.1
ocaml-easy-format.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
---
diff --git a/ocaml-easy-format.spec b/ocaml-easy-format.spec
new file mode 100644
index 0000000..90e570a
--- /dev/null
+++ b/ocaml-easy-format.spec
@@ -0,0 +1,76 @@
+#
+# Conditional build:
+%bcond_without opt # build opt
+
+%define pkgname easy-format
+%define debug_package %{nil}
+Summary: easy(ier) pretty printing for OCaml
+Name: ocaml-%{pkgname}
+Version: 1.0.1
+Release: 1
+License: BSD
+Group: Libraries
+Source0: easy-format-%{version}.tar.gz
+# Source0-md5: ecaf5d060f7cf8961631ab319e40677c
+URL: http://mjambon.com/easy-format.html
+BuildRequires: ocaml >= 3.04-7
+%requires_eq ocaml-runtime
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module offers a simplified interface to the Format module of the
+OCaml standard library. Input data must be converted into a tree using
+3 kinds of nodes: atoms, lists and labelled nodes. Each node is bound
+to its own formatting parameters and a single function call produces
+the formatted output.
+
+%description -l pl.UTF-8
+Pakiet ten zawiera binaria potrzebne do uruchamiania programów
+używających tej biblioteki.
+
+%package devel
+Summary: easy-format binding for OCaml - development part
+Summary(pl.UTF-8): Wiązania easy-format dla OCamla - cześć programistyczna
+Group: Development/Libraries
+%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 %{pkgname}-%{version}
+
+%build
+%{__make} -j1 all %{?with_opt:opt} \
+ CC="%{__cc} %{rpmcflags} -fPIC"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{easy-format,stublibs}
+cp -p *.cm[ixa]* $RPM_BUILD_ROOT%{_libdir}/ocaml/easy-format
+
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/easy-format
+cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/easy-format/META <<EOF
+requires = ""
+version = "%{version}"
+directory = "+easy-format"
+archive(byte) = "easy-format.cma"
+archive(native) = "easy-format.cmxa"
+linkopts = ""
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files devel
+%defattr(644,root,root,755)
+%doc README Changes LICENSE *.mli
+%dir %{_libdir}/ocaml/easy-format
+%{_libdir}/ocaml/easy-format/*.cm[ixa]*
+%{_libdir}/ocaml/site-lib/easy-format
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-easy-format.git/commitdiff/4d73a89cf5d821649695185914a30bab6d13d251
More information about the pld-cvs-commit
mailing list