]> git.pld-linux.org Git - packages/perl-Starlet.git/blob - perl-Starlet.spec
74bd7523890293e10a0cd164722626b35744f8a1
[packages/perl-Starlet.git] / perl-Starlet.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Starlet
6 %include        /usr/lib/rpm/macros.perl
7 Summary:        a simple, high-performance PSGI/Plack HTTP server
8 Name:           perl-Starlet
9 Version:        0.31
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-authors/id/K/KA/KAZUHO/Starlet-%{version}.tar.gz
15 # Source0-md5:  b33a749d05b41aa0aca8fbe565965c4f
16 URL:            http://search.cpan.org/dist/Starlet/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl(Parallel::Prefork) >= 0.07
21 BuildRequires:  perl(Server::Starter) >= 0.06
22 BuildRequires:  perl-Plack >= 0.992
23 BuildRequires:  perl-Test-TCP >= 2.07
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Starlet is a standalone HTTP/1.1 web server.
30
31 %prep
32 %setup -q -n %{pdir}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
37 %{__make}
38
39 %{?with_tests:%{__make} test}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %{__make} pure_install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc Changes README
53 %{perl_vendorlib}/*.pm
54 %{perl_vendorlib}/Starlet/
55 %{perl_vendorlib}/Plack/Handler/*.pm
56 %{_mandir}/man3/*
This page took 0.030204 seconds and 2 git commands to generate.