Compare commits
58 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
486e2bf87e | ||
|
|
65379b064c | ||
|
|
84f65b6c78 | ||
|
|
62978c62ca | ||
|
|
76ea6f84d1 | ||
|
|
55d11a8fc9 | ||
|
|
58381a9769 | ||
|
|
7e00743a0c | ||
|
|
e2f5b1d190 | ||
|
|
b3a0de78c6 | ||
|
|
ba0a39ec39 | ||
|
|
292fd7e6ed | ||
|
|
31219fa022 | ||
|
|
9686b29349 | ||
|
|
687d640ed4 | ||
|
|
4f21a9c622 | ||
|
|
cc72dd252c | ||
|
|
e242b95f74 | ||
|
|
477c6aa038 | ||
|
|
5662d0f9f7 | ||
|
|
8fff734432 | ||
|
|
f65d6583cd | ||
|
|
e8e99a06d2 | ||
|
|
c1d0f74457 | ||
|
|
e2fa7f1723 | ||
|
|
270b920553 | ||
|
|
de87da5668 | ||
|
|
05ae9fd1ad | ||
|
|
180d213bc7 | ||
|
|
c6590da254 | ||
|
|
84d6b4c715 | ||
|
|
44596113f5 | ||
|
|
07ffbfe04b | ||
|
|
58a13c85dd | ||
|
|
a18370bbec | ||
|
|
4712877124 | ||
|
|
0f0fe5b606 | ||
|
|
8b62a3f2ca | ||
|
|
651b00118a | ||
|
|
fe46735a41 | ||
|
|
d56f468b8a | ||
|
|
2b73db81cd | ||
|
|
07fc655592 | ||
|
|
4b202944df | ||
|
|
8bbefbc1b5 | ||
|
|
aecb4c58e1 | ||
|
|
a0356cc95e | ||
|
|
8034880ac4 | ||
|
|
2adcababa6 | ||
|
|
dd8ff7a222 | ||
|
|
17f12312a3 | ||
|
|
639f9d4497 | ||
|
|
1d3b07f0ca | ||
|
|
0471a06006 | ||
|
|
645e1e9c10 | ||
|
|
65948b9e61 | ||
|
|
6e53760ffb | ||
|
|
77a9486193 |
7 changed files with 217 additions and 84 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1 +1,3 @@
|
|||
ocaml-curses-1.0.3.tar.gz
|
||||
/ocaml-curses-1.0.4.tar.gz
|
||||
/curses-1.0.11.tar.gz
|
||||
|
|
|
|||
6
gating.yaml
Executable file
6
gating.yaml
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
--- ocaml-curses-1.0.3.old/configure.ac 2008-11-17 16:37:40.000000000 +0000
|
||||
+++ ocaml-curses-1.0.3/configure.ac 2017-06-27 09:43:42.703525886 +0100
|
||||
@@ -91,17 +91,17 @@
|
||||
|
||||
AC_MSG_CHECKING(for term.h)
|
||||
AC_TRY_COMPILE(
|
||||
- [#include <term.h>], [TERMINAL __dummy],
|
||||
+ [#include <term.h>], [TERMINAL *__dummy],
|
||||
[TERM_H_STRING="<term.h>"
|
||||
AC_DEFINE(CURSES_TERM_H, <term.h>, [Defined to ncurses term.h file])],
|
||||
[
|
||||
AC_TRY_COMPILE(
|
||||
- [#include <ncurses/term.h>], [TERMINAL __dummy],
|
||||
+ [#include <ncurses/term.h>], [TERMINAL *__dummy],
|
||||
[TERM_H_STRING="<ncurses/term.h>"
|
||||
AC_DEFINE(CURSES_TERM_H, <ncurses/term.h>, [Defined to ncurses term.h file])],
|
||||
[
|
||||
AC_TRY_COMPILE(
|
||||
- [#include <curses/term.h>], [TERMINAL __dummy],
|
||||
+ [#include <curses/term.h>], [TERMINAL *__dummy],
|
||||
[TERM_H_STRING="<curses/term.h>"
|
||||
AC_DEFINE(CURSES_TERM_H, <curses/term.h>, [Defined to ncurses term.h file])],
|
||||
) ]) ])
|
||||
|
|
@ -1,25 +1,20 @@
|
|||
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
|
||||
ExcludeArch: %{ix86}
|
||||
|
||||
Name: ocaml-curses
|
||||
Version: 1.0.3
|
||||
Release: 40%{?dist}
|
||||
Version: 1.0.11
|
||||
Release: 16%{?dist}
|
||||
Summary: OCaml bindings for ncurses
|
||||
License: LGPLv2+
|
||||
License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
|
||||
|
||||
URL: http://savannah.nongnu.org/projects/ocaml-tmk/
|
||||
Source0: http://download.savannah.gnu.org/releases/ocaml-tmk/%{name}-%{version}.tar.gz
|
||||
URL: https://github.com/mbacarella/curses
|
||||
VCS: git:%{url}.git
|
||||
Source0: %{url}/archive/%{version}/curses-%{version}.tar.gz
|
||||
|
||||
# Fix detection of <term.h>. Upstream method relies on using an
|
||||
# internal ncurses struct.
|
||||
Patch1: ocaml-curses-1.0.3-fix-term-h-detection.patch
|
||||
|
||||
BuildRequires: ocaml >= 4.00.1
|
||||
BuildRequires: ocaml-findlib-devel >= 1.3.3-3
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: gawk
|
||||
|
||||
# Doesn't include a configure script, so we have to make one.
|
||||
BuildRequires: autoconf, automake, libtool
|
||||
BuildRequires: ocaml >= 4.02.0
|
||||
BuildRequires: ocaml-dune >= 2.7
|
||||
BuildRequires: ocaml-dune-configurator-devel
|
||||
BuildRequires: pkgconfig(ncurses)
|
||||
|
||||
|
||||
%description
|
||||
|
|
@ -28,13 +23,8 @@ OCaml bindings for ncurses.
|
|||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
# On aarch64, it is reported that ncurses-devel is not pulled in
|
||||
# implicitly by ocaml (as is the case on x86-64 for some reason). In
|
||||
# any case, it is likely that people installing ocaml-curses-devel
|
||||
# will desire ncurses-devel, hence:
|
||||
Requires: ncurses-devel
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: ncurses-devel%{?_isa}
|
||||
|
||||
|
||||
%description devel
|
||||
|
|
@ -43,55 +33,190 @@ developing applications that use %{name}.
|
|||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
|
||||
autoreconf
|
||||
%autosetup -n curses-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%configure --enable-widec
|
||||
make all
|
||||
%if %opt
|
||||
make opt
|
||||
%endif
|
||||
%dune_build
|
||||
|
||||
|
||||
%install
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
%if %opt
|
||||
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
|
||||
%else
|
||||
ocamlfind install curses META *.cmi *.cma *.a *.so *.mli
|
||||
%endif
|
||||
%dune_install
|
||||
|
||||
|
||||
%files
|
||||
%doc COPYING
|
||||
%{_libdir}/ocaml/curses
|
||||
%if %opt
|
||||
%exclude %{_libdir}/ocaml/curses/*.a
|
||||
%exclude %{_libdir}/ocaml/curses/*.cmxa
|
||||
%exclude %{_libdir}/ocaml/curses/*.cmx
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/curses/*.mli
|
||||
%{_libdir}/ocaml/stublibs/*.so
|
||||
%{_libdir}/ocaml/stublibs/*.so.owner
|
||||
%check
|
||||
%dune_check
|
||||
|
||||
|
||||
%files devel
|
||||
%doc COPYING
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/curses/*.a
|
||||
%{_libdir}/ocaml/curses/*.cmxa
|
||||
%{_libdir}/ocaml/curses/*.cmx
|
||||
%endif
|
||||
%{_libdir}/ocaml/curses/*.mli
|
||||
%files -f .ofiles
|
||||
%doc CHANGES.md README.md
|
||||
%license COPYING
|
||||
|
||||
|
||||
%files devel -f .ofiles-devel
|
||||
%license COPYING
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Oct 13 2025 Richard W.M. Jones <rjones@redhat.com> - 1.0.11-16
|
||||
- OCaml 5.4.0 rebuild
|
||||
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.11-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Jul 11 2025 Jerry James <loganjerry@gmail.com> - 1.0.11-14
|
||||
- Rebuild to fix OCaml dependencies
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.11-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jan 9 2025 Jerry James <loganjerry@gmail.com> - 1.0.11-12
|
||||
- OCaml 5.3.0 rebuild for Fedora 42
|
||||
- Add VCS field
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.11-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jun 19 2024 Richard W.M. Jones <rjones@redhat.com> - 1.0.11-10
|
||||
- OCaml 5.2.0 ppc64le fix
|
||||
|
||||
* Wed May 29 2024 Richard W.M. Jones <rjones@redhat.com> - 1.0.11-9
|
||||
- OCaml 5.2.0 for Fedora 41
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.11-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.11-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.11-6
|
||||
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
|
||||
|
||||
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.11-5
|
||||
- OCaml 5.1.1 rebuild for Fedora 40
|
||||
|
||||
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.11-4
|
||||
- OCaml 5.1 rebuild for Fedora 40
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.11-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.11-2
|
||||
- OCaml 5.0 rebuild for Fedora 39
|
||||
|
||||
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 1.0.11-1
|
||||
- Version 1.0.11
|
||||
- New project URLs
|
||||
- Convert License tag to SPDX
|
||||
- Build with dune
|
||||
- Add %%check script
|
||||
|
||||
* Tue Apr 25 2023 Florian Weimer <fweimer@redhat.com> - 1.0.4-30
|
||||
- Port configure script to C99
|
||||
|
||||
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-29
|
||||
- Rebuild OCaml packages for F38
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-28
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jun 18 2022 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-26
|
||||
- OCaml 4.14.0 rebuild
|
||||
|
||||
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-25
|
||||
- OCaml 4.13.1 rebuild to remove package notes
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-23
|
||||
- OCaml 4.13.1 build
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Mon Mar 1 14:31:54 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-21
|
||||
- OCaml 4.12.0 build
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-19
|
||||
- OCaml 4.11.1 rebuild
|
||||
|
||||
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-18
|
||||
- OCaml 4.11.0 rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-16
|
||||
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
||||
|
||||
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-15
|
||||
- OCaml 4.11.0 pre-release attempt 2
|
||||
|
||||
* Fri Apr 17 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-14
|
||||
- OCaml 4.11.0 pre-release
|
||||
|
||||
* Thu Apr 02 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-13
|
||||
- Update all OCaml dependencies for RPM 4.16.
|
||||
|
||||
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-12
|
||||
- OCaml 4.10.0 final.
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-10
|
||||
- OCaml 4.10.0+beta1 rebuild.
|
||||
|
||||
* Thu Jan 09 2020 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-9
|
||||
- OCaml 4.09.0 for riscv64
|
||||
|
||||
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-8
|
||||
- OCaml 4.09.0 (final) rebuild.
|
||||
|
||||
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-7
|
||||
- OCaml 4.08.1 (final) rebuild.
|
||||
|
||||
* Wed Jul 31 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-6
|
||||
- OCaml 4.08.1 (rc2) rebuild.
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jun 27 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-4
|
||||
- OCaml 4.08.0 (final) rebuild.
|
||||
|
||||
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-3
|
||||
- OCaml 4.08.0 (beta 3) rebuild.
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Tue Nov 20 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-1
|
||||
- New upstream version 1.0.4.
|
||||
- Remove patch which is now fixed upstream.
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-45
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-44
|
||||
- OCaml 4.07.0 (final) rebuild.
|
||||
|
||||
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-43
|
||||
- OCaml 4.07.0-rc1 rebuild.
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-42
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Fri Nov 17 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-41
|
||||
- OCaml 4.06.0 rebuild.
|
||||
|
||||
* Tue Aug 08 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-40
|
||||
- OCaml 4.05.0 rebuild.
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
3c11b46b7c057f8fd110ace319589877 ocaml-curses-1.0.3.tar.gz
|
||||
SHA512 (curses-1.0.11.tar.gz) = 343113ab56ce339d8dc534087c27c88513a15a7d4337187f0d8e939c05730c6f2f4e6ddb2bfa6eed96b38d8e0271762d34be0ecf94bbfcbaeef29c12a362c672
|
||||
|
|
|
|||
10
tests/basic-test.sh
Executable file
10
tests/basic-test.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash -
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# Compile trivial curses program.
|
||||
echo 'open Curses;; ignore (initscr ()); endwin ()' > cursestest.ml
|
||||
ocamlfind ocamlopt -package curses cursestest.ml -linkpkg -o cursestest
|
||||
# We can't run this because there is no controlling terminal in
|
||||
# the test environment.
|
||||
#./cursestest
|
||||
13
tests/tests.yml
Executable file
13
tests/tests.yml
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
required_packages:
|
||||
- ocaml
|
||||
- ocaml-findlib
|
||||
- ocaml-curses-devel
|
||||
tests:
|
||||
- simple:
|
||||
dir: .
|
||||
run: ./basic-test.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue