File lablgtk2.spec of Package lablgtk2

#
# spec file for package lablgtk2 (Version 2.10.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           lablgtk2
BuildRequires:  gtk2-devel librsvg-devel ocaml xorg-x11
%if 0%{?suse_version} >= 1010
BuildRequires:  camlp4
%endif
BuildRequires:  librsvg-devel
License:        LGPL v2.1 or later
Group:          Development/Libraries/Other
Requires:       ocaml
AutoReqProv:    on
Version:        2.10.1
Release:        1
Source0:        http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/lablgtk-%{version}.tar.gz
Source1:        rpmlintrc
Url:            http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk.html
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        An Objective Caml Interface to gtk2+

%description
LablGTK2 uses the rich type system of Objective Caml 3 to provide a
strongly typed, yet very comfortable, object-oriented interface to
GTK2+. Objective Caml threads are supported, including for the top
level, which allows the interactive use of the library.



Authors:
--------
    Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
    Benjamin Monate  <monate@lix.polytechnique.fr>
    Olivier Andrieu  <oandrieu@nerim.net>
    Jun Furuse       <Jun.Furuse@inria.fr>
    Hubert Fauque    <hubert.fauque@wanadoo.fr>
    Koji Kagawa      <kagawa@eng.kagawa-u.ac.jp>

%package devel
License:        LGPL v2.1 or later
Summary:        An Objective Caml interface to gtk2+
Group:          Development/Libraries/Other
Provides:       lablgtk2:/usr/lib/ocaml/lablgtk2/glib.cmi
Requires:       lablgtk2 = %{version}
AutoReqProv:    on

%description devel
LablGTK2 uses the rich type system of Objective Caml 3 to provide a
strongly typed, yet very comfortable, object-oriented interface to
GTK2+. Objective Caml threads are supported, including for the top
level, which allows for interactive use of the library.



Authors:
--------
    Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
    Benjamin Monate  <monate@lix.polytechnique.fr>
    Olivier Andrieu  <oandrieu@nerim.net>
    Jun Furuse       <Jun.Furuse@inria.fr>
    Hubert Fauque    <hubert.fauque@wanadoo.fr>
    Koji Kagawa      <kagawa@eng.kagawa-u.ac.jp>

%prep
%setup -n lablgtk-%{version}
find -name ".cvsignore" | xargs rm -v

%build
export CFLAGS="$RPM_OPT_FLAGS"
make configure 
./configure
make
%ifnarch ppc64 s390 s390x
cd src
make lablgtk.cmxa
make lablrsvg.cmxa
make gtkInit.cmx
cd ..
%endif

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2
make INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2\
     BINDIR=$RPM_BUILD_ROOT%{_bindir} install

%clean
# Clear up the mess
rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-, root, root)
%doc CHANGES COPYING README examples
%{_bindir}/*
%dir %{_libdir}/ocaml/lablgtk2
%{_libdir}/ocaml/lablgtk2/*
%exclude %{_libdir}/ocaml/lablgtk2/*.cmi
%exclude %{_libdir}/ocaml/lablgtk2/*.h

%files devel
%defattr(-, root, root)
%doc examples
%{_libdir}/ocaml/lablgtk2/*.cmi
%{_libdir}/ocaml/lablgtk2/*.h

%changelog
* Mon Apr 21 2008 seife@suse.de
- update to version 2.10.1
  - fix wrong type in GContainer.mli (could not compile with 3.10.2)
  - revert to setting LC_NUMERIC to C (ocaml still uses strtod)
  - Fix Val_GType/GType_val (use Val_addr/Addr_val)
  - add ui_manager#as_ui_manager
  - Fix examples.
* Tue Jan 29 2008 seife@suse.de
- update to version 2.10.0
  - uses features of newer Gtk versions
  - some small bugfixes
* Wed Nov 07 2007 ro@suse.de
- added rpmlintrc
* Fri Jun 15 2007 ro@suse.de
- added rsvg bindings
- handle ppc64 like s390 (no ocamlopt)
* Wed Jun 06 2007 ro@suse.de
- added ocamlp4 to buildreq
- silence a compiler warning
* Fri May 25 2007 ro@suse.de
- branch off devel package
* Thu Sep 21 2006 seife@suse.de
- initial submission (cloned specfile from lablgtk)
openSUSE Build Service is sponsored by