]> git.pld-linux.org Git - packages/anubis.git/blobdiff - anubis.spec
- converted to UTF-8
[packages/anubis.git] / anubis.spec
index 2b7037b770b27fcaff5444fc6d44d4952958e7e5..115e2c0512056f51b81e03e00d98991aedf18de4 100644 (file)
@@ -1,47 +1,46 @@
 #
 # Conditional build:
 %bcond_with    gnutls          # use GnuTLS library instead of OpenSSL
-%bcond_without tcp_wrappers    # disable using tcp_wrappers for access control
-%bcond_without pam             # disable using of PAM authentcation
 %bcond_without gpgme           # disable using gpgme library for signing/encrypting with gnupg
+%bcond_without pam             # disable using of PAM authentication
 %bcond_without pcre            # disable using pcre library
-%bcond_with    mysql
-%bcond_with    postgres
+%bcond_without tcp_wrappers    # disable using tcp_wrappers for access control
+%bcond_with    mysql           # enable MySQL support
+%bcond_with    postgres        # enable PostgreSQL support
 #
 %include       /usr/lib/rpm/macros.perl
 Summary:       An outgoing mail processor, and the SMTP tunnel
-Summary(pl):   Procesor wychodz±cej poczty i tunel SMTP
+Summary(pl.UTF-8):   Procesor wychodzącej poczty i tunel SMTP
 Name:          anubis
-Version:       3.9.94
-Release:       0.8
+Version:       4.0
+Release:       3
 License:       GPL
 Group:         Applications/Mail
-Source0:       ftp://mirddin.farlep.net/pub/alpha/anubis/%{name}-%{version}.tar.gz
-# Source0-md5: 1557c499d73265aac1f87c61c5695b50
+Source0:       ftp://ftp.gnu.org/gnu/anubis/%{name}-%{version}.tar.gz
+# Source0-md5: cded94ad14e528e899f5e8f7fd1aa022
 Source1:       %{name}.init
 Source2:       %{name}.pamd
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-configure_gpgme.patch
-Patch2:                %{name}-boundary.patch
-Patch3:                %{name}-nolibnsl.patch
-Patch4:                %{name}-securityfixes.patch
+Patch1:                %{name}-nolibnsl.patch
 URL:           http://www.gnu.org/software/anubis/
-BuildRequires: gettext-devel >= 0.12.1
 BuildRequires: autoconf >= 2.54
-BuildRequires: automake >= 1.7
+BuildRequires: automake >= 1:1.7
 BuildRequires: bison
-%{?with_gnutls:BuildRequires:  gnutls-devel}
-%{?with_gpgme:BuildRequires:   gpgme-devel >= 0.3.12}
+BuildRequires: gettext-devel >= 0.12.1
+%{?with_gnutls:BuildRequires:  gnutls-devel >= 1.2.5}
+%{?with_gpgme:BuildRequires:   gpgme-devel >= 1:1.0.0}
+BuildRequires: guile-devel >= 5:1.6
 %{?with_tcp_wrappers:BuildRequires:    libwrap-devel}
+%{?with_mysql:BuildRequires:   mysql-devel}
 %{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d}
 %{?with_postgres:BuildRequires:        postgres-devel}
-%{?with_mysql:BuildRequires:   mysql-devel}
 BuildRequires: rpm-perlprov
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: texinfo
-PreReq:                rc-scripts
 Requires(post,preun):  /sbin/chkconfig
 Requires:      identserver
 Requires:      pam >= 0.77.3
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -64,30 +63,30 @@ be running. Without it only system-wide configuration file is used.
 If you want to use GNU Anubis with mutt mail client, install msg2smtp
 package.
 
