root/tags/Perlbal-1.71/Perlbal.spec

Revision 791, 2.0 kB (checked in by dormando, 18 months ago)

Checking in changes prior to tagging of version 1.71. Changelog diff is:

Index: CHANGES
===================================================================
--- CHANGES (revision 790)
+++ CHANGES (working copy)
@@ -1,3 +1,5 @@
+1.71: 2008-09-13
+

-- SECURITY: Remote crash reported by Dan Conlon, patched perlbal to send

error on negative content length to prevent this.


Line 
1name:      Perlbal
2summary:   Perlbal - High efficiency reverse proxy and web server.
3version:   1.71
4release:   1
5vendor:    Brad Fitzpatrick <brad@danga.com>
6packager:  Jonathan Steinert <rpm@hachi.kuiki.net>
7license:   Artistic
8group:     Applications/CPAN
9buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
10buildarch: noarch
11source:    Perlbal-%{version}.tar.gz
12
13buildrequires: perl(Danga::Socket) >= 1.44
14buildrequires: perl(BSD::Resource)
15buildrequires: perl(HTTP::Date)
16buildrequires: perl(HTTP::Response)
17buildrequires: perl(Test::More)
18buildrequires: perl(Time::HiRes)
19
20autoreq: no
21requires: perl(Perlbal) = %{version}-%{release}
22
23%description
24High efficiency reverse proxy and web server.
25
26%prep
27rm -rf "%{buildroot}"
28%setup -n Perlbal-%{version}
29
30%build
31%{__perl} Makefile.PL PREFIX=%{buildroot}%{_prefix}
32make all
33make test
34
35%install
36make pure_install
37
38[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
39
40
41# remove special files
42find %{buildroot} \(                    \
43       -name "perllocal.pod"            \
44    -o -name ".packlist"                \
45    -o -name "*.bs"                     \
46    \) -exec rm -f {} \;
47
48# no empty directories
49find %{buildroot}%{_prefix}             \
50    -type d -depth -empty               \
51    -exec rmdir {} \;
52
53%clean
54[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
55
56%files
57%defattr(-,root,root)
58%{_prefix}/bin/*
59%{_prefix}/share/man/man1
60
61%package doc
62summary:   Perlbal-doc - Documentation for Perlbal, a high efficiency reverse proxy and web server.
63group:     Applications/CPAN
64%description doc
65Documentation for Perlbal.
66
67%files doc
68
69%package -n perl-Perlbal
70summary:   perl-Perlbal - Perlbal libraries.
71group:     Applications/CPAN
72
73autoreq: no
74requires: perl(Danga::Socket) >= 1.44
75requires: perl(BSD::Resource)
76requires: perl(HTTP::Date)
77requires: perl(HTTP::Response)
78requires: perl(Time::HiRes)
79
80%description -n perl-Perlbal
81Perlbal libraries.
82
83%files -n perl-Perlbal
84%defattr(-,root,root)
85%{_prefix}/lib/*
86%{_prefix}/share/man/man3
Note: See TracBrowser for help on using the browser.