]> git.pld-linux.org Git - packages/tmda.git/blobdiff - tmda.spec
- BR: python-modules, rpm-pythonprov
[packages/tmda.git] / tmda.spec
index 1915d73c75da116bf271b8ff68c3db009b171fc6..72cb316205d0ad98a785f59c42b44bd50a0cb77e 100644 (file)
--- a/tmda.spec
+++ b/tmda.spec
@@ -1,18 +1,20 @@
-%include        /usr/lib/rpm/macros.python
 Summary:       Tagged Message Delivery Agent
-Summary(pl):   Agent (MDA) dostarczaj±cy oznaczone wiadomo¶ci
+Summary(pl.UTF-8):     Agent (MDA) dostarczający oznaczone wiadomości
 Name:          tmda
-Version:       0.59
-Release:       1
-Source0:       http://tmda.net/releases/%{name}-%{version}.tgz
+Version:       1.1.4
+Release:       7
 License:       GPL
 Group:         Networking/Daemons
-%pyrequires_eq  python
-BuildRequires: python-devel >= 2.2.1
+Source0:       http://tmda.sf.net/releases/unstable/%{name}-%{version}.tgz
+# Source0-md5: 58c79099ea0cd4bfc48f85de5502a2f2
+URL:           http://tmda.sourceforge.net/
+BuildRequires: python-devel >= 1:2.3.3
+BuildRequires: python-modules
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+%pyrequires_eq python
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-URL:           http://tmda.sourceforge.net/
 
 %description
 TMDA is an OSI certified software application designed to
@@ -21,12 +23,12 @@ TMDA combines a "whitelist" (for known/trusted senders), a "blacklist"
 (for undesired senders), and a cryptographically enhanced confirmation
 system (for unknown, but legitimate senders).
 
-%description -l pl
-TMDA to oprogramowanie zaprojektowane by zredukowaæ liczbê spamu,
-który otrzymujesz. TMDA ³±czy w sobie "bia³± listê" (dla znanych /
-zaufanych nadawców), "czarn± listê" (dla niepo¿±danych nadawców) oraz
-system potwierdzania wiadomo¶ci (dla nieznanych ale prawid³owych
-nadawców).
+%description -l pl.UTF-8
+TMDA to oprogramowanie zaprojektowane by zredukować liczbę spamu,
+który otrzymujesz. TMDA łączy w sobie "białą listę" (dla znanych /
+zaufanych nadawców), "czarną listę" (dla niepożądanych nadawców) oraz
+system potwierdzania wiadomości (dla nieznanych ale prawidłowych
+nadawców).
 
 %prep
 %setup -q
@@ -36,23 +38,30 @@ python ./compileall
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/tmda,%{py_libdir}/TMDA}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/tmda,%{py_scriptdir}/site-packages/TMDA/pythonlib/email}
 
 install bin/tmda-* $RPM_BUILD_ROOT%{_bindir}
 install templates/*.txt $RPM_BUILD_ROOT%{_datadir}/tmda
-install TMDA/*.{py,pyc} $RPM_BUILD_ROOT%{py_libdir}/TMDA
+install TMDA/*.{py,pyc} $RPM_BUILD_ROOT%{py_scriptdir}/site-packages/TMDA
+install TMDA/pythonlib/email/*.{py,pyc} $RPM_BUILD_ROOT%{py_scriptdir}/site-packages/TMDA/pythonlib/email
 install contrib/{collectaddys,printcdb,printdbm} $RPM_BUILD_ROOT%{_bindir}
 
-%py_ocomp $RPM_BUILD_ROOT%{py_libdir}
-%py_comp $RPM_BUILD_ROOT%{py_libdir}
+%py_ocomp $RPM_BUILD_ROOT%{py_scriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_scriptdir}
+rm -f htdocs/{ChangeLog,Makefile,*.h,*.ht,*.py*,*.tpl}
+
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog CRYPTO INSTALL README THANKS UPGRADE contrib/sample* htdocs/{README,*.html}
+%doc ChangeLog CRYPTO README THANKS UPGRADE contrib htdocs
 %attr(755,root,root) %{_bindir}/*
-%dir %{py_libdir}/TMDA
-%{py_libdir}/TMDA/*.py[co]
+%dir %{py_scriptdir}/site-packages/TMDA
+%{py_scriptdir}/site-packages/TMDA/*.py[co]
+%dir %dir %{py_scriptdir}/site-packages/TMDA/pythonlib
+%dir %{py_scriptdir}/site-packages/TMDA/pythonlib/email
+%{py_scriptdir}/site-packages/TMDA/pythonlib/email/*.py[co]
 %{_datadir}/tmda
This page took 0.052186 seconds and 4 git commands to generate.