]>
Commit | Line | Data |
---|---|---|
a177f510 CM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Net | |
7 | %define pnam Rendezvous-Publish | |
8 | Summary: Net::Rendezvous::Publish - publish Rendezvous services | |
9 | Name: perl-Net-Rendezvous-Publish | |
10 | Version: 0.04 | |
6219dbf0 | 11 | Release: 1 |
a177f510 CM |
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: abd07bd91853f5536d6e3434c67918c3 | |
16 | URL: http://search.cpan.org/dist/Net-Bonjour/ | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | %if %{with tests} | |
6219dbf0 | 20 | BuildRequires: perl-Class-Accessor-Lvalue |
a177f510 CM |
21 | %endif |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Net::Rendezvous::Publish - publish Rendezvous services | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
30 | ||
31 | %build | |
32 | %{__perl} Makefile.PL \ | |
33 | INSTALLDIRS=vendor | |
34 | %{__make} | |
35 | ||
36 | %{?with_tests:%{__make} test} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %dir %{perl_vendorlib}/Net/Rendezvous/Publish | |
50 | %dir %{perl_vendorlib}/Net/Rendezvous/Publish/Backend | |
51 | %{perl_vendorlib}/Net/Rendezvous/Publish.pm | |
52 | %{perl_vendorlib}/Net/Rendezvous/Publish/Service.pm | |
53 | %{perl_vendorlib}/Net/Rendezvous/Publish/Backend/Null.pm | |
54 | %{_mandir}/man3/* |