2007-07-06 21:09:41 +00:00
|
|
|
%define debug_package %{nil}
|
2006-12-02 15:41:44 +00:00
|
|
|
|
2007-07-06 21:09:41 +00:00
|
|
|
Name: ocaml-lablgl
|
2008-02-13 00:32:54 +00:00
|
|
|
Version: 1.03
|
|
|
|
Release: 1%{?dist}
|
2005-04-06 22:12:20 +00:00
|
|
|
|
2005-04-01 17:05:32 +00:00
|
|
|
Summary: LablGL is an OpenGL interface for Objective Caml
|
2004-11-08 04:39:51 +00:00
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD
|
|
|
|
URL: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
|
2008-02-13 00:32:54 +00:00
|
|
|
Source0: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgl-%{version}.tar.gz
|
2004-11-08 04:39:51 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-07-06 21:09:41 +00:00
|
|
|
|
2008-02-13 00:32:54 +00:00
|
|
|
Patch0: lablgl-tk8.5.patch
|
|
|
|
|
2007-07-06 21:09:41 +00:00
|
|
|
Obsoletes: lablgl <= 1.02-9
|
|
|
|
Provides: lablgl = 1.02-9
|
2006-02-26 12:49:47 +00:00
|
|
|
BuildRequires: freeglut-devel
|
2007-07-06 21:09:41 +00:00
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: labltk
|
|
|
|
BuildRequires: camlp4
|
|
|
|
BuildRequires: tcl-devel
|
2006-02-26 12:49:47 +00:00
|
|
|
BuildRequires: tk-devel
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libXext-devel
|
|
|
|
BuildRequires: libXmu-devel
|
2006-02-26 13:11:06 +00:00
|
|
|
BuildRequires: libXxf86vm-devel
|
|
|
|
BuildRequires: mesa-libGL-devel
|
|
|
|
BuildRequires: mesa-libGLU-devel
|
2007-07-06 22:04:11 +00:00
|
|
|
BuildRequires: ocaml-labltk-devel
|
|
|
|
BuildRequires: ocaml-camlp4-devel
|
2007-07-06 22:12:27 +00:00
|
|
|
ExcludeArch: ppc64
|
2007-07-06 21:09:41 +00:00
|
|
|
|
|
|
|
%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
|
2004-11-08 04:39:51 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
LablGL is is an Objective Caml interface to OpenGL. Support is
|
|
|
|
included for use inside LablTk, and LablGTK also includes specific
|
|
|
|
support for LablGL. It can be used either with proprietary OpenGL
|
|
|
|
implementations (SGI, Digital Unix, Solaris...), with XFree86 GLX
|
|
|
|
extension, or with open-source Mesa.
|
|
|
|
|
2006-05-10 18:09:00 +00:00
|
|
|
|
2007-07-06 21:09:41 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-07-06 22:04:11 +00:00
|
|
|
Requires: ocaml-labltk-devel
|
2004-11-08 04:39:51 +00:00
|
|
|
|
2007-07-06 21:09:41 +00:00
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
2006-05-10 18:09:00 +00:00
|
|
|
|
2007-07-06 21:09:41 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n lablgl-%{version}
|
2008-02-13 00:32:54 +00:00
|
|
|
%patch0 -p1
|
|
|
|
|
2004-11-08 04:39:51 +00:00
|
|
|
cat > Makefile.config <<EOF
|
|
|
|
CAMLC = ocamlc.opt
|
|
|
|
CAMLOPT = ocamlopt.opt
|
2005-02-13 09:17:45 +00:00
|
|
|
BINDIR = %{_bindir}
|
|
|
|
XINCLUDES = -I%{_prefix}/X11R6/include
|
2007-07-06 21:09:41 +00:00
|
|
|
XLIBS = -lXext -lXmu -lX11
|
2005-02-13 09:17:45 +00:00
|
|
|
TKINCLUDES = -I%{_includedir}
|
2004-11-08 04:39:51 +00:00
|
|
|
GLINCLUDES =
|
|
|
|
GLLIBS = -lGL -lGLU
|
2005-02-12 11:37:23 +00:00
|
|
|
GLUTLIBS = -lglut -lXxf86vm
|
2004-11-08 04:39:51 +00:00
|
|
|
RANLIB = :
|
|
|
|
LIBDIR = %{_libdir}/ocaml
|
|
|
|
DLLDIR = %{_libdir}/ocaml/stublibs
|
|
|
|
INSTALLDIR = %{_libdir}/ocaml/lablGL
|
|
|
|
TOGLDIR=Togl
|
|
|
|
COPTS = $RPM_OPT_FLAGS
|
|
|
|
EOF
|
2007-07-06 21:09:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2005-11-01 15:39:20 +00:00
|
|
|
make all opt
|
2004-11-08 04:39:51 +00:00
|
|
|
|
2006-05-10 18:09:00 +00:00
|
|
|
|
2004-11-08 04:39:51 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
|
|
|
|
make INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL \
|
2007-07-06 21:09:41 +00:00
|
|
|
DLLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs \
|
|
|
|
BINDIR=$RPM_BUILD_ROOT%{_bindir} \
|
|
|
|
install
|
|
|
|
|
|
|
|
# Make and install a META file.
|
|
|
|
cat <<EOM >META
|
|
|
|
version="%{version}"
|
|
|
|
directory="+lablgl"
|
|
|
|
archive(byte) = "lablgl.cma"
|
|
|
|
archive(native) = "lablgl.cmxa"
|
|
|
|
|
|
|
|
package "togl" (
|
|
|
|
requires = "labltk lablgl"
|
|
|
|
archive(byte) = "togl.cma"
|
|
|
|
archive(native) = "togl.cmxa"
|
|
|
|
)
|
|
|
|
|
|
|
|
package "glut" (
|
|
|
|
requires = "lablgl"
|
|
|
|
archive(byte) = "lablglut.cma"
|
|
|
|
archive(native) = "lablglut.cmxa"
|
|
|
|
)
|
|
|
|
EOM
|
|
|
|
cp META $RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL
|
|
|
|
|
|
|
|
# Remove unnecessary *.ml files (ones which have a *.mli).
|
|
|
|
pushd $RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL
|
|
|
|
for f in *.ml; do \
|
|
|
|
b=`basename $f .ml`; \
|
|
|
|
if [ -f "$b.mli" ]; then \
|
|
|
|
rm $f; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
popd
|
2004-11-08 04:39:51 +00:00
|
|
|
|
2006-05-10 18:09:00 +00:00
|
|
|
|
2004-11-08 04:39:51 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2006-05-10 18:09:00 +00:00
|
|
|
|
2004-11-08 04:39:51 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-07-06 21:09:41 +00:00
|
|
|
%doc README
|
|
|
|
%dir %{_libdir}/ocaml/lablGL
|
|
|
|
%{_libdir}/ocaml/lablGL/*.cma
|
|
|
|
%{_libdir}/ocaml/lablGL/*.cmi
|
2004-11-08 04:39:51 +00:00
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
2007-07-06 21:09:41 +00:00
|
|
|
%{_bindir}/lablgl
|
|
|
|
%{_bindir}/lablglut
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES COPYRIGHT README LablGlut/examples Togl/examples
|
|
|
|
%{_libdir}/ocaml/lablGL/META
|
|
|
|
%{_libdir}/ocaml/lablGL/*.a
|
|
|
|
%{_libdir}/ocaml/lablGL/*.cmxa
|
|
|
|
%{_libdir}/ocaml/lablGL/*.cmx
|
|
|
|
%{_libdir}/ocaml/lablGL/*.mli
|
|
|
|
%{_libdir}/ocaml/lablGL/build.ml
|
2004-11-08 04:39:51 +00:00
|
|
|
|
2006-05-10 18:09:00 +00:00
|
|
|
|
2004-11-08 04:39:51 +00:00
|
|
|
%changelog
|
2008-02-13 00:32:54 +00:00
|
|
|
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 1.03-1
|
|
|
|
- New upstream version 1.03.
|
|
|
|
- Fix for Tk 8.5.
|
|
|
|
- Rebuild for OCaml 3.10.1.
|
|
|
|
|
2007-09-07 09:08:32 +00:00
|
|
|
* Fri Sep 7 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.02-15
|
|
|
|
- Rebuild
|
|
|
|
|
2007-08-30 09:47:31 +00:00
|
|
|
* Thu Aug 30 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.02-13
|
|
|
|
- Rebuild
|
|
|
|
|
2007-07-06 22:12:27 +00:00
|
|
|
* Sat Jul 7 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.02-12
|
|
|
|
- exclude arch ppc64
|
|
|
|
|
2007-07-06 22:04:11 +00:00
|
|
|
* Sat Jul 7 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.02-11
|
|
|
|
- added buildreq ocaml-camlp4-devel
|
|
|
|
|
2007-07-06 21:09:41 +00:00
|
|
|
* Fri Jul 6 2007 Gerard Milmeister <gemi@bluewin.ch> - 1.02-10
|
|
|
|
- renamed package from lablgl to ocaml-lablgl
|
|
|
|
|
2006-12-02 15:41:44 +00:00
|
|
|
* Sat Dec 2 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.02-9
|
|
|
|
- Rebuild for ocaml 3.09.3
|
|
|
|
|
2006-08-28 17:03:26 +00:00
|
|
|
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.02-8
|
|
|
|
- Rebuild for FE6
|
|
|
|
|
2006-05-10 18:09:00 +00:00
|
|
|
* Wed May 10 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.02-7
|
|
|
|
- rebuilt for ocaml 3.09.2
|
|
|
|
|
2006-02-26 12:49:47 +00:00
|
|
|
* Sun Feb 26 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.02-4
|
|
|
|
- Rebuild for ocaml 3.09.1
|
|
|
|
|
2006-02-25 16:58:54 +00:00
|
|
|
* Sat Feb 25 2006 Gerard Milmeister <gemi@bluewin.ch> - 1.02-3
|
|
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
|
2005-11-01 15:39:20 +00:00
|
|
|
* Tue Nov 1 2005 Gerard Milmeister <gemi@bluewin.ch> - 1.02-2
|
|
|
|
- build opt libraries
|
|
|
|
|
|
|
|
* Tue Nov 1 2005 Gerard Milmeister <gemi@bluewin.ch> - 1.02-1
|
2005-11-01 00:42:51 +00:00
|
|
|
- New Version 1.02
|
|
|
|
|
2005-09-12 00:13:40 +00:00
|
|
|
* Sun Sep 11 2005 Gerard Milmeister <gemi@bluewin.ch> - 1.01-7
|
|
|
|
- Rebuild with new ocaml
|
|
|
|
|
2005-05-26 18:54:23 +00:00
|
|
|
* Thu May 26 2005 Toshio Kuratomi <toshio-tiki-lounge.com> - 1.01-6
|
|
|
|
- Bump and rebuild with new ocaml.
|
|
|
|
|
2005-05-22 23:04:42 +00:00
|
|
|
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.01-5
|
|
|
|
- rebuild on all arches
|
|
|
|
|
2005-04-06 22:12:20 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-04-01 17:05:32 +00:00
|
|
|
* Fri Apr 1 2005 Gerard Milmeister <gemi@bluewin.ch> - 1.01-3
|
|
|
|
- Rebuild for ocaml 3.08.3
|
|
|
|
|
2005-02-12 11:37:23 +00:00
|
|
|
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:1.01-2
|
|
|
|
- Removed %{_smp_mflags} as it breaks the build
|
|
|
|
|
|
|
|
* Thu Aug 19 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:1.01-0.fdr.1
|
|
|
|
- New Version 1.01
|
|
|
|
|
2004-11-08 04:39:51 +00:00
|
|
|
* Mon Dec 1 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:1.00-0.fdr.4
|
|
|
|
- Patch to used GL/freeglut.h instead of GL/glut.h
|
|
|
|
- Add BuildRequires for labltk
|
|
|
|
|
|
|
|
* Fri Nov 28 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:1.00-0.fdr.3
|
|
|
|
- Add BuildRequires for camlp4
|