[ocaml-config-file] new package

Nikos Mavrogiannopoulos nmav at fedoraproject.org
Fri Mar 13 14:26:21 UTC 2015


commit 79f17e7c582ba8c9cbeb59467966e82b1b847cee
Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
Date:   Fri Mar 13 15:21:28 2015 +0100

    new package

 .gitignore             |  1 +
 ocaml-config-file.spec | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |  1 +
 3 files changed, 86 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7fccffd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/config-file-1.2.tar.gz
diff --git a/ocaml-config-file.spec b/ocaml-config-file.spec
new file mode 100644
index 0000000..f2838d9
--- /dev/null
+++ b/ocaml-config-file.spec
@@ -0,0 +1,84 @@
+%global _use_internal_dependency_generator 0
+%global __find_requires /usr/lib/rpm/ocaml-find-requires.sh
+%global __find_provides /usr/lib/rpm/ocaml-find-provides.sh
+%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
+
+Name:           ocaml-config-file
+Version:        1.2
+Release:        3%{?dist}
+Summary:        Configuration file management for OCaml
+License:        LGPLv2+
+
+URL:            http://config-file.forge.ocamlcore.org/
+Source0:        https://forge.ocamlcore.org/frs/download.php/1387/config-file-%{version}.tar.gz
+
+BuildRequires:  ocaml >= 4.00
+BuildRequires:  ocaml-findlib-devel
+BuildRequires:  ocaml-camlp4-devel
+
+%description
+Config_file is an OCaml library used to manage the configuration file(s)
+of an application. You simply define your options and it performs the
+loading and saving of the options. Each option is defined from an option
+class (for example an "int" option) or from a combination of classes
+(for example to create "list of int" options).
+
+%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 config-file-%{version}
+
+%build
+./configure \
+  --bindir=%{_bindir} \
+  --libdir=%{_libdir}
+
+make V=1 OCAMLPP="-g" byte
+%if %opt
+make V=1 OCAMLPP="-g" opt
+%endif
+
+%install
+export DESTDIR=$RPM_BUILD_ROOT
+export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+mkdir -p $OCAMLFIND_DESTDIR
+make install
+
+%files
+%doc README
+%license LICENSE
+%dir %{_libdir}/ocaml/config-file
+%{_libdir}/ocaml/*/*.cmi
+%exclude %{_libdir}/ocaml/*/*.cmo
+%{_libdir}/ocaml/*/META
+
+
+%files devel
+%doc ChangeLog
+%{_libdir}/ocaml/*/*.mli
+%if %opt
+%{_libdir}/ocaml/*/*.cmx
+%{_libdir}/ocaml/*/*.cmxs
+%{_libdir}/ocaml/*/*.o
+%endif
+
+
+%changelog
+* Wed Mar 11 2015 Nikos Mavrogiannopoulos <nmav at redhat.com> - 1.2-3
+- added missing .o file in devel (required for building caml-crush)
+- devel package dependency is arch-specific, suggested by Tomas Heinrich
+- added -g during compilation
+
+* Wed Mar 11 2015 Nikos Mavrogiannopoulos <nmav at redhat.com> - 1.2-2
+- removed unnecessary macros - suggested by Richard W.M. Jones
+
+* Mon Mar  9 2015 Nikos Mavrogiannopoulos <nmav at redhat.com> - 1.2-1
+- initial release
diff --git a/sources b/sources
index e69de29..15a3ea6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fece1f143285fb5fddf17d5d36a577c5  config-file-1.2.tar.gz


More information about the scm-commits mailing list