#This is imapproxy rpm spec file %define ver 1.2.1rel %define rel 1 %define prefix /usr/local %define withkrb5 0 # Check for option at command line, ie: # rpmbuild -bb imapproxy.spec --define 'with_krb5 1' # with_krb5 indicates the Kerberos includes are needed (ie: Red Hat Linux 9) %{?with_krb5:%define withkrb5 1} Summary: Imapproxy Daemon Name: up-imapproxy Version: %ver Release: %rel Copyright: Dave McMurtrie Group: Networking/Daemons Source0: http://www.imapproxy.org/downloads/up-imapproxy-%{ver}.tar.gz Source1: imapproxy.conf Source2: imapproxy.init Url: http://www.imapproxy.org Packager: Devrim SERAL #BuildRoot: /var/tmp/imapproxy-%{ver}-root BuildRoot: %{_tmppath}/%{name}-%{ver}-root %description This is a connection caching imapproxy daemon for proxied imap connections %prep %setup %build chmod 755 ./configure #make clean %if %{withkrb5} ./configure --with-prefix=%{prefix} --with-krb5=/usr/kerberos %else ./configure --with-prefix=%{prefix} %endif make OPT_FLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc install -d $RPM_BUILD_ROOT/etc/init.d install -d $RPM_BUILD_ROOT/%{prefix}/sbin make prefix=$RPM_BUILD_ROOT%{prefix} rpm_prefix=$RPM_BUILD_ROOT rpm-install %clean rm -rf $RPM_BUILD_ROOT %pre if [ -f /etc/imapproxy.conf ]; then cp -a /etc/imapproxy.conf /etc/imapproxy.conf.old fi %post /sbin/chkconfig --add imapproxy %preun /sbin/chkconfig --del imapproxy %files %defattr(-, root, root) %config /etc/imapproxy.conf %doc README ChangeLog %attr(750,root,root) /etc/init.d/imapproxy %attr(750,root,root) %{prefix}/sbin/in.imapproxyd %attr(750,root,root) %{prefix}/sbin/pimpstat %changelog * Tue Mar 18 2003 Devrim SERAL - Created imapproxy.spec file