]>
Commit | Line | Data |
---|---|---|
cc34a7f0 PG |
1 | # TODO: |
2 | # - make cgi scripts from doc as separate packages | |
bdf65db4 | 3 | # |
4 | # Conditional build: | |
a16ad902 | 5 | %bcond_without tests # do not perform "make test" |
792b48ed | 6 | # |
cc34a7f0 | 7 | %include /usr/lib/rpm/macros.perl |
372c8952 | 8 | %define pdir Filesys |
9 | %define pnam SmbClient | |
b21f5a65 | 10 | Summary: Filesys::SmbClient - interface for access Samba filesystem |
6dac4295 | 11 | Summary(pl.UTF-8): Filesys::SmbClient - interfejs dostępu do systemu plików Samby |
cc34a7f0 | 12 | Name: perl-Filesys-SmbClient |
a16ad902 | 13 | Version: 1.5 |
191f587f | 14 | Release: 9 |
a16ad902 | 15 | License: GPL or Artistic |
cc34a7f0 | 16 | Group: Development/Languages/Perl |
9a82ecfb | 17 | Source0: http://www.cpan.org/modules/by-module/Filesys/%{pdir}-%{pnam}-%{version}.tar.gz |
a16ad902 | 18 | # Source0-md5: d5fdb54c7a36053bbf0e4f77c17fc885 |
9a82ecfb | 19 | URL: http://search.cpan.org/dist/Filesys-SmbClient/ |
39029bba | 20 | BuildRequires: autoconf |
cc34a7f0 | 21 | BuildRequires: libsmbclient-devel |
b71a1391 | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
a55363ca | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
cc34a7f0 PG |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
a7eaa69f | 26 | %define _noautocompressdoc *.cgi |
27 | ||
cc34a7f0 | 28 | %description |
b21f5a65 | 29 | Filesys::SmbClient Perl module provides interface to access routine |
30 | defined in libsmbclient.so and, using this routine, Samba filesystem. | |
cc34a7f0 | 31 | |
41a3b9f6 JR |
32 | %description -l pl.UTF-8 |
33 | Moduł Perla Filesys::SmbClient stanowi interfejs dostępu do procedury | |
34 | zdefiniowanej w libsmbclient.so i, za pośrednictwem tej procedury, do | |
35 | systemu plików Samby. | |
cc34a7f0 PG |
36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
cc34a7f0 PG |
39 | |
40 | %build | |
39029bba | 41 | %{__autoconf} |
cc34a7f0 | 42 | %configure |
c0fae207 | 43 | %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"Filesys::SmbClient", |
44 | OBJECT=>"libauthSamba.o SmbClient.o", LIBS=>["-lsmbclient"], | |
45 | VERSION_FROM=>"SmbClient.pm")' \ | |
fb637294 | 46 | INSTALLDIRS=vendor |
7802cd29 | 47 | %{__make} \ |
74c80683 | 48 | CC="%{__cc}" \ |
7802cd29 | 49 | OPTIMIZE="%{rpmcflags}" |
cc34a7f0 | 50 | |
a16ad902 | 51 | %{?with_tests:%{__make} test} |
bdf65db4 | 52 | |
cc34a7f0 PG |
53 | %install |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
7802cd29 | 56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
cc34a7f0 PG |
58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes smb2www-2.cgi smb2www.css | |
a55363ca | 65 | %dir %{perl_vendorarch}/Filesys |
66 | %{perl_vendorarch}/Filesys/*.pm | |
67 | %dir %{perl_vendorarch}/auto/Filesys | |
68 | %dir %{perl_vendorarch}/auto/Filesys/SmbClient | |
792b48ed | 69 | # empty autosplit.ix |
a55363ca | 70 | #%%{perl_vendorarch}/auto/Filesys/SmbClient/autosplit.ix |
a55363ca | 71 | %attr(755,root,root) %{perl_vendorarch}/auto/Filesys/SmbClient/SmbClient.so |
cc34a7f0 | 72 | # this is NOT duplicate: |
a55363ca | 73 | #%dir %{perl_vendorarch}/auto/Filesys/Smbclient |
74 | #%dir %{perl_vendorarch}/auto/Filesys/Smbclient/libauthSamba | |
75 | #%%{perl_vendorarch}/auto/Filesys/Smbclient/libauthSamba/libauthSamba.a | |
cc34a7f0 | 76 | %{_mandir}/man3/* |