/[packages]/cauldron/python-yaml/current/SPECS/python-yaml.spec
ViewVC logotype

Contents of /cauldron/python-yaml/current/SPECS/python-yaml.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 688440 - (show annotations) (download)
Tue Sep 16 20:21:18 2014 UTC (7 years ago) by umeabot
File size: 1712 byte(s)
Mageia 5 Mass Rebuild
1 %define real_name PyYAML
2
3 Name: python-yaml
4 Version: 3.10
5 Release: %mkrel 7
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 BuildRequires: pkgconfig(python)
14 BuildRequires: python-setuptools
15 BuildRequires: yaml-devel
16
17 %description
18 PyYAML is a YAML parser and emitter for the Python programming
19 language.
20
21 YAML is a data serialization format designed for human readability
22 and interaction with scripting languages.
23
24 %package -n python3-yaml
25 Summary: YAML parser and emitter for Python
26 Group: Development/Python
27 BuildRequires: pkgconfig(python3)
28 BuildRequires: python3-setuptools
29
30 %description -n python3-yaml
31 PyYAML is a YAML parser and emitter for the Python programming
32 language.
33
34 YAML is a data serialization format designed for human readability
35 and interaction with scripting languages.
36
37 %prep
38 %setup -q -n %{real_name}-%{version}
39 chmod a-x examples/yaml-highlight/yaml_hl.py
40 cp -a . %{py3dir}
41
42 %build
43 CFLAGS="%{optflags}" %{__python} setup.py build
44
45 pushd %{py3dir}
46 CFLAGS="%{optflags}" %{__python3} setup.py build
47 popd
48
49 %install
50 %{__python} setup.py install -O2 --skip-build --root=%{buildroot} --prefix=%{_prefix}
51 pushd %{py3dir}
52 %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
53 popd
54
55 %files
56 %doc LICENSE README examples
57 %{python_sitearch}/yaml
58 %{python_sitearch}/*.so
59 %{python_sitearch}/*.egg-info
60
61 %files -n python3-yaml
62 %doc LICENSE README examples
63 %{python3_sitearch}/*
64

  ViewVC Help
Powered by ViewVC 1.1.28