File rep-gtk.spec of Package rep-gtk

# spec file for package rep-gtk (version 0.18)
#
# Copyright (c) 2007 JP Rosevear <jpr@novell.com>
# Copyright (c) 2007 Jan Nieuwenhuizen <jnieuwenhuizen@novell.com>
# Copyright (c) 20000 John Harper <john@dcs.warwick.ac.uk>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# please send bugfixes or comments to gnome-maintainers@suse.de
#

# norootforbuild

%define nominalversion 0.18
%define datestamp 20060131

BuildRequires:  librep-devel libglade2-devel libgnome-devel libgnomeui-devel
Name:           rep-gtk
Version:        %{nominalversion}cvs%{datestamp}
Release:        1
Summary:        GTK+ binding for librep Lisp environment
Requires:       librep >= 0.16 gtk2
License:        GPL
Group:          Development/Languages
Source:         http://download.sourceforge.net/rep-gtk/rep-gtk-%{nominalversion}-%{datestamp}.tar.bz2
URL:            http://rep-gtk.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a binding of GTK+ for the librep Lisp interpreter. It is based
on Marius Vollmer's guile-gtk package (initially version 0.15, updated
to 0.17), with a new glue-code generator.

#'
%package libglade
Summary: librep binding for the libglade library for loading user interfaces.
Group:   Development/Languages
Requires: %{name} = %{version}, libglade2

%description libglade
This is a binding of libglade for the librep Lisp interpreter. libglade
allows applications to dynamically load XML descriptions of GTK+ widget
hierarchies. These hierarchies may be created by the GLADE GUI builder.

%package gnome
Summary: GNOME binding for librep
Group:   Development/Languages
Requires: %{name} = %{version}, libgnome, libglade2

%description gnome
This is a binding of the various GNOME libraries for the librep Lisp
interpreter. It include support for the basic GNOME functions, the
GNOME user interface widgets, the GNOME Canvas architecture, and the
GNOME version of libglade.

%prep
%setup -n %{name}-%{nominalversion}-%{datestamp} 

%build
LC_ALL=""
LINGUAS=""
LANG=""
export LC_ALL LINGUAS LANG
%configure --with-gnome
%__make host_type=%{_target_platform}

%install
%makeinstall \
    host_type=%{_target_platform} \
    installdir=%{_libexecdir}/rep/%{_target_platform}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README README.guile-gtk BUGS ChangeLog gtk.defs gdk.defs
%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/gtk.so*
%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/gtk.la
%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/types.so*
%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/types.la

%files libglade
%defattr(-,root,root)
%doc libglade.defs examples/test-libglade examples/simple.glade
%doc examples/rep-ui examples/rep-ui.glade
%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/libglade.so*
%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/libglade.la

%files gnome
%defattr(-,root,root)
%doc gnome*.defs gdk-pixbuf.defs libglade.defs
%doc examples/gnome-test examples/canvas-test
%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/gnome*.so*
%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/gnome*.la

%changelog
openSUSE Build Service is sponsored by