commit d799fad34459b51d7ff9bd60fa0f66805537fd5b Author: Arkadiusz MiĆkiewicz <ar...@maven.pl> Date: Thu Mar 15 19:21:28 2018 +0100
- initial perl-HTTP-MultiPartParser.spec | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) --- diff --git a/perl-HTTP-MultiPartParser.spec b/perl-HTTP-MultiPartParser.spec new file mode 100644 index 0000000..22aaa59 --- /dev/null +++ b/perl-HTTP-MultiPartParser.spec @@ -0,0 +1,59 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir HTTP +%define pnam MultiPartParser +%include /usr/lib/rpm/macros.perl +Summary: HTTP::MultiPartParser - HTTP MultiPart Parser +#Summary(pl.UTF-8): +Name: perl-HTTP-MultiPartParser +Version: 0.02 +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: 1b07ebac54ce3288c044a23ba60196d2 +URL: http://search.cpan.org/dist/HTTP-MultiPartParser/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-Test-Deep +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This class provides a low-level API for processing MultiPart MIME data streams +conforming to MultiPart types as defined in RFC 2616. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/HTTP/*.pm +%{perl_vendorlib}/HTTP/MultiPartParser.pod +%{_mandir}/man3/HTTP::MultiPartParser.3* +%{_examplesdir}/%{name}-%{version} ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/perl-HTTP-MultiPartParser.git/commitdiff/d799fad34459b51d7ff9bd60fa0f66805537fd5b _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit