Major version leap to the latest, supported, released version.

This commit is contained in:
Richard W.M. Jones 2008-11-17 17:07:00 +00:00
parent 4d797d95fc
commit ea9599a3c3
3 changed files with 21 additions and 26 deletions

View File

@ -1 +1 @@
ocaml-curses-20020319.tar.gz
ocaml-curses-1.0.3.tar.gz

View File

@ -1,32 +1,29 @@
%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: 8.%{alphatag}%{?dist}
Version: 1.0.3
Release: 1%{?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
Source0: http://download.savannah.gnu.org/releases/ocaml-tmk/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ocaml >= 3.10.1
BuildRequires: ocaml >= 3.10.2
BuildRequires: ocaml-findlib-devel, ncurses-devel
BuildRequires: gawk
# Doesn't include a configure script, so we have to make one.
BuildRequires: autoconf, automake, libtool
%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.
@ -43,29 +40,24 @@ developing applications that use %{name}.
%prep
%setup -q -c -n ocaml-curses-%{alphatag}
%setup -q
autoreconf
%build
cd curses
make all
strip dllmlcurses.so
cat > META <<EOF
name = "curses"
version = "%{version}"
description = "OCaml bindings for ncurses"
requires = ""
archive(byte) = "mlcurses.cma"
archive(native) = "mlcurses.cmxa"
EOF
%configure
make all opt
strip dllcurses_stubs.so
%install
rm -rf $RPM_BUILD_ROOT
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
cd curses
ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli
@ -99,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
- Major version leap to the latest, supported, released version.
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.1-8
- Rebuild for OCaml 3.10.2

View File

@ -1 +1 @@
74b28875f818e285e57c4a1d0c1eca46 ocaml-curses-20020319.tar.gz
3c11b46b7c057f8fd110ace319589877 ocaml-curses-1.0.3.tar.gz