Репозитории ALT
Последнее обновление в Пт, 16 апр. 2021, 07:38:48 +0000 | Пакетов: 9785
en ru
Исходные пакеты в ветвях
свернуть окно
Группа :: Разработка/Haskell
Исходный пакет: gtk2hs
Необработанный spec-файл

# RPM spec file for Gtk2HS -*-rpm-spec-*-
#

# Copyright [2001..2002] Manuel M T Chakravarty <chak@cse.unsw.edu.au>

# Copyright 2002, 2003, 2004 Jens-Ulrik Holger Petersen <petersen@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
* Sun Feb 08 2009 Alexander Myltsev <avm at altlinux.ru> 0.10.0-alt1
- new version.

* Wed Aug 06 2008 Alex V. Myltsev <avm at altlinux.ru> 0.9.13-alt1
- New version: many new demos, lots of bug fixes, builds with GHC 6.8.3

* Fri Jan 18 2008 Alex V. Myltsev <avm at altlinux.ru> 0.9.12.1-alt1
- New version, fix build with GHC 6.8.2.

* Mon Jun 05 2006 Alex V. Myltsev <avm at altlinux.ru> 0.9.10-alt2
- Fixed installation scripts.

* Wed Feb 15 2006 Alex V. Myltsev <avm at altlinux.ru> 0.9.10-alt1
- Fixed dependency issues.

* Mon Jan 02 2006 Alex V. Myltsev <avm at altlinux.ru> 0.9.10-alt0
- New version.

* Thu May 13 2004 Vitaly Lugovsky <vsl at altlinux.ru> 0.9.5-alt2
- rebuild

* Thu Apr 29 2004 Vitaly Lugovsky <vsl at altlinux.ru> 0.9.5-alt1
- a new version

* Fri Apr 02 2004 Vitaly Lugovsky <vsl at altlinux.ru> 0.9.4-alt1
- ported to the ALTLinux environment
- ported to the GHC 6.2 (some FFI changes)

* Tue Nov 11 2003 Jens Petersen <petersen@haskell.org>
- use %%c2hs instead of "--with c2hs" to configure c2hs program
- clean demo to avoid binary files in docs dir

* Mon Nov 3 2003 Jens Petersen <petersen@haskell.org>
- add sourceview package to %%post and %%preun
- install gtksourceview haskell.lang language-spec

* Thu Jul 31 2003 Jens Petersen <petersen@haskell.org>
- build with ghc-6.0.1
- put demo dir in docs dir rather than individual source files

* Thu Jul 10 2003 Jens Petersen <petersen@haskell.org>
- build with ghc-6.0
- name ghc subpackage "ghc%%{ghc_version}"

* Wed Jun 18 2003 Jens Petersen <petersen@haskell.org>
- require and buildrequire %_bindir/ghc-%%{ghc_version}

* Wed May 21 2003 Jens Petersen <petersen@haskell.org>
- add -g option to ghc-pkg -u so that ghci object gets generated
- delete them when uninstalling
- build and include mogul documentation

* Thu May 15 2003 Jens Petersen <petersen@haskell.org>
- use new DESTDIR make variable, so no longer need to fix config files in post
- remove buildroot before install
- build and include gtk docs

* Fri Jan 10 2003 Jens Petersen <petersen@haskell.org>
- made into .spec.in file
- let configure set the version
- update description
- introduce --with-c2hs rpmbuild option
- use perl to remove buildroot traces from package conf files
- simplify ghc-pkg update commands

* Tue Dec 17 2002 Jens Petersen <petersen@haskell.org>
- latest cvs with ghc 5.04.2

* Thu Sep 26 2002 Jens Petersen
- build with ghc-5.04.1

* Fri Aug 2 2002 Jens Petersen
- only include demo source in doc dir

* Fri Jul 26 2002 Jens Petersen
- build with ghc-5.04
- cvs update

* Wed Jul 10 2002 Jens Petersen
- my current branch

* Wed May 1 2002 Jens Petersen
- patch TreeViewColumn.chs to make it usable

* Tue Apr 23 2002 Jens Petersen
- 0.9.0
- update gtk2 and mogul ghc-pkg entries on upgrade

* Fri Apr 12 2002 Jens Petersen
- adapt for gtk2hs
- fix mk files for buildroot install
- post and postun scriptlets for pkg config

* Tue Mar 12 2002 Manuel Chakravarty
- require a specific Haskell compiler (namely, the one for which the packages
was compiled)

* Sat Feb 17 2001 Manuel Chakravarty
- derived from C->Haskell's .spec file
 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT