]> git.pld-linux.org Git - packages/perl-Filesys-SmbClientParser.git/blob - perl-Filesys-SmbClientParser.spec
d8ff8e41c473d62e597b618f43a2f627d9338b3f
[packages/perl-Filesys-SmbClientParser.git] / perl-Filesys-SmbClientParser.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Filesys
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
11 Version:        2.7
12 Release:        3
13 License:        unknown
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
21 %if %{with tests}
22 BuildRequires:  samba-client
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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
31 of course).
32
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*
37 oczywiście działa).
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %patch0 -p1
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc README Changes
61 %{perl_vendorlib}/Filesys/*.pm
62 %{_mandir}/man3/*
This page took 0.040205 seconds and 2 git commands to generate.