- initial package 0.29
* created by cpanspec 1.78.03 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Catalyst-Plugin-Static-Simple?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
Catalyst-Plugin-Static-Simple-0.29.tar.bz2
Normal file
3
Catalyst-Plugin-Static-Simple-0.29.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a90e1cb5624bf2c4054e1ab884e0353a0fd9b08554b87f630df2f695cbed08a3
|
||||||
|
size 33528
|
6
perl-Catalyst-Plugin-Static-Simple.changes
Normal file
6
perl-Catalyst-Plugin-Static-Simple.changes
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 19 10:31:47 UTC 2011 - coolo@novell.com
|
||||||
|
|
||||||
|
- initial package 0.29
|
||||||
|
* created by cpanspec 1.78.03
|
||||||
|
|
97
perl-Catalyst-Plugin-Static-Simple.spec
Normal file
97
perl-Catalyst-Plugin-Static-Simple.spec
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
#
|
||||||
|
# spec file for package perl-Catalyst-Plugin-Static-Simple (Version 0.29)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 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-Catalyst-Plugin-Static-Simple
|
||||||
|
Version: 0.29
|
||||||
|
Release: 1
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
%define cpan_name Catalyst-Plugin-Static-Simple
|
||||||
|
Summary: Make serving static pages painless.
|
||||||
|
Url: http://search.cpan.org/dist/Catalyst-Plugin-Static-Simple/
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
#Source: http://www.cpan.org/authors/id/M/MS/MSTROUT/Catalyst-Plugin-Static-Simple-%{version}.tar.gz
|
||||||
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
|
BuildRequires: perl(Catalyst::Runtime) >= 5.80008
|
||||||
|
BuildRequires: perl(MIME::Types) >= 1.25
|
||||||
|
BuildRequires: perl(Moose)
|
||||||
|
BuildRequires: perl(MooseX::Types)
|
||||||
|
BuildRequires: perl(namespace::autoclean)
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
Requires: perl(Catalyst::Runtime) >= 5.80008
|
||||||
|
Requires: perl(MIME::Types) >= 1.25
|
||||||
|
Requires: perl(Moose)
|
||||||
|
Requires: perl(MooseX::Types)
|
||||||
|
Requires: perl(namespace::autoclean)
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
|
%description
|
||||||
|
The Static::Simple plugin is designed to make serving static content in
|
||||||
|
your application during development quick and easy, without requiring a
|
||||||
|
single line of code from you.
|
||||||
|
|
||||||
|
This plugin detects static files by looking at the file extension in the
|
||||||
|
URL (such as *.css* or *.png* or *.js*). The plugin uses the lightweight
|
||||||
|
the MIME::Types manpage module to map file extensions to IANA-registered
|
||||||
|
MIME types, and will serve your static files with the correct MIME type
|
||||||
|
directly to the browser, without being processed through Catalyst.
|
||||||
|
|
||||||
|
Note that actions mapped to paths using periods (.) will still operate
|
||||||
|
properly.
|
||||||
|
|
||||||
|
If the plugin can not find the file, the request is dispatched to your
|
||||||
|
application instead. This means you are responsible for generating a '404'
|
||||||
|
error if your applicaton can not process the request:
|
||||||
|
|
||||||
|
# handled by static::simple, not dispatched to your application
|
||||||
|
/images/exists.png
|
||||||
|
|
||||||
|
# static::simple will not find the file and let your application
|
||||||
|
# handle the request. You are responsible for generating a file
|
||||||
|
# or returning a 404 error
|
||||||
|
/images/does_not_exist.png
|
||||||
|
|
||||||
|
Though Static::Simple is designed to work out-of-the-box, you can tweak the
|
||||||
|
operation by adding various configuration options. In a production
|
||||||
|
environment, you will probably want to use your webserver to deliver static
|
||||||
|
content; for an example see the USING WITH APACHE manpage, below.
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%defattr(644,root,root,755)
|
||||||
|
%doc Changes
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user