]> git.pld-linux.org Git - SPECS.git/blob - perl-Net-Bonjour.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / perl-Net-Bonjour.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Net
6 %define pnam    Bonjour
7 Summary:        Net::Bonjour - Module for DNS service discovery (Apple's Bonjour)
8 Summary(pl.UTF-8):      Net::Bonjour - moduł dla wykrywania usług za pomocą DNS (Apple Bonjour)
9 Name:           perl-Net-Bonjour
10 Version:        0.96
11 Release:        3
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  619e15831c8db014ceff422191fe6538
16 URL:            http://search.cpan.org/dist/Net-Bonjour/
17 Patch0:         %{name}-prompt.patch
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Net-DNS >= 0.5
22 %endif
23 Provides:       perl-Net-Rendezvous
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Net::Bonjour is a set of modules that allow one to discover local
29 services via multicast DNS (mDNS) or enterprise services via
30 traditional DNS. This method of service discovery has been branded as
31 Bonjour by Apple Computer.
32
33 The base object would be of the Net::Bonjour class. This object
34 contains the resolver for DNS service discovery.
35
36 The base object (Net::Bonjour) will return entry objects of the class
37 Net::Bonjour::Entry.
38
39 %description -l pl.UTF-8
40 Net::Bonjour - moduł dla wykrywania usług za pomocą DNS (Apple
41 Bonjour)
42
43 %prep
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %patch0
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc ChangeLog README
66 %{perl_vendorlib}/Net/*.pm
67 %dir %{perl_vendorlib}/Net/Bonjour
68 %dir %{perl_vendorlib}/Net/Rendezvous
69 %{perl_vendorlib}/Net/Bonjour/*.pm
70 %{perl_vendorlib}/Net/Rendezvous/Entry.pm
71 %{_mandir}/man3/*
This page took 0.089615 seconds and 3 git commands to generate.