-%description -l pl
-GNU Anubis zajmuje siê przetwarzaniem poczty wychodz±cej. Znajduje siê
-on pomiêdzy MUA (Mail User Agent) i MTA (Mail Transport Agent) i mo¿e
-wykonywaæ w locie ró¿ne rodzaje przetwarzania i konwersji poczty
-wychodz±cej zale¿nie od podanych regu³, bazuj±cych na wysoce
-konfigurowalnym systemie wyra¿eñ regularnych. GNU Anubis dzia³a jako
-serwer proxy, niezale¿nie od programów pocztowych. Potrafi on zmieniaæ
-nag³ówki listów, szyfrowaæ lub podpisywaæ jest przy pomocy GNU Privacy
-Guard, tworzyæ bezpieczne tunele SMTP u¿ywaj±c szyfrowania TLS/SSL
-nawet, gdy Twój program pocztowy nie ma takich mo¿liwo¶ci. Mo¿liwe
-jest te¿ tunelowanie po³±czeñ przez SOCKS proxy.
-Co wiêcej, GNU Anubis wspiera tak¿e remailery (czyli pozawala na
-anonimowe wysy³anie poczty).
-
-Pamiêtaj, ¿e aby u¿ywaæ plików konfiguracyjnych u¿ytkowników, serwer
-ident musi byæ aktywny. Inaczej, u¿yty bêdzie tylko g³ówny plik
+%description -l pl.UTF-8
+GNU Anubis zajmuje się przetwarzaniem poczty wychodzącej. Znajduje się
+on pomiędzy MUA (Mail User Agent) i MTA (Mail Transport Agent) i może
+wykonywać w locie różne rodzaje przetwarzania i konwersji poczty
+wychodzącej zależnie od podanych reguł, bazujących na wysoce
+konfigurowalnym systemie wyrażeń regularnych. GNU Anubis działa jako
+serwer proxy, niezależnie od programów pocztowych. Potrafi on zmieniać
+nagłówki listów, szyfrować lub podpisywać jest przy pomocy GNU Privacy
+Guard, tworzyć bezpieczne tunele SMTP używając szyfrowania TLS/SSL
+nawet, gdy Twój program pocztowy nie ma takich możliwości. Możliwe
+jest też tunelowanie połączeń przez SOCKS proxy. Co więcej, GNU Anubis
+wspiera także remailery (czyli pozawala na anonimowe wysyłanie
+poczty).
+
+Pamiętaj, że aby używać plików konfiguracyjnych użytkowników, serwer
+ident musi być aktywny. Inaczej, użyty będzie tylko główny plik
 konfiguracyjny.
 
-Je¶li chcesz u¿ywaæ GNU Anubis z klientem poczty mutt, zainstaluj
+Jeśli chcesz używać GNU Anubis z klientem poczty mutt, zainstaluj
 pakiet msg2smtp.
 
 %package -n msg2smtp
 Summary:       msg2smtp takes mail at input and relays it to an SMTP server
-Summary(pl):   msg2smtp wysy³a pocztê przyjmowan± na wej¶ciu do serwera SMTP
+Summary(pl.UTF-8):   msg2smtp wysyła pocztę przyjmowaną na wejściu do serwera SMTP
 Group:         Applications/Mail
 
 %description -n msg2smtp
@@ -96,19 +95,16 @@ The msg2smtp script is a bridge between MUA programs which use
 particularly useful when used in connection with GNU Anubis mail
 processor.
 
-%description -n msg2smtp -l pl
-Skrypt msg2smtp jest pomostem miêdzy programami pocztowymi u¿ywaj±cymi
-polecenia "sendmail" do wysy³ania listów (np. Mutt), a serwerem smtp.
-Jest on szczególnie przydatny w po³±czeniu z procesorem poczty GNU
+%description -n msg2smtp -l pl.UTF-8
+Skrypt msg2smtp jest pomostem między programami pocztowymi używającymi
+polecenia "sendmail" do wysyłania listów (np. Mutt), a serwerem smtp.
+Jest on szczególnie przydatny w połączeniu z procesorem poczty GNU
 Anubis.
 
 %prep
 %setup -q
-#%patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
-#%patch3 -p1
-#%patch4 -p1
+%patch0 -p1
+%patch1 -p1
 
 %build
 %{__gettextize}
@@ -142,25 +138,20 @@ install ./examples/2anubisrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
 cp -f ./examples/1anubisrc examples/anubisrc
 
 %find_lang %{name}
+rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
 
 %clean
-rm -fr $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add anubis
-if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
-       /etc/rc.d/init.d/anubis restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2
-fi
+%service anubis restart
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
-               /etc/rc.d/init.d/anubis stop
-       fi
+       %service anubis stop
        /sbin/chkconfig --del anubis
 fi
 
@@ -172,11 +163,12 @@ fi
 %doc AUTHORS README INSTALL NEWS ChangeLog TODO examples/anubisrc
 %{?with_pam:%doc examples/pam}
 %attr(754,root,root) /etc/rc.d/init.d/anubis
-%attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc
-%{?with_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/anubis}
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/anubisrc
+%{?with_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/anubis}
 %attr(755,root,root) %{_sbindir}/anubis
+%{_datadir}/anubis
 %{_mandir}/man1/*
-%{_infodir}/*info*
+%{_infodir}/*.info*
 
 %files -n msg2smtp
 %defattr(644,root,root,755)
This page took 0.099066 seconds and 4 git commands to generate.