1 %define perl_vendorlib %
(eval "`
/usr
/bin
/perl
-V
:installvendorlib`"
; echo $installvendorlib
)
4 summary
: MogileFS
-Server
- MogileFS Server daemons and utilities.
7 vendor
: Alan Kasindorf
<dormando@rydia.net
>
8 packager
: Jonathan Steinert
<hachi@cpan.org
>
10 group
: Applications
/CPAN
11 buildroot
: %{_tmppath}/%{name}-%{version}-%
(id
-u
-n
)
13 source: MogileFS
-Server
-%{version}.tar.gz
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
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.
29 %setup -n MogileFS
-Server
-%{version}
32 %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX=%{buildroot}%{_prefix} INSTALL_BASE
=
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" \
48 # no empty directories
49 find
%{buildroot}%{_prefix} \
50 -type d
-depth
-empty \
54 [ "
%{buildroot}" != "/" ] && rm -rf %{buildroot}
59 %package -n MogileFS
-Server
-mogilefsd
60 summary
: MogileFS
-Server
-mogilefsd
- Mogilefsd and related libraries.
61 group
: Applications
/CPAN
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
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
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
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