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