[packages/ocaml-ctypes] - up to 0.18.0
baggins
baggins at pld-linux.org
Sat Mar 27 10:14:20 CET 2021
commit c79b9828764bbfcba154f90872e413be3b926599
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Mar 27 10:14:09 2021 +0100
- up to 0.18.0
ocaml-ctypes.spec | 33 +++++++++++++--------------------
1 file changed, 13 insertions(+), 20 deletions(-)
---
diff --git a/ocaml-ctypes.spec b/ocaml-ctypes.spec
index 01276a4..45fb684 100644
--- a/ocaml-ctypes.spec
+++ b/ocaml-ctypes.spec
@@ -2,28 +2,30 @@
Summary: Library for binding to C libraries using pure OCaml
Summary(pl.UTF-8): Biblioteka do wiązania z bibliotekami C przy użyciu czystego OCamla
Name: ocaml-%{module}
-Version: 0.11.5
-Release: 3
+Version: 0.18.0
+Release: 1
License: MIT
Group: Libraries
#Source0Download: https://github.com/ocamllabs/ocaml-ctypes/releases
Source0: https://github.com/ocamllabs/ocaml-ctypes/archive/%{version}/%{module}-%{version}.tar.gz
-# Source0-md5: 20aa5fe2bc8c4c507593dd25edf1e02d
+# Source0-md5: 5d9ef3790fda7cd97a8cec08be4b5b61
URL: https://github.com/ocamllabs/ocaml-ctypes
BuildRequires: libffi-devel
BuildRequires: ocaml >= 3.04-7
+BuildRequires: ocaml-bigarray-compat-devel
+BuildRequires: ocaml-integers-devel
%requires_eq ocaml-runtime
# archs with ocaml_opt support (keep in sync with ocaml.spec)
ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-ctypes is a library for binding to C libraries using pure OCaml.
-The primary aim is to make writing C extensions as straightforward
-as possible.
+ctypes is a library for binding to C libraries using pure OCaml. The
+primary aim is to make writing C extensions as straightforward as
+possible.
-The core of ctypes is a set of combinators for describing
-the structure of C types -- numeric types, arrays, pointers, structs,
+The core of ctypes is a set of combinators for describing the
+structure of C types -- numeric types, arrays, pointers, structs,
unions and functions. You can use these combinators to describe the
types of the functions that you want to call, then bind directly to
those functions -- all without writing or generating any C!
@@ -50,7 +52,7 @@ Summary: Library for binding to C libraries using pure OCaml - development part
Summary(pl.UTF-8): Biblioteka do wiązania z bibliotekami C przy użyciu czystego OCamla - część programistyczna
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-%requires_eq ocaml
+%requires_eq ocaml
%description devel
This package contains files needed to develop OCaml programs using
@@ -77,14 +79,6 @@ install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-# move to dir pld ocamlfind looks
-install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}
-%{__mv} $OCAMLFIND_DESTDIR/%{module}/META \
- $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}
-cat <<EOF >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}/META
-directory="+%{module}"
-EOF
-
%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/ctypes/*.{cmt,cmti}
# packaged as %doc
%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/ctypes/CHANGES.md
@@ -97,10 +91,10 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGES.md LICENSE README.md
-%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllctypes-foreign-base_stubs.so
-%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllctypes-foreign-threaded_stubs.so
%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllctypes_stubs.so
+%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllctypes-foreign_stubs.so
%dir %{_libdir}/ocaml/%{module}
+%{_libdir}/ocaml/%{module}/META
%attr(755,root,root) %{_libdir}/ocaml/%{module}/*.cmxs
%{_libdir}/ocaml/%{module}/*.cma
@@ -111,5 +105,4 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/ocaml/%{module}/*.mli
%{_libdir}/ocaml/%{module}/*.a
%{_libdir}/ocaml/%{module}/*.cmxa
-%{_libdir}/ocaml/site-lib/%{module}
%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-ctypes.git/commitdiff/c79b9828764bbfcba154f90872e413be3b926599
More information about the pld-cvs-commit
mailing list