File goocanvas.spec of Package goocanvas
#
# spec file for package goocanvas
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: goocanvas
Version: 2.0.1
Release: 1
License: LGPLv2.0
Summary: A cairo-based canvas widget for GTK+
Url: http://sourceforge.net/projects/goocanvas
Group: Development/Libraries/GNOME
Source0: http://download.gnome.org/sources/goocanvas/2.0/%{name}-%{version}.tar.bz2
BuildRequires: gobject-introspection-devel
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GooCanvas is similar in many ways to GnomeCanvas and FooCanvas. But it
uses cairo for rendering, has an optional model/view split, and uses
interfaces for items & models (so you can easily turn any application
object into a canvas item or model).
%package devel
License: LGPLv2.0
Summary: A cairo-based canvas widget for GTK+
Group: Development/Libraries/GNOME
Requires: libgoocanvas-2_0-9 = %{version}
%description devel
GooCanvas is similar in many ways to GnomeCanvas and FooCanvas. But it
uses cairo for rendering, has an optional model/view split, and uses
interfaces for items & models (so you can easily turn any application
object into a canvas item or model).
%package -n libgoocanvas-2_0-9
License: LGPLv2.0
Summary: A cairo-based canvas widget for GTK+
Group: Development/Libraries/GNOME
# Needed to make lang package installable
Provides: %{name} = %{version}
Recommends: %{name}-lang
%description -n libgoocanvas-2_0-9
GooCanvas is similar in many ways to GnomeCanvas and FooCanvas. But it
uses cairo for rendering, has an optional model/view split, and uses
interfaces for items & models (so you can easily turn any application
object into a canvas item or model).
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%makeinstall
rm %{buildroot}%{_libdir}/*.*a
%find_lang goocanvas2
%post -n libgoocanvas-2_0-9 -p /sbin/ldconfig
%postun -n libgoocanvas-2_0-9 -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -n libgoocanvas-2_0-9
%defattr(-, root, root)
%doc AUTHORS NEWS README TODO
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/GooCanvas-2.0.typelib
%files devel
%defattr(-, root, root)
%{_includedir}/%{name}-2.0/
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_datadir}/gir-1.0/GooCanvas-2.0.gir
%doc %{_datadir}/gtk-doc/html/goocanvas2/
%files lang -f goocanvas2.lang
%changelog