File goocanvas.spec of Package goocanvas
#
# spec file for package goocanvas (Version 0.15)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: goocanvas
BuildRequires: cairo-devel
BuildRequires: gtk2-devel
BuildRequires: translation-update-upstream
Summary: A cairo-based canvas widget for GTK+
Version: 0.15
Release: 1
License: LGPL v2.1 or later
Group: Development/Libraries/GNOME
Source0: %{name}-%{version}.tar.bz2
Url: http://sourceforge.net/projects/goocanvas
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).
Authors:
--------
Damon Chaplin <damon@gnome.org>
%package devel
License: LGPL v2.0 only
Requires: libgoocanvas3 = %{version}
Requires: cairo-devel gtk2-devel pkg-config
Summary: A cairo-based canvas widget for GTK+
Group: Development/Libraries/GNOME
Provides: goocanvas-doc = %{version}
Obsoletes: goocanvas-doc < %{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).
Authors:
--------
Damon Chaplin <damon@gnome.org>
%package -n libgoocanvas3
License: LGPL v2.0 only
Summary: A cairo-based canvas widget for GTK+
Group: Development/Libraries/GNOME
Provides: goocanvas = %{version}
Obsoletes: goocanvas < %{version}
Requires: %{name}-lang = %{version}
%description -n libgoocanvas3
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).
Authors:
--------
Damon Chaplin <damon@gnome.org>
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a
%find_lang %{name}
%post -n libgoocanvas3 -p /sbin/ldconfig
%postun -n libgoocanvas3 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libgoocanvas3
%defattr(-, root, root)
%doc AUTHORS NEWS README TODO
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%dir %{_includedir}/%{name}-1.0
%{_includedir}/%{name}-1.0/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/goocanvas
%files lang -f %{name}.lang
%changelog