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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 688440 - (hide 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 eandry 60802 %define real_name PyYAML
2    
3     Name: python-yaml
4 fwang 125322 Version: 3.10
5 umeabot 688440 Release: %mkrel 7
6 eandry 60802 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 philippem 474156 BuildRequires: pkgconfig(python)
14     BuildRequires: python-setuptools
15     BuildRequires: yaml-devel
16 eandry 60802
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 philippem 474156 %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 eandry 60802 %prep
38     %setup -q -n %{real_name}-%{version}
39 philippem 474156 chmod a-x examples/yaml-highlight/yaml_hl.py
40     cp -a . %{py3dir}
41 eandry 60802
42     %build
43 philippem 474156 CFLAGS="%{optflags}" %{__python} setup.py build
44 eandry 60802
45 philippem 474156 pushd %{py3dir}
46     CFLAGS="%{optflags}" %{__python3} setup.py build
47     popd
48    
49 eandry 60802 %install
50     %{__python} setup.py install -O2 --skip-build --root=%{buildroot} --prefix=%{_prefix}
51 philippem 474156 pushd %{py3dir}
52     %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
53     popd
54 eandry 60802
55     %files
56     %doc LICENSE README examples
57     %{python_sitearch}/yaml
58     %{python_sitearch}/*.so
59 fwang 125322 %{python_sitearch}/*.egg-info
60 eandry 60802
61 philippem 474156 %files -n python3-yaml
62     %doc LICENSE README examples
63     %{python3_sitearch}/*
64    

  ViewVC Help
Powered by ViewVC 1.1.28