2 # - make cgi scripts from doc as separate packages
5 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
10 Summary: Filesys::SmbClient - interface for access Samba filesystem
11 Summary(pl.UTF-8): Filesys::SmbClient - interfejs dostępu do systemu plików Samby
12 Name: perl-Filesys-SmbClient
15 License: GPL or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/Filesys/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 8a4205fe748aac7f43fb2a0e8ef502b2
19 URL: http://search.cpan.org/dist/Filesys-SmbClient/
20 Patch0: Makefile.patch
22 BuildRequires: autoconf
23 BuildRequires: libsmbclient-devel
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _noautocompressdoc *.cgi
31 Filesys::SmbClient Perl module provides interface to access routine
32 defined in libsmbclient.so and, using this routine, Samba filesystem.
34 %description -l pl.UTF-8
35 Moduł Perla Filesys::SmbClient stanowi interfejs dostępu do procedury
36 zdefiniowanej w libsmbclient.so i, za pośrednictwem tej procedury, do
40 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc Changes smb2www-2.cgi smb2www.css
68 %dir %{perl_vendorarch}/Filesys
69 %{perl_vendorarch}/Filesys/*.pm
70 %dir %{perl_vendorarch}/auto/Filesys
71 %dir %{perl_vendorarch}/auto/Filesys/SmbClient
73 #%%{perl_vendorarch}/auto/Filesys/SmbClient/autosplit.ix
74 %attr(755,root,root) %{perl_vendorarch}/auto/Filesys/SmbClient/SmbClient.so
75 # this is NOT duplicate:
76 #%dir %{perl_vendorarch}/auto/Filesys/Smbclient
77 #%dir %{perl_vendorarch}/auto/Filesys/Smbclient/libauthSamba
78 #%%{perl_vendorarch}/auto/Filesys/Smbclient/libauthSamba/libauthSamba.a