[perl-Twiggy] Initial import

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

 



commit c8ca8746a71a957dbaa368f4bc04614a884209c9
Author: Robin Lee <cheeselee@xxxxxxxxxxxxxxxxx>
Date:   Thu May 16 10:25:35 2013 +0800

    Initial import

 .gitignore       |    1 +
 perl-Twiggy.spec |  123 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 125 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0ea125f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Twiggy-0.1021.tar.gz
diff --git a/perl-Twiggy.spec b/perl-Twiggy.spec
new file mode 100644
index 0000000..3efce42
--- /dev/null
+++ b/perl-Twiggy.spec
@@ -0,0 +1,123 @@
+# Do not check any files in docdir for requires
+%global __requires_exclude_from ^%{_docdir}/.*$
+
+Name:           perl-Twiggy
+Version:        0.1021
+Release:        3%{?dist}
+Summary:        AnyEvent HTTP server for PSGI (like Thin)
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Twiggy/
+Source0:        http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Twiggy-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl >= 1:5.8.1
+BuildRequires:  /usr/bin/dos2unix
+# 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)
+# requires and recommends from Makefile.PL
+BuildRequires:  perl(AnyEvent)
+BuildRequires:  perl(EV)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(HTTP::Parser::XS)
+BuildRequires:  perl(HTTP::Status)
+BuildRequires:  perl(Plack) >= 0.99
+BuildRequires:  perl(Try::Tiny)
+# all runtime requires
+BuildRequires:  perl(AnyEvent::Handle)
+BuildRequires:  perl(AnyEvent::Socket)
+BuildRequires:  perl(AnyEvent::Util)
+BuildRequires:  perl(Errno)
+BuildRequires:  perl(IO::Handle)
+BuildRequires:  perl(Plack::HTTPParser)
+BuildRequires:  perl(Plack::Runner)
+BuildRequires:  perl(Plack::Util)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(Server::Starter)
+BuildRequires:  perl(Socket)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(parent)
+BuildRequires:  perl(warnings)
+# optinal runtime requires
+BuildRequires:  perl(AnyEvent::AIO)
+BuildRequires:  perl(IO::AIO)
+# other required for tests
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Requires)
+BuildRequires:  perl(Test::TCP)
+BuildRequires:  perl(HTTP::Request)
+BuildRequires:  perl(HTTP::Request::Common)
+BuildRequires:  perl(HTTP::Response)
+BuildRequires:  perl(IO::Socket::INET)
+BuildRequires:  perl(Server::Starter)
+BuildRequires:  perl(Plack::App::File)
+BuildRequires:  perl(Plack::Loader)
+BuildRequires:  perl(Plack::Request)
+BuildRequires:  perl(Plack::Test::Suite)
+BuildRequires:  perl(Plack::Middleware::Deflater)
+BuildRequires:  perl(IO::Uncompress::Gunzip)
+BuildRequires:  perl(LWP::UserAgent)
+
+# requires and recommends from Makefile.PL
+Requires:       perl(AnyEvent)
+Requires:       perl(EV)
+Requires:       perl(HTTP::Parser::XS)
+Requires:       perl(HTTP::Status)
+Requires:       perl(Plack) >= 0.99
+Requires:       perl(Try::Tiny)
+Requires:       perl(HTTP::Parser::XS)
+# optional runtime requires
+Requires:       perl(AnyEvent::AIO)
+Requires:       perl(IO::AIO)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Twiggy is a lightweight and fast HTTP server based on AnyEvent and can run any
+PSGI applications.
+
+%prep
+%setup -q -n Twiggy-%{version}
+chmod -x eg/chat-websocket/static/jquery.oembed.js
+dos2unix eg/chat-websocket/static/jquery.oembed.js
+
+%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
+TEST_SLOW=1 make test 
+
+%files
+%doc Changes README eg/
+%{perl_vendorlib}/*
+%{_bindir}/*
+%{_mandir}/man3/*
+%{_mandir}/man1/*
+
+%changelog
+* Fri May  3 2013 Robin Lee <cheeselee@xxxxxxxxxxxxxxxxx> - 0.1021-3
+- Remove duplicated BR
+
+* Fri May  3 2013 Robin Lee <cheeselee@xxxxxxxxxxxxxxxxx> - 0.1021-2
+- Revise BuildRequires and Requires
+- Include the eg directory to %%doc
+
+* Tue Apr 09 2013 Robin Lee <cheeselee@xxxxxxxxxxxxxxxxx> 0.1021-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..7d28a3e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+899fced7dfa2f0c7050fcd93cf90e8c4  Twiggy-0.1021.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