From ee76b886016bac5828afe8e56155f7fd124bb80b Mon Sep 17 00:00:00 2001 From: Sean Reifschneider Date: Sep 01 2006 02:24:13 +0000 Subject: auto-import python-pyspf-1.7-5 on branch devel from python-pyspf-1.7-5.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..bd6fc89 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pyspf-1.7.tar.gz diff --git a/python-pyspf.spec b/python-pyspf.spec new file mode 100644 index 0000000..ec40ae6 --- /dev/null +++ b/python-pyspf.spec @@ -0,0 +1,69 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-pyspf +Version: 1.7 +Release: 5%{?dist} +Summary: Python module and programs for SPF (Sender Policy Framework) + +Group: Development/Languages +License: Python Software Foundation License +URL: http://sourceforge.net/forum/forum.php?forum_id=596908 +Source0: http://easynews.dl.sourceforge.net/sourceforge/pymilter/pyspf-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-setuptools +Requires: python-pydns + +%description +SPF does email sender validation. For more information about SPF, +please see http://spf.pobox.com. + +This SPF client is intended to be installed on the border MTA, checking +if incoming SMTP clients are permitted to forward mail. The SPF check +should be done during the MAIL FROM:<...> command. + +%define namewithoutpythonprefix %(echo %{name} | sed 's/^python-//') +%prep +%setup -q -n %{namewithoutpythonprefix}-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +mv $RPM_BUILD_ROOT/usr/bin/type99.py $RPM_BUILD_ROOT/usr/bin/type99 +mv $RPM_BUILD_ROOT/usr/bin/spfquery.py $RPM_BUILD_ROOT/usr/bin/spfquery +rm -f $RPM_BUILD_ROOT/usr/bin/*.py{o,c} +sed -i -e 's|^#!/usr/bin/env python$||' $RPM_BUILD_ROOT/%{python_sitelib}/spf.py + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc CHANGELOG PKG-INFO README rfc4408-tests.yml test.yml +%{python_sitelib}/spf.py* +/usr/bin/type99 +/usr/bin/spfquery + +%changelog +* Thu Aug 31 2006 Sean Reifschneider 1.7-5 +- Changing SPEC file where it strips out the shebang line. + +* Thu Aug 31 2006 Sean Reifschneider 1.7-4 +- Adding -2 .spec file changelog entry. + +* Wed Aug 30 2006 Sean Reifschneider 1.7-3 +- Changes based on review from Kevin Fenzi. + +* Wed Aug 30 2006 Sean Reifschneider 1.7-3 +- Changes based on review from Kevin Fenzi. + +* Tue Aug 29 2006 Sean Reifschneider 1.7-1 +- Initial RPM spec file. diff --git a/sources b/sources index e69de29..3f7e2e2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +eabc78b67018efdfea68ae9b9d545e80 pyspf-1.7.tar.gz