forked from pool/perl-Web-Machine
Accepting request 235345 from home:smithfarm:branches:devel:languages:perl:CPAN-W
this will be nice to have in d:l:p OBS-URL: https://build.opensuse.org/request/show/235345 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Web-Machine?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
Web-Machine-0.14.tar.gz
Normal file
3
Web-Machine-0.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:86819fe642393951b4116f3a019332b5a08912686e206944be05d25fd8311907
|
||||||
|
size 54904
|
10
perl-Web-Machine.changes
Normal file
10
perl-Web-Machine.changes
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 25 17:19:57 UTC 2014 - ncutler@suse.com
|
||||||
|
|
||||||
|
- took over
|
||||||
|
- checked license
|
||||||
|
- package now building after getting perl-HTTP-Headers-ActionPack
|
||||||
|
into devel:languages:perl
|
||||||
|
- initial package 0.14
|
||||||
|
* created by cpanspec 1.78.07
|
||||||
|
|
127
perl-Web-Machine.spec
Normal file
127
perl-Web-Machine.spec
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
#
|
||||||
|
# spec file for package perl-Web-Machine
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: perl-Web-Machine
|
||||||
|
Version: 0.14
|
||||||
|
Release: 0
|
||||||
|
%define cpan_name Web-Machine
|
||||||
|
Summary: A Perl port of Webmachine
|
||||||
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
Url: http://search.cpan.org/dist/Web-Machine/
|
||||||
|
Source: Web-Machine-0.14.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(HTTP::Headers::ActionPack) >= 0.07
|
||||||
|
BuildRequires: perl(HTTP::Message::PSGI)
|
||||||
|
BuildRequires: perl(HTTP::Request)
|
||||||
|
BuildRequires: perl(HTTP::Request::Common)
|
||||||
|
BuildRequires: perl(HTTP::Response)
|
||||||
|
BuildRequires: perl(HTTP::Status)
|
||||||
|
BuildRequires: perl(Hash::MultiValue)
|
||||||
|
BuildRequires: perl(IO::Handle::Util)
|
||||||
|
BuildRequires: perl(Module::Runtime)
|
||||||
|
BuildRequires: perl(Net::HTTP)
|
||||||
|
BuildRequires: perl(Plack::Component)
|
||||||
|
BuildRequires: perl(Plack::Request)
|
||||||
|
BuildRequires: perl(Plack::Response)
|
||||||
|
BuildRequires: perl(Plack::Runner)
|
||||||
|
BuildRequires: perl(Plack::Test)
|
||||||
|
BuildRequires: perl(Plack::Util)
|
||||||
|
BuildRequires: perl(Sub::Exporter)
|
||||||
|
BuildRequires: perl(Test::FailWarnings)
|
||||||
|
BuildRequires: perl(Test::Fatal) >= 0.003
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
|
BuildRequires: perl(Try::Tiny)
|
||||||
|
BuildRequires: perl(parent)
|
||||||
|
#BuildRequires: perl(GD::Simple)
|
||||||
|
#BuildRequires: perl(JSON::XS)
|
||||||
|
#BuildRequires: perl(My::Resource::Test022::Base)
|
||||||
|
#BuildRequires: perl(Path::Class)
|
||||||
|
#BuildRequires: perl(Test::TCP)
|
||||||
|
#BuildRequires: perl(Web::Machine)
|
||||||
|
#BuildRequires: perl(Web::Machine::FSM)
|
||||||
|
#BuildRequires: perl(Web::Machine::FSM::States)
|
||||||
|
#BuildRequires: perl(Web::Machine::I18N)
|
||||||
|
#BuildRequires: perl(Web::Machine::Resource)
|
||||||
|
#BuildRequires: perl(Web::Machine::Util)
|
||||||
|
#BuildRequires: perl(Web::Machine::Util::BodyEncoding)
|
||||||
|
#BuildRequires: perl(Web::Machine::Util::ContentNegotiation)
|
||||||
|
Requires: perl(HTTP::Headers::ActionPack) >= 0.07
|
||||||
|
Requires: perl(HTTP::Status)
|
||||||
|
Requires: perl(Hash::MultiValue)
|
||||||
|
Requires: perl(IO::Handle::Util)
|
||||||
|
Requires: perl(Module::Runtime)
|
||||||
|
Requires: perl(Plack::Component)
|
||||||
|
Requires: perl(Plack::Request)
|
||||||
|
Requires: perl(Plack::Response)
|
||||||
|
Requires: perl(Plack::Util)
|
||||||
|
Requires: perl(Sub::Exporter)
|
||||||
|
Requires: perl(Try::Tiny)
|
||||||
|
Requires: perl(parent)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
|
%description
|
||||||
|
'Web::Machine' provides a RESTful web framework modeled as a state machine.
|
||||||
|
You define one or more resource classes. Each resource represents a single
|
||||||
|
RESTful URI end point, such as a user, an email, etc. The resource class
|
||||||
|
can also be the target for 'POST' requests to create a new user, email,
|
||||||
|
etc.
|
||||||
|
|
||||||
|
Each resource is a state machine, and each request for a resource is
|
||||||
|
handled by running the request through that state machine.
|
||||||
|
|
||||||
|
'Web::Machine' is built on top of the Plack manpage, but it handles the
|
||||||
|
full request and response cycle.
|
||||||
|
|
||||||
|
See the Web::Machine::Manual manpage for more details on using
|
||||||
|
'Web::Machine' in general, and how 'Web::Machine' and the Plack manpage
|
||||||
|
interact.
|
||||||
|
|
||||||
|
This is a port of https://github.com/basho/webmachine, actually it is much
|
||||||
|
closer to the the Ruby
|
||||||
|
version|https://github.com/seancribbs/webmachine-ruby manpage, with a
|
||||||
|
little bit of https://github.com/tautologistics/nodemachine and even some
|
||||||
|
of https://github.com/benoitc/pywebmachine thrown in for good measure.
|
||||||
|
|
||||||
|
You can learn a bit about Web::Machine's history from the slides for my the
|
||||||
|
2012 YAPC::NA
|
||||||
|
talk|https://speakerdeck.com/stevan_little/rest-from-the-trenches manpage.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
|
%install
|
||||||
|
%perl_make_install
|
||||||
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root,755)
|
||||||
|
%doc Changes examples LICENSE README README.md weaver.ini
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user