1 |
eandry |
60802 |
%define real_name PyYAML |
2 |
|
|
|
3 |
|
|
Name: python-yaml |
4 |
|
|
Version: 3.09 |
5 |
|
|
Release: %mkrel 3 |
6 |
|
|
Epoch: 0 |
7 |
|
|
Summary: Python package implementing YAML parser and emitter |
8 |
|
|
License: MIT |
9 |
|
|
Group: Development/Python |
10 |
|
|
URL: http://pyyaml.org/ |
11 |
|
|
Source0: http://pyyaml.org/download/pyyaml/PyYAML-%{version}.tar.gz |
12 |
|
|
Provides: %{real_name} = %{epoch}:%{version}-%{release} |
13 |
|
|
%py_requires -d |
14 |
|
|
BuildRequires: yaml-devel |
15 |
|
|
|
16 |
|
|
%description |
17 |
|
|
PyYAML is a YAML parser and emitter for the Python programming |
18 |
|
|
language. |
19 |
|
|
|
20 |
|
|
YAML is a data serialization format designed for human readability |
21 |
|
|
and interaction with scripting languages. |
22 |
|
|
|
23 |
|
|
%prep |
24 |
|
|
%setup -q -n %{real_name}-%{version} |
25 |
|
|
|
26 |
|
|
%build |
27 |
|
|
export CFLAGS="%{optflags}" |
28 |
|
|
%{__python} setup.py build |
29 |
|
|
|
30 |
|
|
%install |
31 |
|
|
%{__rm} -rf %{buildroot} |
32 |
|
|
%{__python} setup.py install -O2 --skip-build --root=%{buildroot} --prefix=%{_prefix} |
33 |
|
|
%{_bindir}/find %{buildroot} -name \*.egg-info | %{_bindir}/xargs %{__rm} |
34 |
|
|
|
35 |
|
|
%clean |
36 |
|
|
%{__rm} -rf %{buildroot} |
37 |
|
|
|
38 |
|
|
%files |
39 |
|
|
%defattr(-,root,root,0755) |
40 |
|
|
%doc LICENSE README examples |
41 |
|
|
%{python_sitearch}/yaml |
42 |
|
|
%{python_sitearch}/*.so |
43 |
|
|
|
44 |
|
|
|