3 %bcond_without tests # don't perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam SmbClientParser
8 Summary: Filesys::SmbClientParser - Perl client to reach Samba ressources with smbclient
9 Summary(pl.UTF-8): Filesys::SmbClientParser - klient perlowy zasobów Samby korzystający z smbclienta
10 Name: perl-Filesys-SmbClientParser
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 16f73fb28db6e2d7f97690f01f6c1bd0
17 Patch0: %{name}-notest.patch
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-devel >= 1:5.8.0
20 Requires: samba-client
22 BuildRequires: samba-client
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Filesys::SmbClientParser module is a Perl client to reach Samba
29 ressources. SmbClientParser works with output of bin smbclient, so
30 it doesn't work on Win* platforms (but query of Win* platform works
33 %description -l pl.UTF-8
34 Moduł Filesys::SmbClientParser jest perlowym klientem zasobów Samby.
35 SmbClientParser działa na wyjściu programu smbclient, więc nie będzie
36 działać na platformach Win* (jednakże łączenie sie z serwerem Win*
40 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/Filesys/*.pm