PyYAML-vl.spec 4.2 KB

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