[packages/perl-Plack-Middleware-RemoveRedundantBody] New package

arekm arekm at pld-linux.org
Thu Nov 19 15:23:43 CET 2026


commit 32568dc1233635739038d75a8152d6543439ce0a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 14:50:48 2026 +0100

    New package

 perl-Plack-Middleware-RemoveRedundantBody.spec | 54 ++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
---
diff --git a/perl-Plack-Middleware-RemoveRedundantBody.spec b/perl-Plack-Middleware-RemoveRedundantBody.spec
new file mode 100644
index 0000000..6d1c805
--- /dev/null
+++ b/perl-Plack-Middleware-RemoveRedundantBody.spec
@@ -0,0 +1,54 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+
+%define		pdir	Plack
+%define		pnam	Middleware-RemoveRedundantBody
+Summary:	Plack::Middleware-RemoveRedundantBody - remove body for HTTP response if it's not required
+Name:		perl-Plack-Middleware-RemoveRedundantBody
+Version:	0.09
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	https://www.cpan.org/authors/id/S/SW/SWEETKID/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	75ba53485a1934c30028ca66db1f5e15
+URL:		https://metacpan.org/dist/Plack-Middleware-RemoveRedundantBody
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-HTTP-Message
+BuildRequires:	perl-Plack
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Plack::Middleware::RemoveRedundantBody removes the body of an HTTP
+response, if it is not required by its status code (for example 204 or
+304).
+
+%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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Plack/Middleware/RemoveRedundantBody.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Plack-Middleware-RemoveRedundantBody.git/commitdiff/32568dc1233635739038d75a8152d6543439ce0a



More information about the pld-cvs-commit mailing list