PyYAML-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. Name: PyYAML
  2. Version: 6.0
  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: 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. Group: programming
  29. Provides: python3-yaml = %{version}-%{release}
  30. Provides: python3-yaml%{?_isa} = %{version}-%{release}
  31. %{?python_provide:%python_provide python3-pyyaml}
  32. # Remove before F31
  33. Provides: python3-PyYAML = %{version}-%{release}
  34. Provides: python3-PyYAML%{?_isa} = %{version}-%{release}
  35. %description -n python3-pyyaml
  36. YAML is a data serialization format designed for human readability and
  37. interaction with scripting languages. PyYAML is a YAML parser and
  38. emitter for Python.
  39. PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
  40. support, capable extension API, and sensible error messages. PyYAML
  41. supports standard YAML tags and provides Python-specific tags that allow
  42. to represent an arbitrary Python object.
  43. PyYAML is applicable for a broad range of tasks from complex
  44. configuration files to object serialization and persistance.
  45. %debug_package
  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. %set_build_flags
  53. %pip3_build_wheel
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. %pip3_install_wheel
  57. %if 0
  58. %check
  59. %{__python3} setup.py test
  60. %endif
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %files -n python3-pyyaml
  64. %license LICENSE
  65. %doc CHANGES README examples
  66. %{python3_sitearch}/*
  67. %changelog
  68. * Fri Oct 28 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-1
  69. - new upstream release.
  70. - dropped python2 support.
  71. * Mon Aug 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.1-1
  72. - new upstream release.
  73. * Wed Oct 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.2-1
  74. - new upstream release.
  75. - added python3 support.
  76. * Mon Mar 12 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.10-3
  77. - rebuilt with libyaml-0.1.4
  78. * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10-2
  79. - rebuild with python-2.7.2
  80. * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.10-1
  81. - new upstream release
  82. * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 3.09-1
  83. - new upstream release
  84. * Thu Jun 11 2009 Shu KONNO <owa@bg.wakwak.com> 3.08-2
  85. - s/python_sitelib/python_sitearch/
  86. * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.08-1
  87. - initial build for Vine Linux
  88. * Tue Mar 3 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-4
  89. - Correction, change libyaml to libyaml-devel in BuildRequires
  90. * Mon Mar 2 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-3
  91. - Add libyaml to BuildRequires
  92. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.08-2
  93. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  94. * Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-1
  95. - New upstream release
  96. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.06-2
  97. - Rebuild for Python 2.6
  98. * Fri Oct 24 2008 John Eckersberg <jeckersb@redhat.com> - 3.06-1
  99. - New upstream release
  100. * Wed Jan 02 2008 John Eckersberg <jeckersb@redhat.com> - 3.05-2
  101. - Remove explicit dependency on python >= 2.3
  102. - Remove executable on example script in docs
  103. * Mon Dec 17 2007 John Eckersberg <jeckersb@redhat.com> - 3.05-1
  104. - Initial packaging for Fedora