Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37325957
en ru br
ALT Linux repos
S:2.30.3-alt2
5.0: 2.26.0-alt1
4.1: 2.20.1.1-alt1.M41.1
4.0: 2.14.0-alt1
3.0: 2.10.2-alt1

Group :: System/Libraries
RPM: libgnomecanvas

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define ver_major 2.14
%def_disable static

Name: libgnomecanvas
Version: %ver_major.0
Release: alt1

Summary: GnomeCanvas widget
License: LGPL
Group: System/Libraries
Url: http://www.gnome.org/

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2

%define gtk_ver 2.6.4
%define glade_ver 2.5.1
%define pango_ver 1.8.1
%define libart_lgpl_ver 2.3.17

Requires: libgtk+2 >= %gtk_ver
Requires: libart_lgpl >= %libart_lgpl_ver
Requires: libpango >= %pango_ver
Requires: libglade2 >= %glade_ver

BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libart_lgpl-devel >= %libart_lgpl_ver
BuildPreReq: libpango-devel >= %pango_ver
BuildPreReq: libglade2-devel >= %glade_ver

BuildRequires: docbook-dtds docbook-style-xsl gtk-doc xsltproc

%description
The canvas widget allows you to create custom displays using stock items
such as circles, lines, text, and so on. It was originally a port of the
Tk canvas widget but has evolved quite a bit over time.

%package devel
Summary: Libraries and headers for libgnomecanvas
Group: Development/GNOME and GTK+
Requires: %name = %version-%release
Requires: libgtk+2-devel >= %gtk_ver
Requires: libart_lgpl-devel >= %libart_lgpl_ver
Requires: libglade2-devel >= %glade_ver
Requires: libpango-devel >= %pango_ver

%description devel
The canvas widget allows you to create custom displays using stock items
such as circles, lines, text, and so on. It was originally a port of the
Tk canvas widget but has evolved quite a bit over time.

This package contains development libraries and headers files for %name.

%package devel-doc
Summary: Development documentation for GNOME Canvas Widget
Group: Development/GNOME and GTK+
Conflicts: %name < %version-%release

%description devel-doc
The canvas widget allows you to create custom displays using stock items
such as circles, lines, text, and so on. It was originally a port of the
Tk canvas widget but has evolved quite a bit over time.

This package provides development documentation for %name.

%package devel-static
Summary: Static libraries for libgnomecanvas
Group: Development/GNOME and GTK+
Requires: %name-devel = %version-%release

%description devel-static
The canvas widget allows you to create custom displays using stock items
such as circles, lines, text, and so on. It was originally a port of the
Tk canvas widget but has evolved quite a bit over time.

%prep
%setup -q

%build
export gnomelocaledir="%_datadir/locale"
export ac_cv_prog_AWK=/bin/awk
%configure \
%{subst_enable static} \
--enable-gtk-doc

%make_build

%install
%makeinstall

%find_lang %name-2.0

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files -f %name-2.0.lang
%_libdir/*.so.*
%_libdir/libglade/2.0/*.so
%doc AUTHORS ChangeLog README NEWS

%files devel
%_includedir/*
%_libdir/*.so
%_libdir/libglade/2.0/*.la
%_libdir/pkgconfig/*

%files devel-doc
%_datadir/gtk-doc/html/*

%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/libglade/2.0/*.a
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin