1 | Name: PyYAML |
---|
2 | Version: 5.1.2 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: YAML parser and emitter for Python |
---|
5 | |
---|
6 | Vendor: Project Vine |
---|
7 | Distribution: Vine Linux |
---|
8 | |
---|
9 | Group: Development/Libraries |
---|
10 | License: MIT |
---|
11 | URL: https://github.com/yaml/pyyaml |
---|
12 | Source0: https://github.com/yaml/pyyaml/archive/%{name}-%{version}.tar.gz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
14 | |
---|
15 | BuildRequires: libyaml-devel |
---|
16 | BuildRequires: python-devel, python-setuptools, python-rpm-macros |
---|
17 | BuildRequires: python3-devel, python3-setuptools, python3-rpm-macros |
---|
18 | BuildRequires: python3-Cython |
---|
19 | |
---|
20 | %description |
---|
21 | YAML is a data serialization format designed for human readability and |
---|
22 | interaction with scripting languages. PyYAML is a YAML parser and |
---|
23 | emitter for Python. |
---|
24 | |
---|
25 | PyYAML features a complete YAML 1.1 parser, Unicode support, pickle |
---|
26 | support, capable extension API, and sensible error messages. PyYAML |
---|
27 | supports standard YAML tags and provides Python-specific tags that allow |
---|
28 | to represent an arbitrary Python object. |
---|
29 | |
---|
30 | PyYAML is applicable for a broad range of tasks from complex |
---|
31 | configuration files to object serialization and persistance. |
---|
32 | |
---|
33 | |
---|
34 | %package -n python3-pyyaml |
---|
35 | Summary: %summary |
---|
36 | Provides: python3-yaml = %{version}-%{release} |
---|
37 | Provides: python3-yaml%{?_isa} = %{version}-%{release} |
---|
38 | %{?python_provide:%python_provide python3-pyyaml} |
---|
39 | # Remove before F31 |
---|
40 | Provides: python3-PyYAML = %{version}-%{release} |
---|
41 | Provides: python3-PyYAML%{?_isa} = %{version}-%{release} |
---|
42 | |
---|
43 | %description -n python3-pyyaml |
---|
44 | YAML is a data serialization format designed for human readability and |
---|
45 | interaction with scripting languages. PyYAML is a YAML parser and |
---|
46 | emitter for Python. |
---|
47 | |
---|
48 | PyYAML features a complete YAML 1.1 parser, Unicode support, pickle |
---|
49 | support, capable extension API, and sensible error messages. PyYAML |
---|
50 | supports standard YAML tags and provides Python-specific tags that allow |
---|
51 | to represent an arbitrary Python object. |
---|
52 | |
---|
53 | PyYAML is applicable for a broad range of tasks from complex |
---|
54 | configuration files to object serialization and persistance. |
---|
55 | |
---|
56 | |
---|
57 | %prep |
---|
58 | %setup -q -n %{name}-%{version} |
---|
59 | chmod a-x examples/yaml-highlight/yaml_hl.py |
---|
60 | |
---|
61 | # remove pre-generated file |
---|
62 | rm -rf ext/_yaml.c |
---|
63 | |
---|
64 | |
---|
65 | %build |
---|
66 | %py3_build |
---|
67 | |
---|
68 | # py_build reuses Cython output from py3_build |
---|
69 | %py_build |
---|
70 | |
---|
71 | |
---|
72 | %install |
---|
73 | rm -rf $RPM_BUILD_ROOT |
---|
74 | %py_install |
---|
75 | %py3_install |
---|
76 | |
---|
77 | |
---|
78 | %check |
---|
79 | %{__python} setup.py test |
---|
80 | %{__python3} setup.py test |
---|
81 | |
---|
82 | |
---|
83 | %clean |
---|
84 | rm -rf $RPM_BUILD_ROOT |
---|
85 | |
---|
86 | |
---|
87 | %files |
---|
88 | %defattr(-,root,root,-) |
---|
89 | %license LICENSE |
---|
90 | %doc CHANGES README examples |
---|
91 | %{python_sitearch}/* |
---|
92 | |
---|
93 | %files -n python3-pyyaml |
---|
94 | %license LICENSE |
---|
95 | %doc CHANGES README examples |
---|
96 | %{python3_sitearch}/* |
---|
97 | |
---|
98 | |
---|
99 | %changelog |
---|
100 | * Wed Oct 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.2-1 |
---|
101 | - new upstream release. |
---|
102 | - added python3 support. |
---|
103 | |
---|
104 | * Mon Mar 12 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.10-3 |
---|
105 | - rebuilt with libyaml-0.1.4 |
---|
106 | |
---|
107 | * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10-2 |
---|
108 | - rebuild with python-2.7.2 |
---|
109 | |
---|
110 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.10-1 |
---|
111 | - new upstream release |
---|
112 | |
---|
113 | * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.09-1 |
---|
114 | - new upstream release |
---|
115 | |
---|
116 | * Thu Jun 11 2009 Shu KONNO <owa@bg.wakwak.com> 3.08-2 |
---|
117 | - s/python_sitelib/python_sitearch/ |
---|
118 | |
---|
119 | * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.08-1 |
---|
120 | - initial build for Vine Linux |
---|
121 | |
---|
122 | * Tue Mar 3 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-4 |
---|
123 | - Correction, change libyaml to libyaml-devel in BuildRequires |
---|
124 | |
---|
125 | * Mon Mar 2 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-3 |
---|
126 | - Add libyaml to BuildRequires |
---|
127 | |
---|
128 | * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.08-2 |
---|
129 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
130 | |
---|
131 | * Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-1 |
---|
132 | - New upstream release |
---|
133 | |
---|
134 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.06-2 |
---|
135 | - Rebuild for Python 2.6 |
---|
136 | |
---|
137 | * Fri Oct 24 2008 John Eckersberg <jeckersb@redhat.com> - 3.06-1 |
---|
138 | - New upstream release |
---|
139 | |
---|
140 | * Wed Jan 02 2008 John Eckersberg <jeckersb@redhat.com> - 3.05-2 |
---|
141 | - Remove explicit dependency on python >= 2.3 |
---|
142 | - Remove executable on example script in docs |
---|
143 | |
---|
144 | * Mon Dec 17 2007 John Eckersberg <jeckersb@redhat.com> - 3.05-1 |
---|
145 | - Initial packaging for Fedora |
---|