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