Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
perl
>
perl-Net-IDN-Nameprep
> perl-Net-IDN-Nameprep.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File perl-Net-IDN-Nameprep.spec of Package perl-Net-IDN-Nameprep
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`" ; echo $installvendorlib)} %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)} %{!?perl_version: %define perl_version %(eval "`%{__perl} -V:version`" ; echo $version)} %define modn Net-IDN-Nameprep %define modv 0.02 Summary: IDN nameprep tools for Perl Name: perl-%{modn} Version: %{modv} Release: 2%{?dist}%{?pext} License: GPL+ or Artistic Group: Development/Libraries Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{modn}-%{modv}.tar.gz URL: http://search.cpan.org/dist/%{modn}/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Vendor: Tatsuhiko Miyagawa <miyagawa@bulknews.net> Provides: perl(Net::IDN::Nameprep) = %{modv} Provides: perl(Net::IDN::Nameprep::Mapping) = 0.01 Provides: perl(Net::IDN::Nameprep::Prohibited) = 0.01 Requires: perl(:MODULE_COMPAT_%{perl_version}) BuildRequires: perl >= 5.6.0 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) >= 0.18 BuildRequires: perl(Unicode::Normalize) BuildRequires: perl(Unicode::String) BuildArch: noarch %description Net::IDN::Nameprep implements the IDN nameprep specification. %prep %setup -q -n %{modn}-%{modv} # Filter requires %{__cat} << \_EOF_ >%{name}-req #!/bin/sh %{__perl_requires} $* | \ %{__sed} -e '/perl(v5.6.0)/d' _EOF_ %define __perl_requires %{_builddir}/%{modn}-%{modv}/%{name}-req %{__chmod} +x %{name}-req %build %{__perl} \ Makefile.PL \ INSTALLDIRS="vendor" %{__make} %{?_smp_mflags} %check %{__make} test %install [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT} %{__mkdir_p} ${RPM_BUILD_ROOT}%{_prefix} %{__make} \ PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} \ pure_install find ${RPM_BUILD_ROOT} -type f -name ".packlist" -exec %{__rm} -f {} \; find ${RPM_BUILD_ROOT} -depth -empty -type d -exec rmdir {} \; %{__chmod} -R u+w ${RPM_BUILD_ROOT}/* %clean [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc Changes %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog