2024-01-06 07:52:00 +01:00
|
|
|
## this macro only works for packages with name matching the regexp "ocaml-.*"
|
|
|
|
%define ocamlpck ctypes
|
|
|
|
|
|
|
|
Name: ocaml-ctypes
|
2024-01-06 07:52:01 +01:00
|
|
|
Version: 0.20.2
|
2024-01-06 07:52:00 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 07:52:00 +01:00
|
|
|
Summary: Combinators for binding to C libraries without writing any C
|
|
|
|
Group: System/Libraries/OCaml
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 07:52:01 +01:00
|
|
|
URL: https://github.com/yallop/ocaml-ctypes
|
2024-01-06 07:52:00 +01:00
|
|
|
Source: https://github.com/ocamllabs/ocaml-ctypes.git/%{version}/ocaml-ctypes-%{version}.tar.bz2
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libffi-devel
|
2024-01-06 07:52:00 +01:00
|
|
|
BuildRequires: ocaml
|
2024-01-06 07:52:00 +01:00
|
|
|
BuildRequires: ocaml-bigarray-compat-devel
|
|
|
|
BuildRequires: ocaml-compiler-libs
|
2024-01-06 07:52:00 +01:00
|
|
|
BuildRequires: ocaml-integers
|
|
|
|
BuildRequires: ocaml-runtime
|
2024-01-06 07:52:00 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 07:52:01 +01:00
|
|
|
BuildRequires: ocaml >= 4.14.1
|
2024-01-06 07:52:00 +01:00
|
|
|
BuildRequires: ocaml-camlp4-devel
|
|
|
|
BuildRequires: ocaml-findlib
|
2024-01-06 07:52:00 +01:00
|
|
|
BuildRequires: ocaml-integers >= 0.6.0
|
|
|
|
BuildRequires: ocaml-bigarray-compat-devel
|
2024-01-06 07:52:00 +01:00
|
|
|
Requires: ocaml-runtime
|
|
|
|
|
|
|
|
%description
|
|
|
|
Combinators for binding to C libraries without writing any C.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries/OCaml
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and signature files for developing applications that use %{name}.
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make -j1 all
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir)
|
|
|
|
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
|
|
|
|
|
|
|
|
install -d $OCAMLFIND_DESTDIR/%{ocamlpck}
|
|
|
|
install -d $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
|
|
|
|
make install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/ocaml/stublibs/*
|
|
|
|
%dir %{_libdir}/ocaml/%{ocamlpck}
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/META
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cma
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmi
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmxs
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so*
|
2024-01-06 07:52:00 +01:00
|
|
|
%doc LICENSE
|
2024-01-06 07:52:00 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/CHANGES.md
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.h
|
2024-01-06 07:52:00 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmt
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmti
|
2024-01-06 07:52:00 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.mli
|
2024-01-06 07:52:00 +01:00
|
|
|
%doc CHANGES.md README.md
|
2024-01-06 07:52:00 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 07:52:01 +01:00
|
|
|
* Thu Jul 06 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20.2-1mamba
|
|
|
|
- update to 0.20.2
|
|
|
|
- rebuilt with ocaml 4.14.1
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Sat May 07 2022 Automatic Build System <autodist@mambasoft.it> 0.20.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Wed Feb 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20.0-2mamba
|
|
|
|
- rebuilt with ocaml integers 0.6.0
|
|
|
|
|
|
|
|
* Sun Jan 30 2022 Automatic Build System <autodist@mambasoft.it> 0.20.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Thu Apr 22 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17.1-3mamba
|
|
|
|
- rebuilt with new ocamlx deps
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Thu Jan 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17.1-2mamba
|
|
|
|
- rebuilt with ocaml 4.11.1
|
|
|
|
|
|
|
|
* Mon Mar 23 2020 Automatic Build System <autodist@mambasoft.it> 0.17.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Mar 22 2020 Automatic Build System <autodist@mambasoft.it> 0.17.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Mon Dec 30 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-1mamba
|
|
|
|
- update to 0.16.0
|
|
|
|
|
|
|
|
* Fri Oct 11 2019 Automatic Build System <autodist@mambasoft.it> 0.15.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Sun May 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.14.0-1mamba
|
|
|
|
- update to 0.14.0
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Mon Aug 07 2017 Automatic Build System <autodist@mambasoft.it> 0.11.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Wed Nov 16 2016 Automatic Build System <autodist@mambasoft.it> 0.10.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Wed Oct 19 2016 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:52:00 +01:00
|
|
|
* Thu May 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1-1mamba
|
|
|
|
- package created using the webbuild interface
|