From 94b9f8a90020b136f8e437be6f1a17547ca5dfc7 Mon Sep 17 00:00:00 2001 From: kloczek Date: Mon, 9 Sep 2002 19:29:48 +0000 Subject: [PATCH] - updated to 3.4.6, - added info files to %files and update info index in %post/%postun (added info patch), TODO: write PLD specyfic init script. Changed files: anubis.spec -> 1.5 --- anubis.spec | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/anubis.spec b/anubis.spec index 3fafe23..734e822 100644 --- a/anubis.spec +++ b/anubis.spec @@ -1,17 +1,23 @@ +# +# TODO: +# - write PLD specyfic init script. +# Summary: An outgoing mail processor, and the SMTP tunnel Summary(pl): Preprocesor wychodz±cej poczty i tunel SMTP Name: anubis -Version: 3.4.1 +Version: 3.4.6 Release: 1 License: GPL Group: Applications/Mail Source0: http://cesnet.dl.sourceforge.net/sourceforge/anubis/%{name}-%{version}.tar.gz +Patch0: %{name}-info.patch URL: http://anubis.sourceforge.net/ -BuildRequires: automake BuildRequires: autoconf -BuildRequires: openssl-devel +BuildRequires: automake BuildRequires: gpgme-devel +BuildRequires: openssl-devel BuildRequires: pcre-devel +BuildRequires: texinfo PreReq: /sbin/chkconfig BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -30,6 +36,10 @@ TLS/SSL, GnuPG, SOCKS Proxy oraz WinGates, remailery i nie tylko. %setup -q %build +rm -f missing +%{__aclocal} +%{__autoconf} +%{__automake} %configure \ --with-pcre \ --disable-dependency-tracking @@ -37,8 +47,7 @@ TLS/SSL, GnuPG, SOCKS Proxy oraz WinGates, remailery i nie tylko. %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/etc/rc.d/init.d -install -d $RPM_BUILD_ROOT%{_sysconfdir} +install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT @@ -56,6 +65,8 @@ if [ -f %{_localstatedir}/lock/subsys/anubis ]; then else echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2 fi +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 + %preun if [ "$1" = "0" ]; then @@ -65,10 +76,14 @@ if [ "$1" = "0" ]; then /sbin/chkconfig --del anubis fi +%postun +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 + %files %defattr(644,root,root,755) -%doc AUTHORS README INSTALL NEWS ChangeLog TUTORIAL TODO examples -%attr(755,root,root) %{_sbindir}/anubis -%attr(750,root,root) /etc/rc.d/init.d/anubis +%doc AUTHORS README INSTALL NEWS ChangeLog TODO examples +%attr(754,root,root) /etc/rc.d/init.d/anubis %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc +%attr(755,root,root) %{_sbindir}/anubis %{_mandir}/man1/* +%{_infodir}/*info* -- 2.44.0