Группа :: Разработка/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.12.1
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
Requires: ghc = %ghc_version
Requires: libGConf2-devel libglade2-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
%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_build 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"
mkdir -p %buildroot%hs_pkgconfdir
for n in cairo gconf glade glib gtk soegtk sourceview; do
%hs_package_register $n/$n.package.conf %buildroot%hs_pkgconfdir/$n.conf
done
%files
%_ghclibdir/%name
%hs_pkgconfdir/*.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.9.12.1
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
Requires: ghc = %ghc_version
Requires: libGConf2-devel libglade2-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
%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_build 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"
mkdir -p %buildroot%hs_pkgconfdir
for n in cairo gconf glade glib gtk soegtk sourceview; do
%hs_package_register $n/$n.package.conf %buildroot%hs_pkgconfdir/$n.conf
done
%files
%_ghclibdir/%name
%hs_pkgconfdir/*.conf
%doc ChangeLog TODO AUTHORS
%files doc
%doc demo
%changelog
…
Полный changelog можно просмотреть здесь