Группа :: Разработка/Haskell
Пакет: gtk2hs
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# RPM spec file for Gtk2HS -*-rpm-spec-*-
#
# Copyright [2001..2002] Manuel M T Chakravarty <chak at cse.unsw.edu.au>
# Copyright 2002, 2003, 2004 Jens-Ulrik Holger Petersen <petersen at haskell.org>
# Copytight 2004 Vitaly Lugovsky <vsl at altlinux.ru>
# Copyfight 2005 Alex Myltsev <avm at altlinux.ru>
Summary: Haskell binding for the GIMP Toolkit (GTK2), a GUI library
Name: gtk2hs
Version: 0.10.0
Release: alt1
License: LGPL
Group: Development/Haskell
Source: gtk2hs-%version.tar.gz
Url: http://gtk2hs.sourceforge.net/
Packager: Alex V. Myltsev <avm at altlinux.ru>
BuildRequires(pre): rpm-build-haskell
BuildPreReq: ghc >= 6.6.1 %hs_package_dependencies mtl
# Added by buildreq2 on п╖я┌п╡ п╓п╣п╡ 16 2006
BuildRequires: libGConf2-devel libglade2-devel libgtksourceview1-devel gnome-libs-devel librsvg-devel libgtkglext-devel
Requires: ghc = %ghc_version
Requires: libGConf2-devel libglade2-devel libcairo-devel libgtksourceview1-devel
Requires: libgtkglext-devel
%description
A Gtk+ binding for the functional language Haskell featuring
automatic memory management, unicode support, and wide
coverage of widgets up to Gtk+ 2.2 as well as some 2.4 widgets
such as the new file chooser dialog.
This package contains the libraries compiled for ghc-%ghc_version.
%package doc
Summary: Haskell binding for the GIMP Toolkit (GTK2), a GUI library
Group: Development/Haskell
%description doc
Gtk2Hs is a GUI library for Haskell based on Gtk+.
This package contains the gtk2hs documentation.
%prep
%setup -q
%build
autoreconf -fisv
%define docbookdir %_datadir/xml/docbook
./configure --with-hc=ghc-%ghc_version --with-hcflags="-O" --without-pkgreg \
--enable-packager-mode \
--enable-gtk \
--enable-libglade \
--enable-gconf \
--enable-sourceview \
--enable-cairo \
--enable-svg \
--enable-opengl
%make_build prefix=%prefix libdir=%_libdir/ghc-%ghc_version
%install
make DESTDIR=%buildroot prefix=%prefix libdir=%_libdir/ghc-%ghc_version install
%define libdir %_ghclibdir/%name
mkdir -p %buildroot%hs_pkgconfdir
for pkgconf in %buildroot%libdir/*.package.conf; do
%hs_package_register $pkgconf %buildroot%hs_pkgconfdir/%name.conf
done
%files
%libdir
%hs_pkgconfdir/%name.conf
%doc ChangeLog TODO AUTHORS
%files doc
%doc demo
%changelog
…
Полный changelog можно просмотреть здесь
#
# Copyright [2001..2002] Manuel M T Chakravarty <chak at cse.unsw.edu.au>
# Copyright 2002, 2003, 2004 Jens-Ulrik Holger Petersen <petersen at haskell.org>
# Copytight 2004 Vitaly Lugovsky <vsl at altlinux.ru>
# Copyfight 2005 Alex Myltsev <avm at altlinux.ru>
Summary: Haskell binding for the GIMP Toolkit (GTK2), a GUI library
Name: gtk2hs
Version: 0.10.0
Release: alt1
License: LGPL
Group: Development/Haskell
Source: gtk2hs-%version.tar.gz
Url: http://gtk2hs.sourceforge.net/
Packager: Alex V. Myltsev <avm at altlinux.ru>
BuildRequires(pre): rpm-build-haskell
BuildPreReq: ghc >= 6.6.1 %hs_package_dependencies mtl
# Added by buildreq2 on п╖я┌п╡ п╓п╣п╡ 16 2006
BuildRequires: libGConf2-devel libglade2-devel libgtksourceview1-devel gnome-libs-devel librsvg-devel libgtkglext-devel
Requires: ghc = %ghc_version
Requires: libGConf2-devel libglade2-devel libcairo-devel libgtksourceview1-devel
Requires: libgtkglext-devel
%description
A Gtk+ binding for the functional language Haskell featuring
automatic memory management, unicode support, and wide
coverage of widgets up to Gtk+ 2.2 as well as some 2.4 widgets
such as the new file chooser dialog.
This package contains the libraries compiled for ghc-%ghc_version.
%package doc
Summary: Haskell binding for the GIMP Toolkit (GTK2), a GUI library
Group: Development/Haskell
%description doc
Gtk2Hs is a GUI library for Haskell based on Gtk+.
This package contains the gtk2hs documentation.
%prep
%setup -q
%build
autoreconf -fisv
%define docbookdir %_datadir/xml/docbook
./configure --with-hc=ghc-%ghc_version --with-hcflags="-O" --without-pkgreg \
--enable-packager-mode \
--enable-gtk \
--enable-libglade \
--enable-gconf \
--enable-sourceview \
--enable-cairo \
--enable-svg \
--enable-opengl
%make_build prefix=%prefix libdir=%_libdir/ghc-%ghc_version
%install
make DESTDIR=%buildroot prefix=%prefix libdir=%_libdir/ghc-%ghc_version install
%define libdir %_ghclibdir/%name
mkdir -p %buildroot%hs_pkgconfdir
for pkgconf in %buildroot%libdir/*.package.conf; do
%hs_package_register $pkgconf %buildroot%hs_pkgconfdir/%name.conf
done
%files
%libdir
%hs_pkgconfdir/%name.conf
%doc ChangeLog TODO AUTHORS
%files doc
%doc demo
%changelog
…
Полный changelog можно просмотреть здесь