[perl-Plack-Middleware-Deflater] Initial import

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 1f8ca82924fbfd92594ff664dfefec6538aace61
Author: Robin Lee <cheeselee@xxxxxxxxxxxxxxxxx>
Date:   Thu May 16 10:26:54 2013 +0800

    Initial import

 .gitignore                          |    1 +
 perl-Plack-Middleware-Deflater.spec |   91 +++++++++++++++++++++++++++++++++++
 sources                             |    1 +
 3 files changed, 93 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2b5d016 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Plack-Middleware-Deflater-0.08.tar.gz
diff --git a/perl-Plack-Middleware-Deflater.spec b/perl-Plack-Middleware-Deflater.spec
new file mode 100644
index 0000000..8d85d01
--- /dev/null
+++ b/perl-Plack-Middleware-Deflater.spec
@@ -0,0 +1,91 @@
+Name:           perl-Plack-Middleware-Deflater
+Version:        0.08
+Release:        2%{?dist}
+Summary:        Compress response body with Gzip or Deflate
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Plack-Middleware-Deflater/
+Source0:        http://www.cpan.org/authors/id/K/KA/KAZEBURO/Plack-Middleware-Deflater-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl >= 1:5.8.1
+# inc::Module::Install requires
+BuildRequires:  perl(base)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Config)
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(ExtUtils::MM_Unix)
+BuildRequires:  perl(Fcntl)
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Path)
+BuildRequires:  perl(FindBin)
+BuildRequires:  perl(Pod::Text)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(Spiffy)
+BuildRequires:  perl(Test::Base::Filter)
+BuildRequires:  perl(Test::Builder)
+BuildRequires:  perl(Test::Builder::Module)
+# requires from Makefile.PL
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(IO::Compress::Deflate)
+BuildRequires:  perl(IO::Compress::Gzip)
+BuildRequires:  perl(Plack)
+# for tests
+BuildRequires:  perl(IO::Handle::Util)
+BuildRequires:  perl(Test::More) >= 0.96
+BuildRequires:  perl(Test::Requires)
+BuildRequires:  perl(Test::Base)
+BuildRequires:  perl(Filter::Util::Call)
+BuildRequires:  perl(HTTP::Request::Common)
+BuildRequires:  perl(Plack::Test)
+BuildRequires:  perl(Plack::Builder)
+BuildRequires:  perl(parent)
+BuildRequires:  perl(Plack::Middleware)
+BuildRequires:  perl(Plack::Util)
+BuildRequires:  perl(Plack::Util::Accessor)
+
+Requires:       perl(IO::Compress::Deflate)
+Requires:       perl(IO::Compress::Gzip)
+Requires:       perl(Plack)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Plack::Middleware::Deflater is a middleware to encode your response body in
+gzip or deflate, based on Accept-Encoding HTTP request header. It would
+save the bandwidth a little bit but should increase the Plack server load,
+so ideally you should handle this on the front end reverse proxy servers.
+
+%prep
+%setup -q -n Plack-Middleware-Deflater-%{version}
+# use our versions of Test::* modules
+rm -r inc/Spiffy.pm inc/Test
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Wed May 15 2013 Robin Lee <cheeselee@xxxxxxxxxxxxxxxxx> - 0.08-2
+- BuildRequires more Perl modules: parent, Plack::Middleware, Plack::Util,
+  Plack::Util::Accessor, File::Spec, Spiffy, Test::Base::Filter,
+  Test::Builder, Test::Builder::Module
+- 'frontend' changed to 'front end'
+
+* Fri May 03 2013 Robin Lee <cheeselee@xxxxxxxxxxxxxxxxx> 0.08-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..e60b6a6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+44855c8ea51fcc8bd776b2352765d4c2  Plack-Middleware-Deflater-0.08.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux