[28377] in Source-Commits

home help back first fref pref prev next nref lref last post

python-hesiod commit [redhat]: Packaging for RedHat systems

daemon@ATHENA.MIT.EDU (Alexander Chernyakhovsky)
Wed Aug 6 23:35:59 2014

Date: Wed, 6 Aug 2014 23:35:52 -0400
From: Alexander Chernyakhovsky <achernya@MIT.EDU>
Message-Id: <201408070335.s773ZqCx031820@drugstore.mit.edu>
To: source-commits@MIT.EDU

https://github.com/mit-athena/python-hesiod/commit/772125dd53a5c8a9e8ac6eb88d23e2548b1fc8e1
commit 772125dd53a5c8a9e8ac6eb88d23e2548b1fc8e1
Author: Alexander Chernyakhovsky <achernya@mit.edu>
Date:   Wed Aug 6 21:14:54 2014 -0400

    Packaging for RedHat systems

 redhat/python-hesiod.spec |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/redhat/python-hesiod.spec b/redhat/python-hesiod.spec
new file mode 100644
index 0000000..ab47ef6
--- /dev/null
+++ b/redhat/python-hesiod.spec
@@ -0,0 +1,41 @@
+Name:		python-hesiod
+Version:	0.2.12
+Release:	1%{?dist}
+Summary:	Python bindings for Hesiod
+
+Group:		Development/Languages
+License:	MIT
+URL:		https://github.com/mit-athena/python-hesiod/
+Source0:	https://debathena.mit.edu/redist/%{name}-%{version}.tar.gz
+
+BuildRequires:	Pyrex
+BuildRequires:	hesiod-devel
+BuildRequires:	python-setuptools
+BuildRequires:	python2-devel
+
+%description
+PyHesiod provides a set of Python bindings for Hesiod, the Project
+Athena service name resolution protocol used at MIT and elsewhere.
+
+%prep
+%setup -q
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="-I%{_includedir}/et" %{__python2} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc
+%{python_sitearch}/*
+
+
+%changelog
+* Wed Aug  6 2014 Alex Chernyakhovsky <achernya@mit.edu> - 0.2.12-1
+- Initial packaging.

home help back first fref pref prev next nref lref last post