Группа :: Разработка/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.9.10
Release: alt2
License: LGPL
Group: Development/Haskell
Source: gtk2hs-%version.tar.gz
#Patch: gtk2hs-%version-ffifix.patch
Patch1: gtk2hs-0.9.5-docbookhack.patch
Patch2: gtk2hs-0.9.10-alt-configure.patch
Url: http://gtk2hs.sourceforge.net/
BuildPreReq: ghc >= 6.4.2
# Added by buildreq2 on п╖я┌п╡ п╓п╣п╡ 16 2006
BuildRequires: libGConf2-devel libglade2-devel libgtksourceview-devel gnome-libs-devel
Requires: ghc = %ghc_version
Requires: libGConf2-devel libglade2-devel libgtksourceview-devel libcairo-devel
%description
A Gtk2 binding for the functional language Haskell featuring
automatic memory management, unicode support, and quite wide
coverage of widget functions and their signals, including
the new text and list widgets. The convenience wrapper
MoGuL (Monad Gui Library) makes it possible to create and
lookup named widgets in a type safe way.
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
A Gtk2 binding for the functional language Haskell featuring
automatic memory management, unicode support, and quite wide
coverage of widget functions and their signals, including
the new text and list widgets. The convenience wrapper
MoGuL (Monad Gui Library) makes it possible to create and
lookup named widgets in a type safe way.
This package contains the gtk2hs documentation.
%prep
%setup -q
#%patch -p1
#%patch1 -p1
%patch2 -p1
%build
%define docbookdir %_datadir/xml/docbook
./configure --with-hc=ghc-%ghc_version --with-hcflags="-O" --without-pkgreg \
--enable-packager-mode --enable-libglade --enable-gconf \
--enable-sourceview --enable-cairo \
--with-catalog=%docbookdir/catalog \
--with-html=%docbookdir/xsl-stylesheets-1.64.0/xhtml/chunk.xsl \
--with-fo=%docbookdir/xsl-stylesheets-1.64.0/fo/docbook.xsl
make prefix=%prefix libdir=%_libdir/ghc-%ghc_version
%install
make DESTDIR=%buildroot prefix=%prefix libdir=%_libdir/ghc-%ghc_version install
# hack to avoid demo binaries in docs
make clean MAKE_GOALS="demo/concurrent demo/treeList demo/graphic demo/unicode demo/hello demo/sourceview"
%post
%define package_desc_dir %_ghclibdir/%name
%define install_package ghc-pkg-%ghc_version >/dev/null update -g
%install_package %package_desc_dir/glib.package.conf
%install_package %package_desc_dir/cairo.package.conf
%install_package %package_desc_dir/gtk.package.conf
%install_package %package_desc_dir/sourceview.package.conf
%install_package %package_desc_dir/mogul.package.conf
%install_package %package_desc_dir/glade.package.conf
%install_package %package_desc_dir/gconf.package.conf
%preun
%define uninstall_package ghc-pkg-%ghc_version -r
%define o_dir %_ghclibdir/%name
if [ "$1" = 0 ]; then
rm -f %o_dir/HS{cairo,glib,gtk,mogul,glade,gconf,sourceview}.o
ghc-pkg-%ghc_version -r gconf >/dev/null || :
ghc-pkg-%ghc_version -r glade >/dev/null || :
ghc-pkg-%ghc_version -r mogul >/dev/null || :
ghc-pkg-%ghc_version -r sourceview >/dev/null || :
ghc-pkg-%ghc_version -r gtk >/dev/null || :
ghc-pkg-%ghc_version -r cairo >/dev/null || :
ghc-pkg-%ghc_version -r glib >/dev/null || :
fi
%files
%_ghclibdir/*
%doc ChangeLog TODO AUTHORS COPYING.LIB
%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.9.10
Release: alt2
License: LGPL
Group: Development/Haskell
Source: gtk2hs-%version.tar.gz
#Patch: gtk2hs-%version-ffifix.patch
Patch1: gtk2hs-0.9.5-docbookhack.patch
Patch2: gtk2hs-0.9.10-alt-configure.patch
Url: http://gtk2hs.sourceforge.net/
BuildPreReq: ghc >= 6.4.2
# Added by buildreq2 on п╖я┌п╡ п╓п╣п╡ 16 2006
BuildRequires: libGConf2-devel libglade2-devel libgtksourceview-devel gnome-libs-devel
Requires: ghc = %ghc_version
Requires: libGConf2-devel libglade2-devel libgtksourceview-devel libcairo-devel
%description
A Gtk2 binding for the functional language Haskell featuring
automatic memory management, unicode support, and quite wide
coverage of widget functions and their signals, including
the new text and list widgets. The convenience wrapper
MoGuL (Monad Gui Library) makes it possible to create and
lookup named widgets in a type safe way.
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
A Gtk2 binding for the functional language Haskell featuring
automatic memory management, unicode support, and quite wide
coverage of widget functions and their signals, including
the new text and list widgets. The convenience wrapper
MoGuL (Monad Gui Library) makes it possible to create and
lookup named widgets in a type safe way.
This package contains the gtk2hs documentation.
%prep
%setup -q
#%patch -p1
#%patch1 -p1
%patch2 -p1
%build
%define docbookdir %_datadir/xml/docbook
./configure --with-hc=ghc-%ghc_version --with-hcflags="-O" --without-pkgreg \
--enable-packager-mode --enable-libglade --enable-gconf \
--enable-sourceview --enable-cairo \
--with-catalog=%docbookdir/catalog \
--with-html=%docbookdir/xsl-stylesheets-1.64.0/xhtml/chunk.xsl \
--with-fo=%docbookdir/xsl-stylesheets-1.64.0/fo/docbook.xsl
make prefix=%prefix libdir=%_libdir/ghc-%ghc_version
%install
make DESTDIR=%buildroot prefix=%prefix libdir=%_libdir/ghc-%ghc_version install
# hack to avoid demo binaries in docs
make clean MAKE_GOALS="demo/concurrent demo/treeList demo/graphic demo/unicode demo/hello demo/sourceview"
%post
%define package_desc_dir %_ghclibdir/%name
%define install_package ghc-pkg-%ghc_version >/dev/null update -g
%install_package %package_desc_dir/glib.package.conf
%install_package %package_desc_dir/cairo.package.conf
%install_package %package_desc_dir/gtk.package.conf
%install_package %package_desc_dir/sourceview.package.conf
%install_package %package_desc_dir/mogul.package.conf
%install_package %package_desc_dir/glade.package.conf
%install_package %package_desc_dir/gconf.package.conf
%preun
%define uninstall_package ghc-pkg-%ghc_version -r
%define o_dir %_ghclibdir/%name
if [ "$1" = 0 ]; then
rm -f %o_dir/HS{cairo,glib,gtk,mogul,glade,gconf,sourceview}.o
ghc-pkg-%ghc_version -r gconf >/dev/null || :
ghc-pkg-%ghc_version -r glade >/dev/null || :
ghc-pkg-%ghc_version -r mogul >/dev/null || :
ghc-pkg-%ghc_version -r sourceview >/dev/null || :
ghc-pkg-%ghc_version -r gtk >/dev/null || :
ghc-pkg-%ghc_version -r cairo >/dev/null || :
ghc-pkg-%ghc_version -r glib >/dev/null || :
fi
%files
%_ghclibdir/*
%doc ChangeLog TODO AUTHORS COPYING.LIB
%files doc
%doc demo
%changelog
…
Полный changelog можно просмотреть здесь