Merge pull request #23 from dsteinbrunner/patch-2
[perlbal.git] / Perlbal.spec
blobb2d50fcf97e8108272b1cb5c8b38a965ef5ad031
1 name: Perlbal
2 summary: Perlbal - High efficiency reverse proxy and web server.
3 version: 1.78
4 release: 1%{?dist}
5 vendor: Alan Kasindorf <dormando@rydia.net>
6 packager: Jonathan Steinert <rpm@hachi.kuiki.net>
7 license: Artistic
8 group: Applications/CPAN
9 buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
10 buildarch: noarch
11 source: Perlbal-%{version}.tar.gz
13 buildrequires: perl(Danga::Socket) >= 1.44
14 buildrequires: perl(BSD::Resource)
15 buildrequires: perl(HTTP::Date)
16 buildrequires: perl(HTTP::Response)
17 buildrequires: perl(Test::More)
18 buildrequires: perl(Time::HiRes)
20 autoreq: no
21 requires: perl-Perlbal = %{version}-%{release}
23 %description
24 High efficiency reverse proxy and web server.
26 %prep
27 rm -rf "%{buildroot}"
28 %setup -n Perlbal-%{version}
30 %build
31 %{__perl} Makefile.PL PREFIX=%{buildroot}%{_prefix} INSTALL_BASE=
32 make all
33 make test
35 %install
36 make pure_install
38 [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
41 # remove special files
42 find %{buildroot} \( \
43 -name "perllocal.pod" \
44 -o -name ".packlist" \
45 -o -name "*.bs" \
46 \) -exec rm -f {} \;
48 # no empty directories
49 find %{buildroot}%{_prefix} \
50 -type d -depth -empty \
51 -exec rmdir {} \;
53 %clean
54 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
56 %files
57 %defattr(-,root,root)
58 %{_prefix}/bin/*
59 %{_prefix}/share/man/man1
61 %package doc
62 summary: Perlbal-doc - Documentation for Perlbal, a high efficiency reverse proxy and web server.
63 group: Applications/CPAN
64 %description doc
65 Documentation for Perlbal.
67 %files doc
69 %package -n perl-Perlbal
70 summary: perl-Perlbal - Perlbal libraries.
71 group: Applications/CPAN
73 autoreq: no
74 requires: perl(Danga::Socket) >= 1.44
75 requires: perl(BSD::Resource)
76 requires: perl(HTTP::Date)
77 requires: perl(HTTP::Response)
78 requires: perl(Time::HiRes)
80 %description -n perl-Perlbal
81 Perlbal libraries.
83 %files -n perl-Perlbal
84 %defattr(-,root,root)
85 %{_prefix}/lib/*
86 %{_prefix}/share/man/man3