8
0
Files
perl-HTTP-Body/perl-HTTP-Body.spec

59 lines
1.5 KiB
RPMSpec
Raw Normal View History

Name: perl-HTTP-Body
Version: 1.06
Release: 1%{?dist}
Summary: HTTP Body Parser
License: GPL+ or Artistic
Group: Development/Libraries/Perl
URL: http://search.cpan.org/dist/HTTP-Body/
Source0: http://www.cpan.org/modules/by-module/HTTP/HTTP-Body-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(Carp)
BuildRequires: perl(File::Temp) >= 0.14
BuildRequires: perl(HTTP::Headers)
BuildRequires: perl(IO::File)
BuildRequires: perl(Test::Deep)
Requires: perl = %{perl_version}
Requires: perl(Carp)
Requires: perl(File::Temp) >= 0.14
Requires: perl(HTTP::Headers)
Requires: perl(IO::File)
%description
HTTP::Body parses chunks of HTTP POST data and supports application/octet-
stream, application/x-www-form-urlencoded, and multipart/form-data.
%prep
%setup -q -n HTTP-Body-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Tue Jan 12 2010 Stefan Seifert <nine@detonation.org> 1.06-1
- Specfile autogenerated by cpanspec 1.78.