A new user interface for you! Read more...

File bacula-client.spec of Package bacula-client

BuildRequires: gcc gcc-c++ automake autoconf libacl-devel postgresql-devel

Name:           bacula-client
License:        GPL
Group:          System/Management
Summary:        Bacula Client
Version:        5.0.2
Release:        1
URL:            http://bacula.org
Source:         bacula-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires: zlib 

%define _prefix        /usr
%define _sbindir       %_prefix/sbin
%define _bindir        %_prefix/bin
%define _subsysdir     /var/lock/subsys
%define sqlite_bindir %_libdir/bacula/sqlite
%define _mandir        %_prefix/share/man
%define sysconf_dir    /etc/bacula
%define script_dir     %_libdir/bacula
%define working_dir    /var/lib/bacula
%define pid_dir        /var/run
%define plugin_dir     %_libdir/bacula/plugins
%define lib_dir        %_libdir/bacula/lib


%description
My desc here...

%prep
%setup -q -c %{name}


%build


cd bacula-%{version}

%configure \
        --prefix=%{_prefix} \
        --sbindir=%{_sbindir} \
        --sysconfdir=%{sysconf_dir} \
        --mandir=%{_mandir} \
        --with-scriptdir=%{script_dir} \
        --with-working-dir=%{working_dir} \
        --with-plugindir=%{script_dir} \
        --with-pid-dir=%{pid_dir} \
        --with-subsys-dir=%{_subsysdir} \
        --enable-smartalloc \
        --disable-gnome \
        --disable-bwx-console \
        --disable-tray-monitor \
        --disable-conio \
        --enable-readline \
	--disable-ipv6 --with-openssl  --with-postgresql
make -j4


%install

mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/etc/bacula


cd bacula-%{version}

for i in src/filed src/plugins/fd ; do
	cd $i ;
	make DESTDIR=$RPM_BUILD_ROOT install ;
	cd - ;
done



%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ]   && rm -rf $RPM_BUILD_ROOT/*

%files
%defattr(-,root,root)

%dir /etc/bacula
%_libdir/bacula
/etc/bacula/bacula-fd.conf

%_libdir/bacula/bpipe-fd.so
%_sbindir/bacula-fd