X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=tmda.spec;h=ad03b53619986647b0d85fd5e9a4e5f4bc41cdb1;hb=04c2e7b42b6214fc0783d767396dd30d4bfa7d2a;hp=a63ab86c2b2a0b72e0a4f4ab1c1200d6b600faec;hpb=a67f1df37d59fe46a917f974d85d55a2a456bd4e;p=packages%2Ftmda.git diff --git a/tmda.spec b/tmda.spec index a63ab86..ad03b53 100644 --- a/tmda.spec +++ b/tmda.spec @@ -1,17 +1,17 @@ -%include /usr/lib/rpm/macros.python +%include /usr/lib/rpm/macros.python Summary: Tagged Message Delivery Agent Summary(pl): Agent (MDA) dostarczaj±cy oznaczone wiadomo¶ci Name: tmda -Version: 0.81 +Version: 1.1.4 Release: 1 License: GPL Group: Networking/Daemons -Source0: http://tmda.net/releases/%{name}-%{version}.tgz -# Source0-md5: 25c8d48d96eafef914f9ca1d3c6c965d +Source0: http://tmda.sf.net/releases/unstable/%{name}-%{version}.tgz +# Source0-md5: 58c79099ea0cd4bfc48f85de5502a2f2 URL: http://tmda.sourceforge.net/ -BuildRequires: python-devel >= 2.2.1 +BuildRequires: python-devel >= 2.3.3 BuildRequires: rpm-pythonprov -%pyrequires_eq python +%pyrequires_eq python BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -37,29 +37,27 @@ python ./compileall %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/tmda,%{py_libdir}/TMDA} -install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/htdocs +install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/tmda,%{py_libdir}/site-packages/TMDA,%{py_libdir}/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_libdir}/site-packages/TMDA +install TMDA/pythonlib/email/*.{py,pyc} $RPM_BUILD_ROOT%{py_libdir}/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} -cp -f htdocs/{*.html,README} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/htdocs -cp -f ChangeLog CRYPTO INSTALL README THANKS UPGRADE contrib/sample* \ - $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} -# compress %%doc manually; automation does not work in this case -gzip -9 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{ChangeLog,CRYPTO,INSTALL,README,THANKS,UPGRADE,htdocs/README} +rm -f htdocs/{ChangeLog,Makefile,*.h,*.ht,*.py*,*.tpl} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc %{_docdir}/%{name}-%{version} +%doc ChangeLog CRYPTO README THANKS UPGRADE contrib htdocs %attr(755,root,root) %{_bindir}/* -%dir %{py_libdir}/TMDA -%{py_libdir}/TMDA/*.py[co] +%dir %{py_libdir}/site-packages/TMDA +%{py_libdir}/site-packages/TMDA/*.py[co] +%dir %{py_libdir}/site-packages/TMDA/pythonlib/email +%{py_libdir}/site-packages/TMDA/pythonlib/email/*.py[co] %{_datadir}/tmda