[28379] in Source-Commits
python-afs commit [redhat]: Packaging for RedHat systems
daemon@ATHENA.MIT.EDU (Alexander Chernyakhovsky)
Wed Aug 6 23:44:27 2014
Date: Wed, 6 Aug 2014 23:44:20 -0400
From: Alexander Chernyakhovsky <achernya@MIT.EDU>
Message-Id: <201408070344.s773iK7C009825@drugstore.mit.edu>
To: source-commits@MIT.EDU
https://github.com/mit-athena/python-afs/commits/6e94655e2fd5c72ade106620d403df122d96b4ad
commit 6e94655e2fd5c72ade106620d403df122d96b4ad
Author: Ceres Lee <cereslee@mit.edu>
Date: Wed Aug 6 23:37:10 2014 -0400
Packaging for RedHat systems
redhat/python-afs.spec | 42 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/redhat/python-afs.spec b/redhat/python-afs.spec
new file mode 100644
index 0000000..35749c4
--- /dev/null
+++ b/redhat/python-afs.spec
@@ -0,0 +1,42 @@
+Name: python-afs
+Version: 0.2.2
+Release: 1%{?dist}
+Summary: AFS bindings for Python
+
+Group: Development/Languages
+License: GPLv2
+URL: https://github.com/mit-athena/python-afs/
+Source0: https://debathena.mit.edu/redist/%{name}-%{version}.tar.gz
+
+BuildRequires: Cython
+BuildRequires: krb5-devel
+BuildRequires: openafs-authlibs-devel
+BuildRequires: openafs-devel
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+
+%description
+PyAFS provides a set of Python bindings for the AFS distributed filesystem.
+
+%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 Ceres Lee <cereslee@@mit.edu> - 0.2.2-1
+- Initial packaging.