[ocaml-easy-format] Initial import
Michel Alexandre Salim
salimma at fedoraproject.org
Wed Jan 22 13:07:43 UTC 2014
commit a1b0924e6b4786acf1bc3603b20809fbd05a3ac5
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Wed Jan 22 20:07:50 2014 +0700
Initial import
.gitignore | 1 +
ocaml-easy-format.spec | 101 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 103 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..956d676 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/easy-format-1.0.2.tar.gz
diff --git a/ocaml-easy-format.spec b/ocaml-easy-format.spec
new file mode 100644
index 0000000..76957e8
--- /dev/null
+++ b/ocaml-easy-format.spec
@@ -0,0 +1,101 @@
+%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
+%if !%{opt}
+%global debug_package %{nil}
+%endif
+
+Name: ocaml-easy-format
+Version: 1.0.2
+Release: 2%{?dist}
+Summary: High-level and functional interface to the Format module
+
+License: BSD
+URL: http://mjambon.com/easy-format.html
+Source0: http://mjambon.com/releases/easy-format/easy-format-%{version}.tar.gz
+
+ExclusiveArch: %{ocaml_arches}
+
+BuildRequires: ocaml >= 3.10.0
+BuildRequires: ocaml-findlib
+BuildRequires: ocaml-ocamldoc
+
+%global libname %(echo %{name} | sed -e 's/^ocaml-//')
+
+%description
+This module offers a high-level and functional interface to the Format
+module of the OCaml standard library. It is a pretty-printing
+facility, i.e. it takes as input some code represented as a tree and
+formats this code into the most visually satisfying result, breaking
+and indenting lines of code where appropriate.
+
+Input data must be first modeled and converted into a tree using 3
+kinds of nodes:
+
+ atoms
+ lists
+ labeled nodes
+
+Atoms represent any text that is guaranteed to be printed as-is. Lists
+can model any sequence of items such as arrays of data or lists of
+definitions that are labeled with something like "int main", "let x
+=" or "x:".
+
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and signature files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q -n %{libname}-%{version}
+sed -i.add-debuginfo 's/ocamlopt/ocamlopt -g/;s/ocamlc \(-[co]\)/ocamlc -g \1/' Makefile
+
+
+%build
+%if %opt
+make %{?_smp_mflags}
+%else
+make %{?_smp_mflags} all
+%endif
+
+
+%install
+# These rules work if the library uses 'ocamlfind install' to install itself.
+export DESTDIR=$RPM_BUILD_ROOT
+export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+mkdir -p $OCAMLFIND_DESTDIR
+make install
+
+
+%check
+make test
+
+
+%files
+%doc LICENSE
+%{_libdir}/ocaml/%{libname}/
+%if %opt
+%exclude %{_libdir}/ocaml/*/*.cmx
+%exclude %{_libdir}/ocaml/*/*.o
+%endif
+%exclude %{_libdir}/ocaml/*/*.mli
+
+
+%files devel
+%doc LICENSE README.md Changes
+%if %opt
+%{_libdir}/ocaml/*/*.cmx
+%{_libdir}/ocaml/*/*.o
+%endif
+%{_libdir}/ocaml/*/*.mli
+
+
+%changelog
+* Tue Jan 21 2014 Michel Salim <salimma at fedoraproject.org> - 1.0.2-2
+- Incorporate review feedback
+
+* Mon Jan 20 2014 Michel Salim <salimma at fedoraproject.org> - 1.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..2d2fb95 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+82f6db85477831cab11e4cfe80321225 easy-format-1.0.2.tar.gz
More information about the scm-commits
mailing list