Mogstored/SideChannelClient: remove circular reference
[MogileFS-Server.git] / MogileFS-Server.spec
blob142e1b7a4df2093dcd4e8a7014c2f16205b07ed6
1 %define perl_vendorlib %(eval "`/usr/bin/perl -V:installvendorlib`"; echo $installvendorlib)
3 name: MogileFS-Server
4 summary: MogileFS-Server - MogileFS Server daemons and utilities.
5 version: 2.46
6 release: 2%{?dist}
7 vendor: Alan Kasindorf <dormando@rydia.net>
8 packager: Jonathan Steinert <hachi@cpan.org>
9 license: Artistic
10 group: Applications/CPAN
11 buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
12 buildarch: noarch
13 source: MogileFS-Server-%{version}.tar.gz
14 autoreq: no
15 requires: MogileFS-Server-mogilefsd = %{version}-%{release}
16 requires: MogileFS-Server-mogstored = %{version}-%{release}
18 # Build requires for mogilefsd
19 buildrequires: perl(DBI), perl(DBD::mysql), perl(MogileFS::Client), MogileFS-Utils, mysql
20 # Build requires for mogstored
21 buildrequires: perl(Perlbal) >= 1.73
23 %description
24 MogileFS Server daemons and utilities.
25 This is a dummy package which depends on all the others so you can install them all easily.
27 %prep
28 rm -rf "%{buildroot}"
29 %setup -n MogileFS-Server-%{version}
31 %build
32 %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX=%{buildroot}%{_prefix} INSTALL_BASE=
33 make all
34 make test
36 %install
37 make pure_install
39 [ -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)
59 %package -n MogileFS-Server-mogilefsd
60 summary: MogileFS-Server-mogilefsd - Mogilefsd and related libraries.
61 group: Applications/CPAN
62 autoreq: no
63 requires: perl(DBI) >= 1.44, perl(DBD::mysql) >= 3
64 obsoletes: MogileFS-Server-utils <= 2.16
66 %description -n MogileFS-Server-mogilefsd
67 Mogilefsd and related libraries.
69 %files -n MogileFS-Server-mogilefsd
70 %defattr(-,root,root)
71 %{_prefix}/bin/mogilefsd
72 %{_prefix}/bin/mogdbsetup
73 %{perl_vendorlib}/MogileFS/*
74 %{_prefix}/share/man/man1/mogilefsd.1.gz
75 %{_prefix}/share/man/man3/MogileFS::*.3pm.gz
77 %package -n MogileFS-Server-mogstored
78 summary: MogileFS-Server-mogstored - Mogstored and related libraries.
79 group: Applications/CPAN
80 autoreq: no
81 requires: perl-Perlbal >= 1.73
82 obsoletes: MogileFS-Server-utils <= 2.16
84 %description -n MogileFS-Server-mogstored
85 Mogstored and related libraries.
87 %files -n MogileFS-Server-mogstored
88 %defattr(-,root,root)
89 %{_prefix}/bin/mogstored
90 %{_prefix}/bin/mogautomount
91 %{perl_vendorlib}/Mogstored/*
92 %{_prefix}/share/man/man1/mogstored.1.gz
93 %{_prefix}/share/man/man1/mogautomount.1.gz