Compare commits

...
Sign in to create a new pull request.

34 commits

Author SHA1 Message Date
Jerry James
486e2bf87e Fix a changelog entry 2026-01-13 16:13:45 -07:00
Richard W.M. Jones
65379b064c OCaml 5.4.0 rebuild 2025-10-13 19:37:46 +01:00
Fedora Release Engineering
84f65b6c78 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 23:10:05 +00:00
Jerry James
62978c62ca Rebuild to fix OCaml dependencies 2025-07-11 11:43:24 -06:00
Fedora Release Engineering
76ea6f84d1 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 20:47:42 +00:00
Jerry James
55d11a8fc9 OCaml 5.3.0 rebuild for Fedora 42 2025-01-09 10:41:37 -07:00
Jerry James
58381a9769 Add VCS field 2024-12-26 20:16:27 -07:00
Fedora Release Engineering
7e00743a0c Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 20:05:18 +00:00
Richard W.M. Jones
e2f5b1d190 tests: Don't run the test 2024-06-19 22:05:42 +01:00
Richard W.M. Jones
b3a0de78c6 OCaml 5.2.0 ppc64le fix 2024-06-19 13:41:08 +01:00
Richard W.M. Jones
ba0a39ec39 Add RHEL gating test 2024-06-19 09:17:58 +01:00
Richard W.M. Jones
292fd7e6ed OCaml 5.2.0 for Fedora 41 2024-05-29 20:46:33 +01:00
Jerry James
31219fa022 Remove unused configure patch 2024-05-23 09:36:46 -06:00
Fedora Release Engineering
9686b29349 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 09:56:36 +00:00
Fedora Release Engineering
687d640ed4 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 10:14:50 +00:00
Richard W.M. Jones
4f21a9c622 OCaml 5.1.1 + s390x code gen fix for Fedora 40 2023-12-18 13:47:39 +00:00
Richard W.M. Jones
cc72dd252c OCaml 5.1.1 rebuild for Fedora 40 2023-12-12 12:25:14 +00:00
Richard W.M. Jones
e242b95f74 OCaml 5.1 rebuild for Fedora 40 2023-10-05 15:03:39 +01:00
Fedora Release Engineering
477c6aa038 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 17:15:52 +00:00
Richard W.M. Jones
5662d0f9f7 OCaml 5.0 rebuild for Fedora 39 2023-07-11 21:36:44 +01:00
Richard W.M. Jones
8fff734432 ExcludeArch i686 (https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/SPML7CUBSZNI36NLXGVHEG7DNHU3EWOJ/) 2023-07-11 11:36:23 +01:00
Jerry James
f65d6583cd Version 1.0.11
Other changes:
- New project URLs
- Convert License tag to SPDX
- Build with dune
- Add %check script
2023-07-10 14:48:38 -06:00
Florian Weimer
e8e99a06d2 Port configure script to C99
Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2023-04-25 17:33:04 +02:00
Richard W.M. Jones
c1d0f74457 Rebuild OCaml packages for F38 2023-01-24 09:04:06 +00:00
Fedora Release Engineering
e2fa7f1723 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 22:06:40 +00:00
Fedora Release Engineering
270b920553 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 01:11:59 +00:00
Richard W.M. Jones
de87da5668 OCaml 4.14.0 rebuild 2022-06-18 14:40:47 +01:00
Richard W.M. Jones
05ae9fd1ad OCaml 4.13.1 rebuild to remove package notes 2022-02-04 13:02:36 +00:00
Fedora Release Engineering
180d213bc7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 21:42:38 +00:00
Richard W.M. Jones
c6590da254 OCaml 4.13.1 build 2021-10-04 20:20:47 +01:00
Fedora Release Engineering
84d6b4c715 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 16:36:20 +00:00
Richard W.M. Jones
44596113f5 OCaml 4.12.0 build 2021-03-01 14:31:55 +00:00
Fedora Release Engineering
07ffbfe04b - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 21:56:11 +00:00
Tom Stellard
58a13c85dd Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-07 06:12:15 +00:00
6 changed files with 143 additions and 56 deletions

1
.gitignore vendored
View file

@ -1,2 +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
View file

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View file

@ -1,21 +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.4
Release: 19%{?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
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
@ -24,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
@ -39,54 +33,117 @@ developing applications that use %{name}.
%prep
%setup -q
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

View file

@ -1 +1 @@
SHA512 (ocaml-curses-1.0.4.tar.gz) = a49838f1d32bf96fda6c612ac1b38316f61c49aa015e61e49681eacf863234f36ffe71d4305dd34f8e3b0a5dc6d9757919a107bcfdf46bd90df128e975560948
SHA512 (curses-1.0.11.tar.gz) = 343113ab56ce339d8dc534087c27c88513a15a7d4337187f0d8e939c05730c6f2f4e6ddb2bfa6eed96b38d8e0271762d34be0ecf94bbfcbaeef29c12a362c672

10
tests/basic-test.sh Executable file
View 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
View 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