# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir HTTP %define pnam Headers-Fast Summary: HTTP::Headers::Fast - faster implementation of HTTP::Headers Name: perl-HTTP-Headers-Fast Version: 0.22 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: a166a4d0ba47eca8ff9dffb760865f5f URL: http://search.cpan.org/dist/HTTP-Headers-Fast/ BuildRequires: perl-Module-Build BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-HTTP-Date BuildRequires: perl-Test-Requires %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description HTTP::Headers::Fast is a perl class for parsing/writing HTTP headers. The interface is same as HTTP::Headers. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Build.PL \ --destdir=$RPM_BUILD_ROOT \ --installdirs=vendor ./Build %{?with_tests:./Build test} %install rm -rf $RPM_BUILD_ROOT ./Build install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes %{perl_vendorlib}/HTTP/Headers/*.pm %{_mandir}/man3/*