# $Id: perl-Sys-Hostname-Long.spec 4129 2006-03-03 22:02:07Z dries $ # Authority: dries # Upstream: Scott Penrose %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) %define real_name Sys-Hostname-Long Summary: Get the full hostname Name: perl-Sys-Hostname-Long Version: 1.4 Release: 1 License: Artistic/GPL Group: Applications/CPAN URL: http://search.cpan.org/dist/Sys-Hostname-Long/ #Packager: Dries Verachtert #Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Source: http://search.cpan.org/CPAN/authors/id/S/SC/SCOTT/Sys-Hostname-Long-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: perl %description This module uses different ways to get the full hostname. %prep %setup -n %{real_name}-%{version} # Remove the usage of windows only modules. %{__perl} -pi -e "s|use Win32::TieRegistry.*||g;" lib/Sys/Hostname/Long.pm %build %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %makeinstall %{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod %{buildroot}%{perl_vendorarch}/auto/*/*/*/.packlist %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc Changes README %doc %{_mandir}/man3/* %{perl_vendorlib}/Sys/Hostname/Long.pm %{perl_vendorlib}/Sys/Hostname/testall.pl %changelog * Fri Mar 3 2006 Dries Verachtert - 1.4-1 - 4129/dries - Initial package.