[python-postman/el5] Initial import (#747050)
Brett Lentz
wakko666 at fedoraproject.org
Wed Oct 26 20:09:06 UTC 2011
commit 9e4adcbd24a7da50abf9ad7054233b0ebcdbc8d6
Author: Brett Lentz <blentz at redhat.com>
Date: Wed Oct 26 16:07:48 2011 -0400
Initial import (#747050)
.gitignore | 1 +
postman_fixdeps.patch | 10 ++++++
python-postman.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..122b63e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/postman-0.5.2.tar.gz
diff --git a/postman_fixdeps.patch b/postman_fixdeps.patch
new file mode 100644
index 0000000..fc78b45
--- /dev/null
+++ b/postman_fixdeps.patch
@@ -0,0 +1,10 @@
+--- setup.py.orig 2011-10-18 11:37:53.271002352 -0400
++++ setup.py 2011-10-18 11:38:01.130014863 -0400
+@@ -23,7 +23,6 @@
+ ],
+ },
+ install_requires = [
+- "argparse==1.2.1",
+ "boto==2.0"
+ ]
+ )
diff --git a/python-postman.spec b/python-postman.spec
new file mode 100644
index 0000000..83520c0
--- /dev/null
+++ b/python-postman.spec
@@ -0,0 +1,84 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%endif
+
+%global pkgname postman
+
+Name: python-%{pkgname}
+Version: 0.5.2
+Release: 3%{?dist}
+Summary: Postman is a command line utility for working with Amazon SES
+
+License: MIT
+URL: http://pypi.python.org/pypi/%{pkgname}
+Source0: http://pypi.python.org/packages/source/p/%{pkgname}/%{pkgname}-%{version}.tar.gz
+Patch0: postman_fixdeps.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-docutils
+BuildRequires: python-setuptools
+BuildRequires: python-boto
+Requires: python-boto
+
+# python 2.7 includes argparse natively.
+# everybody that's still stuck on 2.6 or below needs python-argparse.
+%if 0%{?fedora} < 15 || 0%{?rhel} < 7
+BuildRequires: python-argparse
+Requires: python-argparse
+%endif
+
+%description
+Postman is a command line utility for working with
+Amazon Simple Email Service (SES)
+
+A tutorial for using postman is available here:
+http://aws.amazon.com/articles/2405502737055650
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+# Remove the explicit argparse requirement for python 2.7+
+%if 0%{?fedora} > 14 || 0%{?rhel} > 7
+%patch0
+%endif
+
+find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
+
+%build
+%{__python} setup.py build
+rst2man README.rst %{pkgname}.5
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install --skip-build --root=%{buildroot}
+
+mkdir -p -m0755 %{buildroot}%{_mandir}/man5
+install -p -m 0644 %{pkgname}.5 %{buildroot}%{_mandir}/man5/
+
+%check
+%{__python} setup.py test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README.rst AUTHORS LICENSE
+%{_bindir}/postman
+%{python_sitelib}/*
+%{_mandir}/man5/*
+
+%changelog
+* Wed Oct 26 2011 Brett Lentz <blentz at redhat.com> - 0.5.2-3
+- fix some niggling rpmlint errors
+
+* Wed Oct 26 2011 Brett Lentz <blentz at redhat.com> - 0.5.2-2
+- removed python3 stuff for now.
+- updated description and summary to be more clear
+- install rst2man generated manpage
+
+* Tue Oct 18 2011 Brett Lentz <blentz at redhat.com> - 0.5.2-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..95ec9cd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c44e5c0fd9b0ca96f8b6f8053357b1e0 postman-0.5.2.tar.gz
More information about the scm-commits
mailing list