]> git.pld-linux.org Git - packages/perl-Sys-Hostname-FQDN.git/blame - perl-Sys-Hostname-FQDN.spec
- x32 rebuild
[packages/perl-Sys-Hostname-FQDN.git] / perl-Sys-Hostname-FQDN.spec
CommitLineData
cf2b3b35
JB
1#
2# Conditional build:
7444c20d 3%bcond_without tests # do not perform "make test"
cf2b3b35
JB
4#
5%include /usr/lib/rpm/macros.perl
5a72e022 6%define pdir Sys
7%define pnam Hostname-FQDN
cf2b3b35 8Summary: Sys::Hostname::FQDN - extract full host name
72624df5 9Summary(pl.UTF-8): Sys::Hostname::FQDN - uzyskiwanie pełnej nazwy hosta
cf2b3b35 10Name: perl-Sys-Hostname-FQDN
600ffefa 11Version: 0.11
50a84d5c 12Release: 5
064a096c 13License: GPL v2+
cf2b3b35 14Group: Development/Languages/Perl
2604fc44 15Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
600ffefa 16# Source0-md5: a2a25b4ab650ec522f0e8c0527fdf8e5
2604fc44 17URL: http://search.cpan.org/dist/Sys-Hostname-FQDN/
15a27f17 18BuildRequires: perl-devel >= 1:5.8.0
cf2b3b35
JB
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Sys::Hostname::FQDN uses the host C library to discover the (usually)
24short host name, then uses (perl) gethostbyname to extract the real
25hostname.
26
27The results from gethostbyname are exported as gethostinfo and
28asciihostinfo as a convenience since they are available. Similarly,
29the C library functions inet_ntoa and inet_aton are exported.
30
a075ea6e
JR
31%description -l pl.UTF-8
32Sys::Hostname::FQDN używa biblioteki C do uzyskania (zwykle) krótkiej
33nazwy hosta, a następnie używa (perlowej) funkcji gethostbyname aby
34uzyskać prawdziwą nazwę hosta.
cf2b3b35 35
a075ea6e
JR
36Wyniki z gethostbyname są dla wygody eksportowane jako gethostinfo i
37asciihostinfo, ponieważ są dostępne. Podobnie są wyeksportowane
cf2b3b35
JB
38funkcje biblioteki C inet_ntoa i inet_aton.
39
40%prep
41%setup -q -n %{pdir}-%{pnam}-%{version}
cf2b3b35
JB
42
43%build
44%{__perl} Makefile.PL \
45 INSTALLDIRS=vendor
7444c20d 46%{__make} \
1118d352 47 CC="%{__cc}" \
7444c20d 48 OPTIMIZE="%{rpmcflags}"
cf2b3b35 49
7444c20d 50%{?with_tests:%{__make} test}
cf2b3b35
JB
51
52%install
53rm -rf $RPM_BUILD_ROOT
54
7248b399 55%{__make} pure_install \
cf2b3b35
JB
56 DESTDIR=$RPM_BUILD_ROOT
57
7248b399
ER
58rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Sys/Hostname/FQDN/.packlist
59
cf2b3b35
JB
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes README
66%dir %{perl_vendorarch}/Sys/Hostname
67%{perl_vendorarch}/Sys/Hostname/FQDN.pm
7248b399
ER
68%dir %{perl_vendorarch}/auto/Sys/Hostname
69%dir %{perl_vendorarch}/auto/Sys/Hostname/FQDN
cf2b3b35
JB
70%attr(755,root,root) %{perl_vendorarch}/auto/Sys/Hostname/FQDN/FQDN.so
71%{_mandir}/man3/*
This page took 0.10897 seconds and 4 git commands to generate.