]> git.pld-linux.org Git - packages/perl-Net-DNS.git/commitdiff
- up to 0.38
authormigo <migo@pld-linux.org>
Tue, 1 Jul 2003 11:42:59 +0000 (11:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- conditionally link to the libresolv library

Changed files:
    perl-Net-DNS.spec -> 1.41

perl-Net-DNS.spec

index ccfed8a6299442b483c08eb32c90205bd441d21d..6b25a5150ac26c9817717b29d5585d2f600ccd7f 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
+# _without_tests       - do not perform "make test"
+# _with_libresolv      - link against libresolv
 #
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    Net
@@ -8,12 +9,12 @@
 Summary:       Net::DNS - Perl interface to the DNS resolver
 Summary(pl):   Net::DNS - interfejs do resolvera DNS
 Name:          perl-Net-DNS
-Version:       0.34
+Version:       0.38
 Release:       1
 License:       GPL/Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: ef979460d952665f67d2c8474763156e
+# Source0-md5: b33ebbd53029264816ca9fa894b59419
 BuildRequires: perl-devel >= 5.6
 %if %{?_without_tests:0}%{!?_without_tests:1}
 BuildRequires: perl-Digest-MD5 >= 2.12
@@ -22,7 +23,9 @@ BuildRequires:        perl-MIME-Base64 >= 2.11
 BuildRequires: perl-Test-Simple >= 0.18
 %endif
 BuildRequires: rpm-perlprov >= 4.1-13
+%if %{?_with_libresolv:0}%{!?_with_libresolv:1}
 BuildArch:     noarch
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,8 +41,11 @@ Perla.
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-%{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"Net::DNS")' \
-       INSTALLDIRS=vendor 
+%{__perl} Makefile.PL </dev/null \
+       %{?_with_libresolv:     --xs} \
+       %{?!_with_libresolv:    --pm} \
+       INSTALLDIRS=vendor
+
 %{__make}
 
 %{!?_without_tests:%{__make} test}
@@ -59,7 +65,16 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes README TODO
+%if 0%{?_with_libresolv:1}
+%{perl_vendorarch}/Net/DNS.pm
+%{perl_vendorarch}/Net/DNS
+%{perl_vendorarch}/auto/Net/DNS/DNS.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Net/DNS/DNS.so
+%else
 %{perl_vendorlib}/Net/DNS.pm
 %{perl_vendorlib}/Net/DNS
+%endif
+
+
 %{_mandir}/man3/*
 %{_examplesdir}/%{name}-%{version}
This page took 0.093996 seconds and 4 git commands to generate.