commit
fc26607b60
23
ocaml-curses-1.0.3-fix-term-h-detection.patch
Normal file
23
ocaml-curses-1.0.3-fix-term-h-detection.patch
Normal file
@ -0,0 +1,23 @@
|
||||
--- 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])],
|
||||
) ]) ])
|
||||
BIN
ocaml-curses-1.0.3.tar.gz
Normal file
BIN
ocaml-curses-1.0.3.tar.gz
Normal file
Binary file not shown.
52
ocaml-curses.spec
Normal file
52
ocaml-curses.spec
Normal file
@ -0,0 +1,52 @@
|
||||
Name: ocaml-curses
|
||||
Version: 1.0.3
|
||||
Release: 47
|
||||
Summary: A project to provide curses/ncurses bindings
|
||||
License: LGPLv2+
|
||||
URL: http://savannah.nongnu.org/projects/ocaml-tmk/
|
||||
Source0: http://download.savannah.gnu.org/releases/ocaml-tmk/ocaml-curses-%{version}.tar.gz
|
||||
Patch0001: ocaml-curses-1.0.3-fix-term-h-detection.patch
|
||||
BuildRequires: ocaml >= 4.00.1 ocaml-findlib-devel >= 1.3.3-3 ncurses-devel gawk autoconf automake libtool
|
||||
|
||||
%description
|
||||
OCaml Curses is a project to provide curses/ncurses bindings
|
||||
for the Objective Caml language.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the ocaml-curses library
|
||||
Requires: ocaml-curses = %{version}-%{release} ncurses-devel
|
||||
|
||||
%description devel
|
||||
The ocaml-curses-devel package includes header files and libraries necessary
|
||||
for the ocaml-curses library.
|
||||
|
||||
%prep
|
||||
%autosetup -n ocaml-curses-%{version} -p1
|
||||
autoreconf
|
||||
|
||||
%build
|
||||
%configure --enable-widec
|
||||
make all
|
||||
make opt
|
||||
|
||||
%install
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
|
||||
|
||||
%files
|
||||
%doc COPYING
|
||||
%{_libdir}/ocaml/curses
|
||||
%exclude %{_libdir}/ocaml/curses/*.a
|
||||
%exclude %{_libdir}/ocaml/curses/*.cmx*
|
||||
%exclude %{_libdir}/ocaml/curses/*.mli
|
||||
%{_libdir}/ocaml/stublibs/*.so*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/ocaml/curses/*.a
|
||||
%{_libdir}/ocaml/curses/*.cmx*
|
||||
%{_libdir}/ocaml/curses/*.mli
|
||||
|
||||
%changelog
|
||||
* Tue Feb 25 2020 zhouyihang<zhouyihang1@huawei.com> - 1.0.3-47
|
||||
- Pakcage init
|
||||
Loading…
x
Reference in New Issue
Block a user