diff --git a/packaging/pydkim.spec b/packaging/pydkim.spec new file mode 100644 index 0000000..668fed3 --- /dev/null +++ b/packaging/pydkim.spec @@ -0,0 +1,54 @@ +%define __python python2.6 +%define pythonbase python26 + +Summary: Python DKIM library +Name: %{pythonbase}-pydkim +Version: 0.4 +Release: 1 +Source0: http://hewgill.com/pydkim/pydkim-%{version}.tar.gz +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} + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES +sed -i -e'/man1/d' 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 + +%changelog +* 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 +