PyYAML-vl.spec 4.3 KB

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