]> git.pld-linux.org Git - SPECS.git/blob - perl-Kismet-Client.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / perl-Kismet-Client.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Kismet
6 %define pnam    Client
7 Summary:        Kismet::Client - Object-oriented module to connect to a Kismet server
8 #Summary(pl.UTF-8):     
9 Name:           perl-Kismet-Client
10 Version:        0.03
11 Release:        1
12 License:        GPL v2+
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-authors/id/K/KA/KAYSB/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  a81f66327936122df9d518c9deef0bb0
16 # generic URL, check or change before uncommenting
17 URL:            http://search.cpan.org/dist/Kismet-Client/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This is an object-oriented module to connect to a Kismet server created
27 by Mike Kershaw <dragorn@kismetwireless.net>
28
29
30
31 # %description -l pl.UTF-8
32 # TODO
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36
37 %build
38 %{__perl} Makefile.PL \
39         INSTALLDIRS=vendor
40 %{__make}
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} pure_install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 mv $RPM_BUILD_ROOT{%{perl_vendorlib}/%{pdir}/demo.pl,%{_examplesdir}/%{name}-%{version}/}
52
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %dir %{perl_vendorlib}/Kismet
61 %{perl_vendorlib}/Kismet/*.pm
62 %dir %{_examplesdir}/%{name}-%{version}
63 %{_examplesdir}/%{name}-%{version}/demo.pl
64 %{_mandir}/man3/*
This page took 0.404248 seconds and 3 git commands to generate.