File perl-Goo-Canvas.spec of Package perl-Goo-Canvas

# spec file for package perl-Goo-Canvas
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 open-slx GmbH <>
# 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

Name:           perl-Goo-Canvas
Version:        0.06
Release:        0
%define cpan_name Goo-Canvas
Summary:        Goo::Canvas Perl module
License:        GPL-2.0+ or Artistic-1.0+
Group:          Development/Libraries/Perl
Source:         %{cpan_name}-%{version}.tar.gz
Patch0:         Goo-Canvas-0.06-add_missing_prototype.patch
Patch1:         Goo-Canvas-0.06-fix_documentation.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cairo-devel
BuildRequires:  glib2-devel
BuildRequires:  gtk2-devel
BuildRequires:  perl
BuildRequires:  perl-Cairo
BuildRequires:  perl-Glib
BuildRequires:  perl-Gtk2
BuildRequires:  perl-macros
BuildRequires:  pkg-config

%if %suse_version <= 1140
BuildRequires:  goocanvas-devel
BuildRequires:  libgoocanvas3-devel


Goo::Canvas Perl module

%setup -q -n %{cpan_name}-%{version}

export CFLAGS="%{optflags}"
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} NOECHO=""

%{__make} test


%{__rm} -rf %{buildroot}

%files -f %{name}.files

openSUSE Build Service is sponsored by