diff --git a/.cvsignore b/.cvsignore index e69de29..908bc0f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ocaml-curses-20020319.tar.gz diff --git a/ocaml-curses.spec b/ocaml-curses.spec new file mode 100644 index 0000000..915462d --- /dev/null +++ b/ocaml-curses.spec @@ -0,0 +1,108 @@ +%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +%define debug_package %{nil} + +# Note on versioning: There are no official releases +# of ocaml-tmk project, nor any version numbers, so I +# have arbitrarily named this version 0.1 and as per +# http://fedoraproject.org/wiki/Packaging/NamingGuidelines#NonNumericRelease +# included an alphatag of the last CVS change upstream. +%define alphatag 20020319 + +Name: ocaml-curses +Version: 0.1 +Release: 3.%{alphatag}%{?dist} +Summary: OCaml bindings for ncurses + +Group: Development/Libraries +License: LGPLv2+ +URL: http://savannah.nongnu.org/projects/ocaml-tmk/ +Source0: ocaml-curses-%{alphatag}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +ExcludeArch: ppc64 + +BuildRequires: ocaml, ocaml-findlib-devel, ncurses-devel + +%define _use_internal_dependency_generator 0 +%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh +%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh + +%description +OCaml bindings for ncurses. + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + + +%description devel +The %{name}-devel package contains libraries and signature files for +developing applications that use %{name}. + + +%prep +%setup -q -c -n ocaml-curses-%{alphatag} + + +%build +cd curses +make all +strip dllmlcurses.so +cat > META < - 0.1-3.20020319 +- License is LGPL 2.1 or any later version. + +* Mon Aug 6 2007 Richard W.M. Jones - 0.1-2.20020319 +- The archive is called 'mlcurses.*'. + +* Mon Aug 6 2007 Richard W.M. Jones - 0.1-1.20020319 +- Initial RPM release. diff --git a/sources b/sources index e69de29..a2a96af 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +74b28875f818e285e57c4a1d0c1eca46 ocaml-curses-20020319.tar.gz