[packages/ocaml-ctypes] - updated to 0.11.5 (the last release not requiring ocaml-integers module)

qboosh qboosh at pld-linux.org
Sun Dec 3 21:06:57 CET 2017


commit 6596d3f63e753f40d3fd3aa8113466ea21b45450
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 3 21:08:06 2017 +0100

    - updated to 0.11.5 (the last release not requiring ocaml-integers module)

 ocaml-ctypes.spec | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/ocaml-ctypes.spec b/ocaml-ctypes.spec
index ae6f3c7..d3b857c 100644
--- a/ocaml-ctypes.spec
+++ b/ocaml-ctypes.spec
@@ -2,18 +2,19 @@
 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.4.1
-Release:	4
+Version:	0.11.5
+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:	08a284c379e341d57b6918611b5bc56b
+# Source0-md5:	20aa5fe2bc8c4c507593dd25edf1e02d
 URL:		https://github.com/ocamllabs/ocaml-ctypes
 BuildRequires:	libffi-devel
 BuildRequires:	ocaml >= 3.04-7
 %requires_eq	ocaml-runtime
 # archs with ocaml_opt support (keep in sync with ocaml.spec)
-ExclusiveArch:	%{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
+ExclusiveArch:	%{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -78,12 +79,13 @@ 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 \
+%{__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
 # findlib files, useless when packaging to rpm
@@ -96,6 +98,7 @@ rm -rf $RPM_BUILD_ROOT
 %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
 %dir %{_libdir}/ocaml/%{module}
 %attr(755,root,root) %{_libdir}/ocaml/%{module}/*.cmxs
@@ -106,7 +109,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/ocaml/%{module}/*.h
 %{_libdir}/ocaml/%{module}/*.cm[ix]
 %{_libdir}/ocaml/%{module}/*.mli
-%{_libdir}/ocaml/%{module}/*.[ao]
+%{_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/6596d3f63e753f40d3fd3aa8113466ea21b45450



More information about the pld-cvs-commit mailing list