]> git.pld-linux.org Git - packages/perl-Sys-Hostname-Long.git/blob - perl-Sys-Hostname-Long.spec
- disable debug packages
[packages/perl-Sys-Hostname-Long.git] / perl-Sys-Hostname-Long.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Sys
6 %define         pnam    Hostname-Long
7 Summary:        Sys::Hostname::Long - try every conceivable way to get full hostname
8 Summary(pl.UTF-8):      Sys::Hostname::Long - uzyskiwanie pełnej nazwy hosta
9 Name:           perl-Sys-Hostname-Long
10 Version:        1.5
11 Release:        1
12 License:        GPL v2+
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  a7d7a36fa6905bded4f6b7da94e37532
16 URL:            http://search.cpan.org/dist/Sys-Hostname-Long/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _debugsource_packages   0
22
23 %description
24 Sys::Hostname::Long - Try every conceivable way to get full hostname.
25
26 %description -l pl.UTF-8
27 Sys::Hostname::Long próbuje wszelkich możliwych sposobów żeby uzyskać
28 pełną nazwę hosta.
29
30 %prep
31 %setup -q -n %{pdir}-%{pnam}-%{version}
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36
37 %{__make} \
38         CC="%{__cc}" \
39         OPTIMIZE="%{rpmcflags}"
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} pure_install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes README
55 %dir %{perl_vendorlib}/Sys/Hostname
56 %{perl_vendorlib}/Sys/Hostname/Long.pm
57 %{_mandir}/man3/*
This page took 0.088528 seconds and 4 git commands to generate.