17d35e3
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
fc1e85f
fc1e85f
Name:           ocaml-curses
ea9599a
Version:        1.0.3
645e1e9
Release:        44%{?dist}
fc1e85f
Summary:        OCaml bindings for ncurses
fc1e85f
License:        LGPLv2+
17d35e3
fc1e85f
URL:            http://savannah.nongnu.org/projects/ocaml-tmk/
ea9599a
Source0:        http://download.savannah.gnu.org/releases/ocaml-tmk/%{name}-%{version}.tar.gz
17d35e3
44e467d
# Fix detection of <term.h>.  Upstream method relies on using an
44e467d
# internal ncurses struct.
44e467d
Patch1:         ocaml-curses-1.0.3-fix-term-h-detection.patch
44e467d
b4121db
BuildRequires:  ocaml >= 4.00.1
b4121db
BuildRequires:  ocaml-findlib-devel >= 1.3.3-3
b4121db
BuildRequires:  ncurses-devel
d10f418
BuildRequires:  gawk
fc1e85f
ea9599a
# Doesn't include a configure script, so we have to make one.
ea9599a
BuildRequires:  autoconf, automake, libtool
ea9599a
ea9599a
fc1e85f
%description
fc1e85f
OCaml bindings for ncurses.
fc1e85f
fc1e85f
fc1e85f
%package        devel
fc1e85f
Summary:        Development files for %{name}
fc1e85f
Requires:       %{name} = %{version}-%{release}
fc1e85f
6c6f586
# On aarch64, it is reported that ncurses-devel is not pulled in
6c6f586
# implicitly by ocaml (as is the case on x86-64 for some reason).  In
6c6f586
# any case, it is likely that people installing ocaml-curses-devel
6c6f586
# will desire ncurses-devel, hence:
6c6f586
Requires:       ncurses-devel
6c6f586
fc1e85f
fc1e85f
%description    devel
fc1e85f
The %{name}-devel package contains libraries and signature files for
fc1e85f
developing applications that use %{name}.
fc1e85f
fc1e85f
fc1e85f
%prep
ea9599a
%setup -q
44e467d
%patch1 -p1
ea9599a
ea9599a
autoreconf
fc1e85f
fc1e85f
fc1e85f
%build
9871d48
%configure --enable-widec
04f1f9a
make all
04f1f9a
%if %opt
04f1f9a
make opt
04f1f9a
%endif
ea9599a
fc1e85f
fc1e85f
%install
fc1e85f
export DESTDIR=$RPM_BUILD_ROOT
fc1e85f
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
fc1e85f
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
04f1f9a
%if %opt
fc1e85f
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
04f1f9a
%else
04f1f9a
ocamlfind install curses META *.cmi *.cma *.a *.so *.mli
04f1f9a
%endif
fc1e85f
fc1e85f
fc1e85f
%files
fc1e85f
%doc COPYING
fc1e85f
%{_libdir}/ocaml/curses
fc1e85f
%if %opt
fc1e85f
%exclude %{_libdir}/ocaml/curses/*.a
fc1e85f
%exclude %{_libdir}/ocaml/curses/*.cmxa
fc1e85f
%exclude %{_libdir}/ocaml/curses/*.cmx
fc1e85f
%endif
fc1e85f
%exclude %{_libdir}/ocaml/curses/*.mli
fc1e85f
%{_libdir}/ocaml/stublibs/*.so
fc1e85f
%{_libdir}/ocaml/stublibs/*.so.owner
fc1e85f
fc1e85f
fc1e85f
%files devel
fc1e85f
%doc COPYING
fc1e85f
%if %opt
fc1e85f
%{_libdir}/ocaml/curses/*.a
fc1e85f
%{_libdir}/ocaml/curses/*.cmxa
fc1e85f
%{_libdir}/ocaml/curses/*.cmx
fc1e85f
%endif
fc1e85f
%{_libdir}/ocaml/curses/*.mli
fc1e85f
fc1e85f
fc1e85f
%changelog
645e1e9
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-44
645e1e9
- OCaml 4.07.0 (final) rebuild.
645e1e9
65948b9
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-43
65948b9
- OCaml 4.07.0-rc1 rebuild.
65948b9
6e53760
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-42
6e53760
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6e53760
77a9486
* Fri Nov 17 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-41
77a9486
- OCaml 4.06.0 rebuild.
77a9486
63e6a47
* Tue Aug 08 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-40
63e6a47
- OCaml 4.05.0 rebuild.
63e6a47
8ef87bb
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-39
8ef87bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8ef87bb
48d897f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-38
48d897f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
48d897f
44e467d
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-37
5e4bdba
- OCaml 4.04.2 rebuild.
44e467d
- Fix detection of <term.h> header for ncurses 6.0-10.20170520.
5e4bdba
3ebaab4
* Fri May 12 2017 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-35
3ebaab4
- OCaml 4.04.1 rebuild.
3ebaab4
a2db9d8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-34
a2db9d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a2db9d8
64103be
* Sat Nov 05 2016 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-33
64103be
- Rebuild for OCaml 4.04.0.
64103be
9b4ed7a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-32
9b4ed7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9b4ed7a
bb2233c
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-31
bb2233c
- OCaml 4.02.3 rebuild.
bb2233c
04f1f9a
* Tue Jul 21 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-30
04f1f9a
- Enable bytecode compilation.
04f1f9a
ddbe09c
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-29
ddbe09c
- ocaml-4.02.2 final rebuild.
ddbe09c
0a3834e
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-28
0a3834e
- ocaml-4.02.2 rebuild.
0a3834e
11b8a5a
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-27
11b8a5a
- ocaml-4.02.1 rebuild.
11b8a5a
17e54e5
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-26
17e54e5
- ocaml-4.02.0 final rebuild.
17e54e5
eb306a4
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-25
eb306a4
- ocaml-4.02.0+rc1 rebuild.
eb306a4
097b31b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-24
097b31b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
097b31b
d6a404e
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-23
d6a404e
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
d6a404e
61e3433
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-22
61e3433
- Bump release and rebuild.
61e3433
1d3412e
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-21
1d3412e
- OCaml 4.02.0 beta rebuild.
1d3412e
28f01c4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-20
28f01c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
28f01c4
6c6f586
* Fri May  9 2014 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-19
6c6f586
- Add explicit requires ncurses to ocaml-curses-devel subpackage.
6c6f586
17d35e3
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-18
17d35e3
- Rebuild for OCaml 4.01.0.
17d35e3
- Enable debuginfo.
17d35e3
- Modernize the spec file.
17d35e3
1d9818d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-17
1d9818d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1d9818d
4c98f65
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-16
4c98f65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4c98f65
b4121db
* Tue Nov 27 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-15
b4121db
- BR >= OCaml 4.00.1 so we can't be built against the wrong OCaml.
b4121db
633d624
* Mon Oct 29 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-14
633d624
- Rebuild for OCaml 4.00.1.
633d624
fd908cb
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-13
fd908cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fd908cb
08cd208
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-12
08cd208
- Rebuild for OCaml 4.00.0.
08cd208
d548430
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-11
d548430
- Rebuild for OCaml 3.12.1.
d548430
ce5a653
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-10
ce5a653
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ce5a653
c9f6fed
* Thu Jan 06 2011 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-9
c9f6fed
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
c9f6fed
a04f018
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-8
a04f018
- Rebuild for OCaml 3.11.2.
a04f018
17d35e3
* Mon Oct  5 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-7
9871d48
- Use ncursesw for wide character support.
9871d48
2b247ca
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
2b247ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2b247ca
7bdbbb2
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-5
7bdbbb2
- Rebuild for OCaml 3.11.1
7bdbbb2
5b1747e
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
5b1747e
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
5b1747e
  (added sparc64 per request from the sparc maintainer)
5b1747e
3520d69
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-4
3520d69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3520d69
af52a60
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-3
af52a60
- Rebuild for OCaml 3.11.0+rc1.
af52a60
34d4345
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-2
34d4345
- Rebuild for OCaml 3.11.0
34d4345
ea9599a
* Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
ea9599a
- Major version leap to the latest, supported, released version.
ea9599a
4d797d9
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-8
4d797d9
- Rebuild for OCaml 3.10.2
4d797d9
2d4e15f
* Sat Mar  1 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-7.20020319
2d4e15f
- Rebuild for ppc64.
2d4e15f
2ccfa57
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-6.20020319
2ccfa57
- Rebuild for OCaml 3.10.1
2ccfa57
21cad6f
* Thu Sep  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-5.20020319
21cad6f
- Force rebuild because of updated requires/provides scripts in OCaml.
21cad6f
d10f418
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-4.20020319
d10f418
- Force rebuild because of changed BRs in base OCaml.
d10f418
17d35e3
* Mon Aug 27 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-3.20020319
fc1e85f
- License is LGPL 2.1 or any later version.
fc1e85f
fc1e85f
* Mon Aug  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-2.20020319
fc1e85f
- The archive is called 'mlcurses.*'.
fc1e85f
fc1e85f
* Mon Aug  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.1-1.20020319
fc1e85f
- Initial RPM release.