Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 735fe3f95a15a21b87d44fc5ca9046a2 > files > 2

ocaml-lablgl-1.02-12mdv2007.1.src.rpm

%define base_name	lablgl
%define name		ocaml-%{base_name}
%define version		1.02
%define release		%mkrel 12

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:    LablGL is an OpenGL interface for Objective Caml
License:    BSD
Group:      System/Libraries
URL:        http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
Source:     http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgl-%{version}.tar.bz2
BuildRequires:  ocaml
BuildRequires:  camlp4
BuildRequires:  ocaml-labltk
BuildRequires:  tcl-devel
BuildRequires:  tk-devel
BuildRequires:  X11-devel
BuildRequires:  Mesa-common-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}

%package -n %{name}-devel
Summary:    LablGL is an OpenGL interface for Objective Caml
Group:      System/Libraries

%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.

%description -n %{name}-devel
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.

%prep
%setup -q -n lablgl-%version

%build
cat > Makefile.config << EOF
CAMLC = ocamlc.opt
CAMLOPT = ocamlopt.opt
BINDIR = %{_bindir}
XINCLUDES = -I%{_prefix}/X11R6/include
XLIBS = -L%{_prefix}/X11R6/%{_lib} -lXext -lXmu -lX11 -lXi
TKINCLUDES = -I%{_includedir}
GLLIBS = -lGL -lGLU
GLUTLIBS = -lglut
GLINCLUDES =
RANLIB = ranlib
COPTS = $RPM_OPT_FLAGS
EOF

make -j1 all opt

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_libdir}/ocaml/stublibs
make\
   PREFIX=%{buildroot}/%{_prefix}\
   BINDIR=%{buildroot}/%{_bindir}\
   LIBDIR=%{buildroot}/%{_libdir}/ocaml\
   INSTALLDIR=%{buildroot}/%{_libdir}/ocaml/lablGL\
   DLLDIR=%{buildroot}/%{_libdir}/ocaml/stublibs\
   install

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYRIGHT
%{_libdir}/ocaml/stublibs/*

%files -n %{name}-devel
%defattr(-,root,root)
%doc CHANGES README
%{_bindir}/*
%{_libdir}/ocaml/lablGL


%changelog
* Thu Jan 25 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.02-12mdv2007.0
+ Revision: 113167
- rebuild for new ocaml
- Import ocaml-lablgl



* Mon Aug 28 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.02-11mdv2007.0
- spec cleanup
- %%mkrel

* Wed Apr 26 2006 Pixel <pixel@mandriva.com> 1.02-10mdk
- rebuild for new ocaml

* Tue Jan 31 2006 Pixel <pixel@mandriva.com> 1.02-9mdk
- add BuildRequires tk-devel, tcl-devel

* Mon Jan 30 2006 Pixel <pixel@mandriva.com> 1.02-8mdk
- add BuildRequires Mesa-common-devel

* Fri Jan 27 2006 Pixel <pixel@mandriva.com> 1.02-7mdk
- add BuildRequires X11-devel

* Thu Jan 26 2006 Pixel <pixel@mandriva.com> 1.02-6mdk
- add BuildRequires camlp4

* Thu Jan 26 2006 Pixel <pixel@mandriva.com> 1.02-5mdk
- simplify BuildRequires (don't build require a file)
- only the stublibs are non-devel stuff (common mistake done in most our packages)

* Thu Jan 19 2006 Guillaume Bedot <littletux@mandriva.org> 1.02-4mdk
- Builds on x86_64

* Wed Nov 09 2005 Guillaume Bedot <littletux@mandriva.org> 1.02-3mdk
- really exclude devel files from ocaml-lablgl package

* Wed Nov 09 2005 Guillaume Bedot <littletux@mandriva.org> 1.02-2mdk
- fixed group
- source in devel package

* Wed Nov 09 2005 Guillaume Bedot <littletux@mandriva.org> 1.02-1mdk
- new release
- use bz2

* Fri Nov  4 2005 Pixel <pixel@mandriva.com> 1.01-2mdk
- rebuild for new ocaml

* Tue Nov  1 2005 Frederic Lepied <flepied@mandriva.com> 1.01-1mdk
- initial Mandriva Linux package

* Thu Jan 27 2005 Aleksey Nogin <rpm@nogin.org>
- Updated to 1.01
- Various minor spec file improvements.

* Thu Apr 22 2002 Ben Martin
- Created