Rev | Line | |
---|
[2092] | 1 | Name: python-afs |
---|
| 2 | Version: 0.1.1 |
---|
| 3 | %define commit_hash dceee3da |
---|
| 4 | %define tag_hash fb29c26 |
---|
| 5 | Release: 0.%{scriptsversion}%{?dist} |
---|
| 6 | Summary: Python access to AFS library |
---|
| 7 | |
---|
| 8 | Group: Development/Languages |
---|
| 9 | License: GPL |
---|
| 10 | URL: http://github.com/ebroder/pyafs |
---|
| 11 | Source0: http://github.com/ebroder/pyafs/tarball/%{version}/ebroder-%{name}-%{version}-0-g%{commit_hash}.tar.gz |
---|
| 12 | Patch1: https://github.com/ebroder/pyafs/commit/94a09d55edd7d3c1b53424ee1a39245db751c5e9.patch |
---|
| 13 | Patch2: https://github.com/ebroder/pyafs/commit/d6425bd9fa52034a2a62ed95c8fec8cbcfd2707d.patch |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 15 | |
---|
| 16 | BuildRequires: python-devel, python-setuptools, Cython, openafs-devel, openafs-authlibs-devel, krb5-devel |
---|
| 17 | |
---|
| 18 | %description |
---|
| 19 | Get at AFS from Python. |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | %prep |
---|
| 23 | %setup -q -n ebroder-pyafs-%{tag_hash} |
---|
| 24 | %patch1 -p1 |
---|
| 25 | %patch2 -p1 |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="-I%{_includedir}/et" %{__python} setup.py build |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %install |
---|
| 33 | rm -rf $RPM_BUILD_ROOT |
---|
| 34 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %clean |
---|
| 38 | rm -rf $RPM_BUILD_ROOT |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | %files |
---|
| 42 | %defattr(-,root,root,-) |
---|
| 43 | %{python_sitearch}/* |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %changelog |
---|
| 47 | * Thu Dec 15 2011 Alex Dehnert <adehnert@mit.edu> - 0.1.1 |
---|
| 48 | - Initial RPM release |
---|
| 49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.