]> git.pld-linux.org Git - SPECS.git/blob - perl-Router-Simple.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Router-Simple.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Router
6 %define         pnam    Simple
7 Summary:        Router::Simple - simple HTTP router
8 #Summary(pl.UTF-8):     
9 Name:           perl-Router-Simple
10 Version:        0.09
11 Release:        2
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Router/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  f6be0b32e536c9dab654a7cf4defe633
17 URL:            http://search.cpan.org/dist/Router-Simple/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Class-Accessor
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Router::Simple is a simple router class.
28
29 Its main purpose is to serve as a dispatcher for web applications.
30
31 Router::Simple can match against PSGI $env directly, which means
32 it's easy to use with PSGI supporting web frameworks.
33
34
35
36 # %description -l pl.UTF-8
37 # TODO
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} pure_install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Changes
61 %dir %{perl_vendorlib}/Router
62 %{perl_vendorlib}/Router/*.pm
63 %{perl_vendorlib}/Router/Simple
64 %{_mandir}/man3/*
This page took 0.115481 seconds and 3 git commands to generate.