2024-01-06 08:08:43 +01:00
|
|
|
%define gitver %(echo %version | tr _ -)
|
2024-01-06 08:08:43 +01:00
|
|
|
Name: opam
|
2024-01-06 08:08:44 +01:00
|
|
|
Version: 2.1.3
|
2024-01-06 08:08:43 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: opam is a source-based package manager for OCaml
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://opam.ocaml.org
|
2024-01-06 08:08:43 +01:00
|
|
|
Source: https://github.com/ocaml/opam.git/%{gitver}/opam-%{version}.tar.bz2
|
|
|
|
Source1: opam-Makefile.sources
|
|
|
|
Patch0: opam-2.0.7-fix-extlib-source.patch
|
2024-01-06 08:08:43 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-ENDcd
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-re
|
|
|
|
BuildRequires: ocaml-compiler-libs
|
2024-01-06 08:08:43 +01:00
|
|
|
BuildRequires: ocaml-cppo
|
|
|
|
BuildRequires: dune
|
2024-01-06 08:08:43 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 08:08:43 +01:00
|
|
|
#% patch0 -p1
|
|
|
|
## 2.0.4: fix blocking error in install due just to dune warnings
|
|
|
|
#sed -i "s|; false ;|; true ;|" doc/Makefile
|
|
|
|
|
|
|
|
#install %{SOURCE1} src_ext/Makefile.sources
|
|
|
|
#rm -rf src_ext/patches/seq
|
2024-01-06 08:08:43 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
|
|
|
|
make lib-ext all -j1 \
|
|
|
|
OCAMLC='ocamlc -unsafe-string' \
|
2024-01-06 08:08:43 +01:00
|
|
|
OCAMLOPT='ocamlopt -unsafe-string' \
|
|
|
|
DUNE_ARGS="-j1"
|
2024-01-06 08:08:43 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
2024-01-06 08:08:43 +01:00
|
|
|
#install -d %{buildroot}%{_docdir}
|
2024-01-06 08:08:43 +01:00
|
|
|
#mv %{buildroot}/usr/doc/opam-installer %{buildroot}%{_docdir}/opam
|
|
|
|
#rmdir %{buildroot}/usr/doc
|
2024-01-06 08:08:43 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/opam
|
|
|
|
%{_bindir}/opam-installer
|
2024-01-06 08:08:43 +01:00
|
|
|
#%dir %{_prefix}/lib/opam-installer
|
|
|
|
#%{_prefix}/lib/opam-installer/*
|
|
|
|
#%dir %{_datadir}/doc/opam
|
|
|
|
#%{_datadir}/doc/opam/*
|
2024-01-06 08:08:43 +01:00
|
|
|
%{_mandir}/man1/opam*.1*
|
|
|
|
%doc AUTHORS LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:08:44 +01:00
|
|
|
* Sun Aug 14 2022 Automatic Build System <autodist@mambasoft.it> 2.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:08:44 +01:00
|
|
|
* Sat Dec 11 2021 Automatic Build System <autodist@mambasoft.it> 2.1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:08:44 +01:00
|
|
|
* Sat Nov 06 2021 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:08:43 +01:00
|
|
|
* Sat Jan 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0_beta4-1mamba
|
|
|
|
- update to 2.1.0_beta4
|
|
|
|
|
|
|
|
* Sat Jan 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.7-1mamba
|
|
|
|
- update to 2.0.7
|
|
|
|
|
2024-01-06 08:08:43 +01:00
|
|
|
* Sat Feb 08 2020 Automatic Build System <autodist@mambasoft.it> 2.0.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:08:43 +01:00
|
|
|
* Mon Jul 29 2019 Automatic Build System <autodist@mambasoft.it> 2.0.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:08:43 +01:00
|
|
|
* Sun May 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.4-1mamba
|
|
|
|
- package created using the webbuild interface
|