]> git.pld-linux.org Git - packages/tmda.git/blob - tmda.spec
- fixed %%docs; manual construction needed
[packages/tmda.git] / tmda.spec
1 %include        /usr/lib/rpm/macros.python
2 Summary:        Tagged Message Delivery Agent
3 Summary(pl):    Agent (MDA) dostarczaj±cy oznaczone wiadomo¶ci
4 Name:           tmda
5 Version:        0.62
6 Release:        1
7 Source0:        http://tmda.net/releases/%{name}-%{version}.tgz
8 License:        GPL
9 Group:          Networking/Daemons
10 %pyrequires_eq  python
11 BuildRequires:  python-devel >= 2.2.1
12 BuildRequires:  rpm-pythonprov
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 URL:            http://tmda.sourceforge.net/
16
17 %description
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).
23
24 %description -l pl
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
29 nadawców).
30
31 %prep
32 %setup -q
33
34 %build
35 python ./compileall
36
37 %install
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
41
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}
46
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}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
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]
64 %{_datadir}/tmda
This page took 0.050593 seconds and 4 git commands to generate.