3 %bcond_with tests # perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 %define pnam Gnome2-VFS
7 Summary: Perl bindings for the GNOME Virtual File System
8 Summary(pl): Dowi±zania Perla dla biblioteki GNOME Virtual File System
13 Group: Development/Languages/Perl
14 Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
15 # Source0-md5: 85db48b6ce0f1531ff5f2a91a05766f8
16 URL: http://gtk2-perl.sf.net/
17 BuildRequires: gnome-vfs2-devel >= 2.0.0
18 BuildRequires: perl-ExtUtils-Depends >= 0.201
19 BuildRequires: perl-ExtUtils-PkgConfig >= 1.03
20 BuildRequires: perl-Glib >= 1.040
21 BuildRequires: perl-Gtk2 >= 1.040
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 Requires: perl-Glib >= 1.040
25 Requires: perl-Gtk2 >= 1.040
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 The VFS module allows a perl developer to use the GNOME Virtual File
33 Modu³ VFS pozwala programistom perlowym na u¿ywanie biblioteki GNOME
37 %setup -q -n %{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 OPTIMIZE="%{rpmcflags}"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
54 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/VFS/{*,*/*}.pod
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %dir %{perl_vendorarch}/auto/Gnome2/VFS
63 %dir %{perl_vendorarch}/Gnome2/VFS
64 %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/VFS/*.so
65 %{perl_vendorarch}/auto/Gnome2/VFS/*.bs
66 %{perl_vendorarch}/Gnome2/VFS/Install
67 %{perl_vendorarch}/Gnome2/*.pm