File lablgtk2.spec of Package lablgtk2

#
# spec file for package lablgtk2 (Version 2.14.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           lablgtk2
BuildRequires:  camlp4 gtk2-devel gtksourceview18-devel gtkspell-devel libglade2-devel libgnomecanvas-devel libgnomeui-devel libgtksourceviewmm-2_0-devel librsvg-devel ocaml xorg-x11
License:        LGPLv2.1+
Group:          Development/Libraries/Other
Requires:       ocaml
AutoReqProv:    on
Version:        2.14.2
Release:        2
Source0:        lablgtk-%{version}.tar.bz2
Source1:        lablgtk2.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:        LGPLv2.1+
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 -q -n lablgtk-%{version}
find -name ".cvsignore" | xargs rm -v

%build
export CFLAGS="$RPM_OPT_FLAGS"
make configure 
%configure --with-gnomecanvas
make world opt
%ifnarch ppc64 s390 s390x
cd src
make lablgtk.cmxa
make lablrsvg.cmxa
make gtkInit.cmx
cd ..
%endif

%install
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
openSUSE Build Service is sponsored by