Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37434105
en ru br
Репозитории ALT
5.1: 2.10.1-alt4
4.1: 2.10.1-alt3
4.0: 2.6.0-alt3.1
www.altlinux.org/Changes

Группа :: Разработка/ML
Пакет: lablgtk2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_with gl
%def_with glade
%def_with rsvg
%def_with gtkspell
%def_with gtksourceview
%def_without gnomecanvas
%def_without gnomeui
%def_without panel

Name: lablgtk2
Version: 2.10.1
Release: alt3
Epoch: 1
Packager: Grigory Batalov <bga at altlinux.ru>

Summary: GTK+2 bindings for OCaml
License: LGPL
Group: Development/ML
Url: http://wwwfun.kurims.kyoto-u.ac.jp/soft/

Source: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-%version.tar.gz
Patch: lablgtk-2.6.0-alt-native.patch

Requires: %name-runtime = %epoch:%version-%release

# Automatically added by buildreq on Tue Apr 08 2008

BuildRequires: camlp4 gtkglarea2-devel lablGL libglade-devel libgtksourceview1-devel libgtkspell-devel librsvg-devel ocamldoc

%if_with gnomecanvas
BuildRequires: libgnomecanvas-devel
%endif

%if_with gnomeui
BuildRequires: libgnomeui-devel
%endif

%if_with panel
BuildRequires: libgnome-panel-devel
%endif

%package runtime
Summary: GTK+2 bindings for OCaml
Group: Development/ML

%package doc
Summary: GTK+2 bindings for OCaml
Group: Development/ML
Conflicts: %name < %epoch:%version, %name > %epoch:%version

%description
LablGTK is is an OCaml interface to GTK+2.  It uses the rich type
system of Objective Caml 3 to provide a strongly typed, yet very
comfortable, object-oriented interface to GTK+.

%description runtime
LablGTK is is an OCaml interface to GTK+2.  It uses the rich type
system of Objective Caml 3 to provide a strongly typed, yet very
comfortable, object-oriented interface to GTK+.

%description doc
LablGTK is is an OCaml interface to GTK+2.  It uses the rich type
system of Objective Caml 3 to provide a strongly typed, yet very
comfortable, object-oriented interface to GTK+.

%prep
%setup -q -n lablgtk-%version
%patch -p0
# version information in META file is wrong
sed -i -e 's,version="[^"]*",version="%version",' \
      -e 's,directory="+lablgtk2",directory="+site-lib/lablgtk2",' META

%build
export LABLGLDIR=%_libdir/ocaml/site-lib/lablGL
%configure \
%{subst_with gl} \
%{subst_with glade} \
%{subst_with rsvg} \
%{subst_with gtkspell} \
%{subst_with gtksourceview} \
%{subst_with gnomecanvas} \
%{subst_with gnomeui} \
%{subst_with panel} \
#
sed -i -e 's,-O,%optflags,' src/Makefile
make all opt doc INSTALLDIR=%_libdir/ocaml/site-lib/lablgtk2

%install
mkdir -p %buildroot%_libdir/ocaml/stublibs
mkdir -p %buildroot%_bindir
%makeinstall \
BINDIR=%buildroot%_bindir \
LIBDIR=%buildroot%_libdir \
INSTALLDIR=%buildroot%_libdir/ocaml/site-lib/lablgtk2 \
DLLDIR=%buildroot%_libdir/ocaml/stublibs
install -p -m644 META %buildroot%_libdir/ocaml/site-lib/lablgtk2/
install -p -m755 src/lablgtktop %buildroot%_bindir/lablgtktop

%if_with gtksourceview
install -p -m644 src/gtkSourceView_types.{mli,cmi} %buildroot%_libdir/ocaml/site-lib/lablgtk2/
%endif

# remove byte-coded binaries and install native

rm %buildroot%_libdir/ocaml/site-lib/lablgtk2/{propcc,varcc}
rm %buildroot%_bindir/{lablgladecc2,gdk-pixbuf-mlsource}
install -p -m755 src/propcc.opt %buildroot%_bindir/propcc
install -p -m755 src/varcc.opt %buildroot%_bindir/varcc
install -p -m755 src/lablgladecc.opt %buildroot%_bindir/lablgladecc2
install -p -m755 src/gdk-pixbuf-mlsource.opt %buildroot%_bindir/gdk-pixbuf-mlsource

%files
%doc CHANGES COPYING README examples/
%exclude %_bindir/lablgtktop
%_bindir/*
%dir %_libdir/ocaml/site-lib/lablgtk2
%_libdir/ocaml/site-lib/lablgtk2/META
%_libdir/ocaml/site-lib/lablgtk2/*.ml*
%_libdir/ocaml/site-lib/lablgtk2/*.cm?*
%_libdir/ocaml/site-lib/lablgtk2/*.h
%_libdir/ocaml/site-lib/lablgtk2/*.o
%_libdir/ocaml/site-lib/lablgtk2/*.a

%files runtime
%_bindir/lablgtktop
%_libdir/ocaml/stublibs/dll*.so

%files doc
%doc doc/html

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin