Last change
on this file since 2066 was
1693,
checked in by ezyang, 14 years ago
|
Merge Fedora 13 development back to trunk.
|
File size:
1.3 KB
|
Line | |
---|
1 | %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} |
---|
2 | |
---|
3 | Name: python-zephyr |
---|
4 | Version: 0.2.0 |
---|
5 | %define commit_hash c9a7f05 |
---|
6 | %define tag_hash ed65206 |
---|
7 | Release: 0.%{scriptsversion}%{?dist} |
---|
8 | Summary: Python access to zephyr library |
---|
9 | |
---|
10 | Group: Development/Languages |
---|
11 | License: MIT |
---|
12 | URL: http://github.com/ebroder/python-zephyr |
---|
13 | Source0: http://github.com/ebroder/python-zephyr/tarball/%{version}/ebroder-%{name}-%{version}-0-g%{commit_hash}.tar.gz |
---|
14 | Patch1: http://github.com/ebroder/python-zephyr/commit/944b3c3a2a2476758268d4b75b65c2ec38fa46e7.patch |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
16 | |
---|
17 | BuildRequires: python-devel, python-setuptools, Pyrex, zephyr-devel, libcom_err-devel |
---|
18 | |
---|
19 | %description |
---|
20 | Get at the zephyr library from Python. Woo. |
---|
21 | |
---|
22 | |
---|
23 | %prep |
---|
24 | %setup -q -n ebroder-%{name}-%{tag_hash} |
---|
25 | %patch1 -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 | %doc |
---|
44 | %{python_sitearch}/* |
---|
45 | |
---|
46 | |
---|
47 | %changelog |
---|
48 | * Sun Sep 19 2010 Anders Kaseorg <andersk@mit.edu> - 0.2.0-0 |
---|
49 | - Initial RPM release |
---|
50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.