-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dj_palli
committed
Dec 19, 2024
1 parent
09af170
commit 75a433b
Showing
3 changed files
with
62 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"Signatures": { | ||
"extlib-1.7.8.tar.gz": "935ca46843af40dc33306d9cce66163d3733312bf444e969b5a8fa3f3024f85a" | ||
"extlib-1.7.9.tar.gz": "58de4dde016deb00b4f33956ab9697282f4e607c6452e3d38f8e116405ffcdcb" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
# The debuginfo package is empty, so don't generate it. | ||
# Could possibly be fixed by passing -g option correctly to the compiler. | ||
# OCaml packages not built on i686 since OCaml 5 / Fedora 39. | ||
|
||
ExcludeArch: %{ix86} | ||
|
||
%ifnarch %{ocaml_native_compiler} | ||
%global debug_package %{nil} | ||
Summary: OCaml ExtLib additions to the standard library | ||
%endif | ||
|
||
Name: ocaml-extlib | ||
Version: 1.7.8 | ||
Version: 1.7.9 | ||
Release: 1%{?dist} | ||
License: LGPLv2 with exceptions | ||
Summary: OCaml ExtLib additions to the standard library | ||
License: LGPL-2.1-or-later with OCaml-LGPL-linking-exception | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
URL: https://github.com/ygrek/ocaml-extlib | ||
Source0: https://github.com/ygrek/ocaml-extlib/releases/download/%{version}/extlib-%{version}.tar.gz | ||
BuildRequires: gawk | ||
BuildRequires: ocaml | ||
BuildRequires: ocaml-cppo | ||
BuildRequires: ocaml-findlib-devel >= 1.5.1 | ||
|
||
BuildRequires: make | ||
BuildRequires: ocaml >= 4.02 | ||
BuildRequires: ocaml-findlib-devel >= 1.3.3-3 | ||
BuildRequires: ocaml-ocamldoc | ||
BuildRequires: ocaml-cppo | ||
BuildRequires: ocaml-rpm-macros | ||
# In order to apply patches: | ||
BuildRequires: git-core | ||
|
||
|
||
%description | ||
ExtLib is a project aiming at providing a complete - yet small - | ||
|
@@ -24,48 +34,64 @@ modules, to modify some functions in order to get better performances | |
or more safety (tail-recursive) but also to provide new modules which | ||
should be useful for the average OCaml programmer. | ||
|
||
|
||
%package devel | ||
Summary: Development files for %{name} | ||
Requires: %{name} = %{version}-%{release} | ||
Requires: %{name}%{?_isa} = %{version}-%{release} | ||
|
||
|
||
%description devel | ||
The %{name}-devel package contains libraries and signature files for | ||
developing applications that use %{name}. | ||
|
||
|
||
%prep | ||
%autosetup -n extlib-%{version} | ||
%autosetup -S git -n extlib-%{version} | ||
|
||
# Remove references to the bytes library for OCaml 5.0 | ||
sed -i '/bytes/d' src/META | ||
|
||
|
||
%build | ||
# Parallel builds do not work. | ||
unset MAKEFLAGS | ||
make build -j1 | ||
# https://bugzilla.redhat.com/show_bug.cgi?id=1837823 | ||
export minimal=1 | ||
%ifarch %{ocaml_native_compiler} | ||
%make_build | ||
%else | ||
%make_build -C src all | ||
%endif | ||
|
||
|
||
%install | ||
export DESTDIR=%{buildroot} | ||
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml | ||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml | ||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs | ||
make install -j1 | ||
|
||
%files | ||
%doc README.md | ||
%license LICENSE | ||
%{_libdir}/ocaml/extlib | ||
%ifarch %{ocaml_native_compiler} | ||
%exclude %{_libdir}/ocaml/extlib/*.a | ||
%exclude %{_libdir}/ocaml/extlib/*.cmxa | ||
%exclude %{_libdir}/ocaml/extlib/*.cmx | ||
%endif | ||
%exclude %{_libdir}/ocaml/extlib/*.mli | ||
export minimal=1 | ||
%make_install | ||
%ocaml_files | ||
|
||
%files devel | ||
|
||
%check | ||
export minimal=1 | ||
%ifarch %{ocaml_native_compiler} | ||
%{_libdir}/ocaml/extlib/*.a | ||
%{_libdir}/ocaml/extlib/*.cmxa | ||
%{_libdir}/ocaml/extlib/*.cmx | ||
make test | ||
%else | ||
make -C test all run | ||
%endif | ||
%{_libdir}/ocaml/extlib/*.mli | ||
|
||
|
||
%files -f .ofiles | ||
%doc README.md | ||
%license LICENSE | ||
|
||
|
||
%files devel -f .ofiles-devel | ||
|
||
|
||
%changelog | ||
* Fri Dec 20 2024 Durga Jagadeesh Palli <[email protected]> - 1.7.9-1 | ||
- Update to 1.7.9 | ||
|
||
* Tue Feb 08 2022 Thomas Crain <[email protected]> - 1.7.8-1 | ||
- Upgrade to latest upstream version | ||
- Lint spec | ||
|
@@ -307,3 +333,4 @@ make install -j1 | |
|
||
* Fri May 18 2007 Richard W.M. Jones <[email protected]> - 1.5-1 | ||
- Initial RPM release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters