%define __python python2.6 %define pythonbase python Summary: Python DKIM library Name: %{pythonbase}-pydkim Version: 0.5.4 Release: 2 Source0: http://hewgill.com/pydkim/pydkim-%{version}.tar.bz2 Patch: pydkim.patch License: BSD-like Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Greg Hewgill Packager: Stuart D. Gathman Url: http://hewgill.com/pydkim/ BuildRequires: %{pythonbase}-devel Requires: %{pythonbase} %{pythonbase}-pydns %description Python DKIM library %prep %setup -n pydkim-%{version} %patch -b .sdg %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES sed -i -e'/man1/d' INSTALLED_FILES #grep '\.pyc$' INSTALLED_FILES | sed -e's/c$/o/' >>INSTALLED_FILES mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 cp -p man/*.1 ${RPM_BUILD_ROOT}%{_mandir}/man1 %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root) %doc ChangeLog README LICENSE TODO %{_mandir}/man1/dkimsign.1.gz %{_mandir}/man1/dkimverify.1.gz #/usr/lib/%{__python}/site-packages/dkim/__main__.pyo %changelog * Tue Jul 9 2013 Stuart Gathman 0.5.4-2 - Fix x= with no t= bug * Tue Jul 9 2013 Stuart Gathman 0.5.4-1 - Fix FWS with no NL bug, add test case * Fri Jan 25 2013 Stuart Gathman 0.5.3-1 - Raise KeyFormatError when public key less than 1024 bits by default - Fix TAB in FWS bug * Sat Apr 21 2012 Stuart Gathman 0.5.2-1 - Fix sha1 hash, Bug #969206 - Fix NoAnswer exception using dnspython - Fix typos reporting ValidationError and DKIMException - Change default canonicalization to relaxed/simple to work around Bug #939128 * Fri Feb 03 2012 Stuart Gathman 0.5.1-1 - performance patch from https://launchpad.net/~petri Petri Lehtinen - save parsed signatures in DKIM object - do not require DNS/dnspython for signing * Wed Oct 26 2011 Stuart Gathman 0.5-1 - raise KeyFormatError when missing required key parts in DNS - test fail on extra headers in message - test case for handling of multiple from - do not sign all headers by default - option to verify signatures other than first * Wed Jun 15 2011 Stuart Gathman 0.4.1-1 - fix except clauses for python3 - Add test case for - add back dkim.Relaxed and dkim.Simple constants * Tue Jun 14 2011 Stuart Gathman 0.4-1 - class DKIM API * Mon Mar 07 2011 Stuart Gathman 0.3-2 - man pages * Mon Mar 07 2011 Stuart Gathman 0.3-1 - Python 2.6 - Use pydns