8
0
Files
perl-Router-Simple/perl-Router-Simple.spec

80 lines
2.4 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Router-Simple
#
# Copyright (c) 2013 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-Router-Simple
Version: 0.09
Release: 0
Summary: Simple HTTP router
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Router-Simple-%{version}.tar.gz
Url: http://search.cpan.org/dist/Router-Simple
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl-macros
BuildRequires: perl(Class::Accessor::Fast)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(parent)
Requires: perl(Class::Accessor::Fast)
Requires: perl(List::Util)
Requires: perl(parent)
%description
Router::Simple is a simple router class.
Its main purpose is to serve as a dispatcher for web applications.
Router::Simple can match against PSGI $env directly, which means it's easy
to use with PSGI supporting web frameworks.
%prep
%setup -q -n "Router-Simple-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%if 0%{?suse_version} >= 1120
%check
%__make test
%endif
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README.mkdn
%dir %{perl_vendorlib}/Router
%{perl_vendorlib}/Router/Simple
%{perl_vendorlib}/Router/Simple.pm
%dir %{perl_vendorarch}/auto/Router
%{perl_vendorarch}/auto/Router/Simple
%doc %{perl_man3dir}/Router::Simple.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Router::Simple::*.%{perl_man3ext}%{ext_man}
%changelog