ALT Linux repos

Group :: System/Libraries
RPM: libgnomecanvas
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# This spec is backported to ALTLinux 4.1 automatically by rpmbh script. Do not edit it.
%define ver_major 2.20
%def_disable static
Name: libgnomecanvas
Version: %ver_major.1.1
Release: alt1.M41.1
Summary: GnomeCanvas widget
License: %lgpl2plus
Group: System/Libraries
Url: http://www.gnome.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
# The patch fixes tearing while repainting a canvas. Thanks to Federico
# Mena Quintero (federico at ximian.com).
Patch: %name-2.20-fix-tearing.patch
BuildPreReq: rpm-build-gnome rpm-build-licenses
# From configure.in
BuildPreReq: libgtk+2-devel >= 2.6.4
BuildPreReq: libart_lgpl-devel >= 2.3.17
BuildPreReq: libpango-devel >= 1.8.1
BuildPreReq: libglade-devel >= 2.5.1
BuildRequires: gtk-doc libgail-devel perl-XML-Parser
BuildRequires: docbook-dtds docbook-style-xsl gtk-doc xsltproc
BuildRequires: rpm-build-compat >= 0.95
%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
%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
%patch -p1 -b .fix-tearing
%build
export gnomelocaledir="%_datadir/locale"
%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
%_pkgconfigdir/*.pc
%files devel-doc
%_datadir/gtk-doc/html/*
%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/libglade/2.0/*.a
%endif
%exclude %_libdir/libglade/2.0/*.la
%changelog
…
Full changelog you can see here
%define ver_major 2.20
%def_disable static
Name: libgnomecanvas
Version: %ver_major.1.1
Release: alt1.M41.1
Summary: GnomeCanvas widget
License: %lgpl2plus
Group: System/Libraries
Url: http://www.gnome.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
# The patch fixes tearing while repainting a canvas. Thanks to Federico
# Mena Quintero (federico at ximian.com).
Patch: %name-2.20-fix-tearing.patch
BuildPreReq: rpm-build-gnome rpm-build-licenses
# From configure.in
BuildPreReq: libgtk+2-devel >= 2.6.4
BuildPreReq: libart_lgpl-devel >= 2.3.17
BuildPreReq: libpango-devel >= 1.8.1
BuildPreReq: libglade-devel >= 2.5.1
BuildRequires: gtk-doc libgail-devel perl-XML-Parser
BuildRequires: docbook-dtds docbook-style-xsl gtk-doc xsltproc
BuildRequires: rpm-build-compat >= 0.95
%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
%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
%patch -p1 -b .fix-tearing
%build
export gnomelocaledir="%_datadir/locale"
%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
%_pkgconfigdir/*.pc
%files devel-doc
%_datadir/gtk-doc/html/*
%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/libglade/2.0/*.a
%endif
%exclude %_libdir/libglade/2.0/*.la
%changelog
…
Full changelog you can see here