source: branches/fc19-dev/server/fedora/specs/python-afs.spec @ 2478

Last change on this file since 2478 was 2092, checked in by adehnert, 13 years ago
Package Evan Broder's PyAFS
File size: 1.3 KB
Line 
1Name:           python-afs
2Version:        0.1.1
3%define commit_hash dceee3da
4%define tag_hash fb29c26
5Release:        0.%{scriptsversion}%{?dist}
6Summary:        Python access to AFS library
7
8Group:          Development/Languages
9License:        GPL
10URL:            http://github.com/ebroder/pyafs
11Source0:        http://github.com/ebroder/pyafs/tarball/%{version}/ebroder-%{name}-%{version}-0-g%{commit_hash}.tar.gz
12Patch1:         https://github.com/ebroder/pyafs/commit/94a09d55edd7d3c1b53424ee1a39245db751c5e9.patch
13Patch2:         https://github.com/ebroder/pyafs/commit/d6425bd9fa52034a2a62ed95c8fec8cbcfd2707d.patch
14BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15
16BuildRequires:  python-devel, python-setuptools, Cython, openafs-devel, openafs-authlibs-devel, krb5-devel
17
18%description
19Get 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
29CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="-I%{_includedir}/et" %{__python} setup.py build
30
31
32%install
33rm -rf $RPM_BUILD_ROOT
34%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
35
36 
37%clean
38rm -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.