[packages/ocaml-curses] new, version 1.0.3
glen
glen at pld-linux.org
Sat Aug 31 21:46:21 CEST 2013
commit 53960c1c06fad5f6b9e65821cd8a6e46ed412a74
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Aug 31 22:45:43 2013 +0300
new, version 1.0.3
based on fedora package
1d9818d904ab81c6cbf5b8011a1523aa9d1372c9
ocaml-curses.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
---
diff --git a/ocaml-curses.spec b/ocaml-curses.spec
new file mode 100644
index 0000000..a84ed75
--- /dev/null
+++ b/ocaml-curses.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_without opt # build opt
+
+Summary: OCaml bindings for ncurses
+Name: ocaml-curses
+Version: 1.0.3
+Release: 1
+License: LGPL v2+
+Group: Development/Libraries
+Source0: http://download.savannah.gnu.org/releases/ocaml-tmk/%{name}-%{version}.tar.gz
+# Source0-md5: 3c11b46b7c057f8fd110ace319589877
+URL: http://savannah.nongnu.org/projects/ocaml-tmk/
+BuildRequires: autoconf
+BuildRequires: gawk
+BuildRequires: libtool
+BuildRequires: ncurses-devel
+BuildRequires: ocaml >= 1:3.10.2
+BuildRequires: ocaml-findlib-devel >= 1.3.3-3
+ExcludeArch: sparc64 s390 s390x
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%requires_eq ocaml-runtime
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OCaml bindings for ncurses.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+%requires_eq ocaml
+
+%description devel
+The %{name}-devel package contains libraries and signature files for
+developing applications that use %{name}.
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%configure \
+ --enable-widec
+
+%{__make} all opt
+
+%install
+rm -rf $RPM_BUILD_ROOT
+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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_libdir}/ocaml/curses
+%exclude %{_libdir}/ocaml/curses/*.mli
+%if %{with opt}
+%exclude %{_libdir}/ocaml/curses/*.a
+%exclude %{_libdir}/ocaml/curses/*.cmxa
+%exclude %{_libdir}/ocaml/curses/*.cmx
+%endif
+%attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
+%{_libdir}/ocaml/stublibs/*.so.owner
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/ocaml/curses/*.mli
+%if %{with opt}
+%{_libdir}/ocaml/curses/*.a
+%{_libdir}/ocaml/curses/*.cmxa
+%{_libdir}/ocaml/curses/*.cmx
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-curses.git/commitdiff/53960c1c06fad5f6b9e65821cd8a6e46ed412a74
More information about the pld-cvs-commit
mailing list