# TODO: # - make cgi scripts from doc as separate packages # # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Filesys %define pnam SmbClient Summary: Filesys::SmbClient - interface for access Samba filesystem Summary(pl.UTF-8): Filesys::SmbClient - interfejs dostępu do systemu plików Samby Name: perl-Filesys-SmbClient Version: 3.2 Release: 12 License: GPL or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Filesys/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 8a4205fe748aac7f43fb2a0e8ef502b2 URL: http://search.cpan.org/dist/Filesys-SmbClient/ Patch0: Makefile.patch Patch1: samba4.patch BuildRequires: autoconf BuildRequires: libsmbclient-devel BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautocompressdoc *.cgi %description Filesys::SmbClient Perl module provides interface to access routine defined in libsmbclient.so and, using this routine, Samba filesystem. %description -l pl.UTF-8 Moduł Perla Filesys::SmbClient stanowi interfejs dostępu do procedury zdefiniowanej w libsmbclient.so i, za pośrednictwem tej procedury, do systemu plików Samby. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch0 -p1 %patch1 -p1 %build %{__autoconf} %configure %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ CC="%{__cc}" \ CFLAGS="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes smb2www-2.cgi smb2www.css %dir %{perl_vendorarch}/Filesys %{perl_vendorarch}/Filesys/*.pm %dir %{perl_vendorarch}/auto/Filesys %dir %{perl_vendorarch}/auto/Filesys/SmbClient # empty autosplit.ix #%%{perl_vendorarch}/auto/Filesys/SmbClient/autosplit.ix %attr(755,root,root) %{perl_vendorarch}/auto/Filesys/SmbClient/SmbClient.so # this is NOT duplicate: #%dir %{perl_vendorarch}/auto/Filesys/Smbclient #%dir %{perl_vendorarch}/auto/Filesys/Smbclient/libauthSamba #%%{perl_vendorarch}/auto/Filesys/Smbclient/libauthSamba/libauthSamba.a %{_mandir}/man3/*