File perl-Gnome2.spec of Package perl-Gnome2

#
# spec file for package perl-Gnome2
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Sascha Manns <saigkill@opensuse.org>
#
# 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:           perl-Gnome2
Version:        1.042
Release:        1
License:        LGPL
Summary:        Gnome2 Perl module
Url:            http://search.cpan.org/dist/Gnome2/
Group:          Development/Libraries/Perl
Source0:        Gnome2-%{version}.tar.gz
BuildRequires:  libgnomeui-devel
BuildRequires:  perl
BuildRequires:  perl(ExtUtils::Depends)
BuildRequires:  perl(ExtUtils::PkgConfig)
BuildRequires:  perl(Glib)
BuildRequires:  perl(Gnome2::Canvas)
BuildRequires:  perl(Gnome2::VFS)
BuildRequires:  perl(Gtk2)
%if 0%{?suse_version} && 0%{?suse_version} < 1140
BuildRequires:  perl-macros
%endif
Requires:       libgnomeui >= %(pkg-config --modversion libgnomeui-2.0)
Requires:       perl(Glib)
Requires:       perl(Gnome2::VFS)
Requires:       perl(Gtk2)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} < 1140
Requires:       perl = %{perl_version}
%else
%{perl_requires}
%endif

%description
Perl bindings to the 2.x series of the Gnome widget set.  This module allows
you to write graphical user interfaces in a perlish and object-oriented way,
freeing you from the casting and memory management in C, yet remaining very
close in spirit to original API.

%prep
%setup -q -n Gnome2-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
rm -rf %{buildroot}

%files -f %{name}.files
%defattr(-,root,root)
%dir %{perl_vendorarch}/Gnome2/Bonobo
%dir %{perl_vendorarch}/Gnome2/Config
%dir %{perl_vendorarch}/Gnome2/Install
%doc AUTHORS ChangeLog LICENSE MANIFEST MANIFEST.SKIP NEWS README TODO

%changelog
openSUSE Build Service is sponsored by