-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gearmand.spec
65 lines (53 loc) · 1.6 KB
/
Gearmand.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
name: Gearmand
summary: Gearmand - Gearman job distribution server
version: 1.10
release: 1
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: Gearman-Server-%{version}.tar.gz
buildrequires: perl-Danga-Socket >= 1.52, perl-Gearman-Client
requires: perl-Gearman-Server = %{version}-%{release}
autoreq: no
%description
Gearman job distribution system
%prep
rm -rf "%{buildroot}"
%setup -n Gearman-Server-%{version}
%build
%{__perl} Makefile.PL PREFIX=%{buildroot}%{_prefix} INSTALLDIRS=vendor
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 -n perl-Gearman-Server
summary: perl-Gearman-Server - Gearman server libraries.
group: Applications/CPAN
requires: perl-Danga-Socket >= 1.52, perl-Gearman-Client
autoreq: no
%description -n perl-Gearman-Server
Gearman server libraries.
%files -n perl-Gearman-Server
%defattr(-,root,root)
%{_prefix}/lib/perl5/vendor_perl/*
%{_prefix}/share/man/man3