1 %include /usr/lib/rpm/macros.python
2 Summary: Tagged Message Delivery Agent
3 Summary(pl): Agent (MDA) dostarczaj±cy oznaczone wiadomo¶ci
7 Source0: http://tmda.net/releases/%{name}-%{version}.tgz
9 Group: Networking/Daemons
11 BuildRequires: python-devel >= 2.2.1
12 BuildRequires: rpm-pythonprov
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 URL: http://tmda.sourceforge.net/
18 TMDA is an OSI certified software application designed to
19 significantly reduce the amount of SPAM/UCE (junk-mail) you receive.
20 TMDA combines a "whitelist" (for known/trusted senders), a "blacklist"
21 (for undesired senders), and a cryptographically enhanced confirmation
22 system (for unknown, but legitimate senders).
25 TMDA to oprogramowanie zaprojektowane by zredukowaæ liczbê spamu,
26 który otrzymujesz. TMDA ³±czy w sobie "bia³± listê" (dla znanych /
27 zaufanych nadawców), "czarn± listê" (dla niepo¿±danych nadawców) oraz
28 system potwierdzania wiadomo¶ci (dla nieznanych ale prawid³owych
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/tmda,%{py_libdir}/TMDA}
40 install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/htdocs
42 install bin/tmda-* $RPM_BUILD_ROOT%{_bindir}
43 install templates/*.txt $RPM_BUILD_ROOT%{_datadir}/tmda
44 install TMDA/*.{py,pyc} $RPM_BUILD_ROOT%{py_libdir}/TMDA
45 install contrib/{collectaddys,printcdb,printdbm} $RPM_BUILD_ROOT%{_bindir}
47 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
48 %py_comp $RPM_BUILD_ROOT%{py_libdir}
49 cp -f htdocs/{*.html,README} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/htdocs
50 cp -f ChangeLog CRYPTO INSTALL README THANKS UPGRADE contrib/sample* \
51 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
52 # compress %%doc manually; automation does not work in this case
53 gzip -9 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{ChangeLog,CRYPTO,INSTALL,README,THANKS,UPGRADE,htdocs/README}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc %{_docdir}/%{name}-%{version}
61 %attr(755,root,root) %{_bindir}/*
62 %dir %{py_libdir}/TMDA
63 %{py_libdir}/TMDA/*.py[co]