[ocaml-camlp4] Initial packaging of new out-of-tree ocaml-camlp4.

Richard W.M. Jones rjones at fedoraproject.org
Sat Jul 19 10:14:56 UTC 2014


commit ac2df324842e7fceaa644e09bedbcfd40098d034
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Sat Jul 19 11:15:15 2014 +0100

    Initial packaging of new out-of-tree ocaml-camlp4.

 ocaml-camlp4.spec |  114 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/ocaml-camlp4.spec b/ocaml-camlp4.spec
new file mode 100644
index 0000000..9b5da09
--- /dev/null
+++ b/ocaml-camlp4.spec
@@ -0,0 +1,114 @@
+%ifarch %{ocaml_native_compiler}
+%global native_compiler 1
+%else
+%global native_compiler 0
+%endif
+
+%global gitcommit 87c6a6b07818acbbef6ced00cc8f4e09b533e055
+%global shortcommit 87c6a6b0
+
+Name:          ocaml-camlp4
+Version:       4.02.0
+Release:       0.2.git%{shortcommit}%{?dist}
+
+Summary:       Pre-Processor-Pretty-Printer for OCaml
+
+License:       LGPLv2+ with exceptions
+
+URL:           https://github.com/ocaml/camlp4
+Source0:       https://github.com/ocaml/camlp4/archive/%{gitcommit}/camlp4-%{gitcommit}.tar.gz
+
+# This package used to be part of the upstream compiler.  We still
+# need to keep it in lock step with the compiler, so whenever a new
+# compiler is released we will also update this package also.
+BuildRequires: ocaml = %{version}
+Requires:      ocaml-runtime = %{version}
+
+
+%description
+Camlp4 is a Pre-Processor-Pretty-Printer for OCaml, parsing a source
+file and printing some result on standard output.
+
+This package contains the runtime files.
+
+
+%package devel
+Summary:       Pre-Processor-Pretty-Printer for OCaml
+
+Requires:      %{name}%{?_isa} = %{version}-%{release}
+
+
+%description devel
+Camlp4 is a Pre-Processor-Pretty-Printer for OCaml, parsing a source
+file and printing some result on standard output.
+
+This package contains the development files.
+
+
+%prep
+%setup -q -n camlp4-%{gitcommit}
+
+
+%build
+./configure
+# Incompatible with parallel builds:
+unset MAKEFLAGS
+%if !%{native_compiler}
+make byte
+%else
+make all
+%endif
+
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/camlp4
+make install \
+  BINDIR=$RPM_BUILD_ROOT%{_bindir} \
+  LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
+  PKGDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/camlp4
+
+
+%files
+%doc README.md LICENSE
+%dir %{_libdir}/ocaml/camlp4
+%{_libdir}/ocaml/camlp4/*.cmi
+%{_libdir}/ocaml/camlp4/*.cma
+%{_libdir}/ocaml/camlp4/*.cmo
+%dir %{_libdir}/ocaml/camlp4/Camlp4Filters
+%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmi
+%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmo
+%dir %{_libdir}/ocaml/camlp4/Camlp4Parsers
+%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmo
+%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmi
+%dir %{_libdir}/ocaml/camlp4/Camlp4Printers
+%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmi
+%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmo
+%dir %{_libdir}/ocaml/camlp4/Camlp4Top
+%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmi
+%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmo
+
+
+%files devel
+%doc LICENSE
+%{_bindir}/camlp4*
+%{_bindir}/mkcamlp4
+%if %{native_compiler}
+%{_libdir}/ocaml/camlp4/*.a
+%{_libdir}/ocaml/camlp4/*.cmxa
+%{_libdir}/ocaml/camlp4/*.cmx
+%{_libdir}/ocaml/camlp4/*.o
+%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmx
+%{_libdir}/ocaml/camlp4/Camlp4Filters/*.o
+%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmx
+%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.o
+%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmx
+%{_libdir}/ocaml/camlp4/Camlp4Printers/*.o
+%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmx
+%{_libdir}/ocaml/camlp4/Camlp4Top/*.o
+%endif
+
+
+%changelog
+* Wed Jul 16 2014 Richard W.M. Jones <rjones at redhat.com> - 4.02.0-0.2
+- Initial packaging of new out-of-tree ocaml-camlp4.


More information about the scm-commits mailing list