[521] | 1 | # %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 3 | |
---|
| 4 | Name: PyYAML |
---|
[5526] | 5 | Version: 3.10 |
---|
[5901] | 6 | Release: 3%{?_dist_release} |
---|
[521] | 7 | Summary: YAML parser and emitter for Python |
---|
| 8 | |
---|
| 9 | Group: Development/Libraries |
---|
| 10 | License: MIT |
---|
| 11 | URL: http://pyyaml.org/ |
---|
| 12 | Source0: http://pyyaml.org/download/pyyaml/%{name}-%{version}.tar.gz |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 14 | |
---|
| 15 | BuildRequires: python-devel, python-setuptools, libyaml-devel |
---|
| 16 | |
---|
| 17 | %description |
---|
| 18 | YAML is a data serialization format designed for human readability and |
---|
| 19 | interaction with scripting languages. PyYAML is a YAML parser and |
---|
| 20 | emitter for Python. |
---|
| 21 | |
---|
| 22 | PyYAML features a complete YAML 1.1 parser, Unicode support, pickle |
---|
| 23 | support, capable extension API, and sensible error messages. PyYAML |
---|
| 24 | supports standard YAML tags and provides Python-specific tags that allow |
---|
| 25 | to represent an arbitrary Python object. |
---|
| 26 | |
---|
| 27 | PyYAML is applicable for a broad range of tasks from complex |
---|
| 28 | configuration files to object serialization and persistance. |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q -n %{name}-%{version} |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | %build |
---|
| 35 | %{__python} setup.py build |
---|
| 36 | chmod a-x examples/yaml-highlight/yaml_hl.py |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | rm -rf $RPM_BUILD_ROOT |
---|
| 41 | mkdir -p $RPM_BUILD_ROOT/%{_bindir} |
---|
| 42 | %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | %clean |
---|
| 46 | rm -rf $RPM_BUILD_ROOT |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %files |
---|
| 50 | %defattr(-,root,root,-) |
---|
| 51 | %doc PKG-INFO README LICENSE examples |
---|
| 52 | # %{python_sitelib}/* |
---|
| 53 | %{python_sitearch}/* |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %changelog |
---|
[5901] | 57 | * Mon Mar 12 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.10-3 |
---|
| 58 | - rebuilt with libyaml-0.1.4 |
---|
| 59 | |
---|
[5701] | 60 | * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10-2 |
---|
| 61 | - rebuild with python-2.7.2 |
---|
| 62 | |
---|
[5526] | 63 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.10-1 |
---|
| 64 | - new upstream release |
---|
| 65 | |
---|
[521] | 66 | * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.09-1 |
---|
| 67 | - new upstream release |
---|
| 68 | |
---|
| 69 | * Thu Jun 11 2009 Shu KONNO <owa@bg.wakwak.com> 3.08-2 |
---|
| 70 | - s/python_sitelib/python_sitearch/ |
---|
| 71 | |
---|
| 72 | * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.08-1 |
---|
| 73 | - initial build for Vine Linux |
---|
| 74 | |
---|
| 75 | * Tue Mar 3 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-4 |
---|
| 76 | - Correction, change libyaml to libyaml-devel in BuildRequires |
---|
| 77 | |
---|
| 78 | * Mon Mar 2 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-3 |
---|
| 79 | - Add libyaml to BuildRequires |
---|
| 80 | |
---|
| 81 | * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.08-2 |
---|
| 82 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 83 | |
---|
| 84 | * Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-1 |
---|
| 85 | - New upstream release |
---|
| 86 | |
---|
| 87 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.06-2 |
---|
| 88 | - Rebuild for Python 2.6 |
---|
| 89 | |
---|
| 90 | * Fri Oct 24 2008 John Eckersberg <jeckersb@redhat.com> - 3.06-1 |
---|
| 91 | - New upstream release |
---|
| 92 | |
---|
| 93 | * Wed Jan 02 2008 John Eckersberg <jeckersb@redhat.com> - 3.05-2 |
---|
| 94 | - Remove explicit dependency on python >= 2.3 |
---|
| 95 | - Remove executable on example script in docs |
---|
| 96 | |
---|
| 97 | * Mon Dec 17 2007 John Eckersberg <jeckersb@redhat.com> - 3.05-1 |
---|
| 98 | - Initial packaging for Fedora |
---|