File perl-Gnome2-VFS.spec of Package perl-Gnome2-VFS

#
# spec file for package perl-Gnome2-VFS
#
# 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-VFS
Version:        1.081
Release:        0
Summary:        Gnome2-VFS Perl module
License:        LGPL-2.1+
Group:          Development/Languages/Perl
Url:            http://search.cpan.org/dist/Gnome2-VFS/
Source0:        Gnome2-VFS-%{version}.tar.gz
BuildRequires:  gnome-vfs2-devel
BuildRequires:  perl
BuildRequires:  perl-ExtUtils-Depends
BuildRequires:  perl-ExtUtils-PkgConfig
BuildRequires:  perl-Glib
%if 0%{?suse_version} && 0%{?suse_version} < 1140
BuildRequires:  perl-macros
%endif
Requires:       gnome-vfs2 >= %(pkg-config --modversion gnome-vfs-2.0)
Requires:       perl-Glib
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} < 1140
Requires:       perl = %{perl_version}
%else
%{perl_requires}
%endif

%description
This module allows you to use the GNOME Virtual File System library
(libgnomevfs for short) from Perl.

The canonical API documentation can be found at

  http://developer.gnome.org/doc/API/2.0/gnome-vfs-2.0/index.html

Gnome2::VFS also comes with automatically generated API documentation.  To
access its index, use:

  perldoc Gnome2::VFS::index

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

%build
perl Makefile.PL
make

%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
%dir %{perl_vendorarch}/Gnome2/VFS
%dir %{perl_vendorarch}/Gnome2/VFS/Async
%dir %{perl_vendorarch}/Gnome2/VFS/DNSSD
%dir %{perl_vendorarch}/Gnome2/VFS/DNSSD/Browse
%dir %{perl_vendorarch}/Gnome2/VFS/DNSSD/Resolve
%dir %{perl_vendorarch}/Gnome2/VFS/Directory
%dir %{perl_vendorarch}/Gnome2/VFS/Install
%dir %{perl_vendorarch}/Gnome2/VFS/Mime
%dir %{perl_vendorarch}/Gnome2/VFS/Monitor
%dir %{perl_vendorarch}/Gnome2/VFS/Resolve
%dir %{perl_vendorarch}/auto/Gnome2
%dir %{perl_vendorarch}/auto/Gnome2/VFS

%changelog