53 lines
1.5 KiB
RPMSpec
53 lines
1.5 KiB
RPMSpec
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
|