Remove unused mog_root config option.
[MogileFS-Server.git] / MogileFS-Server.spec
blobbcb4ecef885d8ba59450ca2e70ee45ae0dd31520
1 name: MogileFS-Server
2 summary: MogileFS-Server - MogileFS Server daemons and utilities.
3 version: 2.30
4 release: 1
5 vendor: Brad Fitzpatrick <brad@danga.com>
6 packager: Jonathan Steinert <hachi@cpan.org>
7 license: Artistic
8 group: Applications/CPAN
9 buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
10 buildarch: noarch
11 source: mogilefs-server-%{version}.tar.gz
12 autoreq: no
13 requires: MogileFS-Server-mogilefsd, MogileFS-Server-mogstored
15 # Build requires for mogilefsd
16 buildrequires: perl(DBI), perl(DBD::mysql), perl(MogileFS::Client), MogileFS-Utils, mysql
17 # Build requires for mogstored
18 buildrequires: perl(Gearman::Client::Async) >= 0.93, perl(Gearman::Server) >= 1.08, perl(Perlbal) >= 1.53
20 %description
21 MogileFS Server daemons and utilities.
22 This is a dummy package which depends on all the others so you can install them all easily.
24 %prep
25 rm -rf "%{buildroot}"
26 %setup -n mogilefs-server-%{version}
28 %build
29 %{__perl} Makefile.PL PREFIX=%{buildroot}%{_prefix}
30 make all
31 make test
33 %install
34 make pure_install
36 [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
38 # remove mogdeps and related files
39 rm -rf %{buildroot}/usr/lib/perl5/site_perl/*/mogdeps
40 rm -f %{buildroot}/usr/share/man/man3/mogdeps::*
42 # remove special files
43 find %{buildroot} \( \
44 -name "perllocal.pod" \
45 -o -name ".packlist" \
46 -o -name "*.bs" \
47 \) -exec rm -f {} \;
49 # no empty directories
50 find %{buildroot}%{_prefix} \
51 -type d -depth -empty \
52 -exec rmdir {} \;
54 %clean
55 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
57 %files
58 %defattr(-,root,root)
60 %package -n MogileFS-Server-mogilefsd
61 summary: MogileFS-Server-mogilefsd - Mogilefsd and related libraries.
62 group: Applications/CPAN
63 autoreq: no
64 requires: perl(DBI) >= 1.44, perl(DBD::mysql) >= 3
65 obsoletes: MogileFS-Server-utils <= 2.16
67 %description -n MogileFS-Server-mogilefsd
68 Mogilefsd and related libraries.
70 %files -n MogileFS-Server-mogilefsd
71 %defattr(-,root,root)
72 %{_prefix}/bin/mogilefsd
73 %{_prefix}/bin/mogdbsetup
74 %{_prefix}/lib/perl5/site_perl/5.8.5/MogileFS/*
75 %{_prefix}/share/man/man1/mogilefsd.1.gz
76 %{_prefix}/share/man/man3/MogileFS::*.3pm.gz
78 %package -n MogileFS-Server-mogstored
79 summary: MogileFS-Server-mogstored - Mogstored and related libraries.
80 group: Applications/CPAN
81 autoreq: no
82 requires: perl-Gearman-Client-Async >= 0.93, perl-Gearman-Server >= 1.08, perl-Perlbal >= 1.53
83 obsoletes: MogileFS-Server-utils <= 2.16
85 %description -n MogileFS-Server-mogstored
86 Mogstored and related libraries.
88 %files -n MogileFS-Server-mogstored
89 %defattr(-,root,root)
90 %{_prefix}/bin/mogstored
91 %{_prefix}/bin/mogautomount
92 %{_prefix}/lib/perl5/site_perl/5.8.5/Mogstored/*
93 %{_prefix}/share/man/man1/mogstored.1.gz
94 %{_prefix}/share/man/man1/mogautomount.1.gz