source: trunk/server/fedora/specs/python-zephyr.spec @ 1828

Last change on this file since 1828 was 1693, checked in by ezyang, 14 years ago
Merge Fedora 13 development back to trunk.
File size: 1.3 KB
RevLine 
[1666]1%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
2
3Name:           python-zephyr
4Version:        0.2.0
5%define commit_hash c9a7f05
6%define tag_hash ed65206
7Release:        0.%{scriptsversion}%{?dist}
8Summary:        Python access to zephyr library
9
10Group:          Development/Languages
11License:        MIT
12URL:            http://github.com/ebroder/python-zephyr
13Source0:        http://github.com/ebroder/python-zephyr/tarball/%{version}/ebroder-%{name}-%{version}-0-g%{commit_hash}.tar.gz
14Patch1:         http://github.com/ebroder/python-zephyr/commit/944b3c3a2a2476758268d4b75b65c2ec38fa46e7.patch
15BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16
17BuildRequires:  python-devel, python-setuptools, Pyrex, zephyr-devel, libcom_err-devel
18
19%description
20Get 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
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%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.