python-markupsafe-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. %global with_python3 1
  2. Summary: Implements a XML/HTML/XHTML Markup safe string for Python
  3. Name: python-markupsafe
  4. Version: 2.1.1
  5. Release: 1%{?_dist_release}
  6. Group: programming
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: BSD
  10. URL: https://pypi.python.org/pypi/MarkupSafe
  11. Source0: https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13. BuildRequires: python-rpm-macros
  14. BuildRequires: python-devel python-setuptools python2-rpm-macros
  15. %if 0%{?with_python3}
  16. BuildRequires: python3-devel python3-setuptools python3-rpm-macros
  17. %endif # if with_python3
  18. %description
  19. A library for safe markup escaping.
  20. %if 0%{?with_python3}
  21. %package -n python3-markupsafe
  22. Summary: Implements a XML/HTML/XHTML Markup safe string for Python
  23. Group: programming
  24. %description -n python3-markupsafe
  25. A library for safe markup escaping.
  26. %endif #if with_python3
  27. %debug_package
  28. %prep
  29. %setup -q -n MarkupSafe-%{version}
  30. %build
  31. export CFLAGS="$RPM_OPT_FLAGS"
  32. %if 0%{?with_python3}
  33. %pip3_build_wheel
  34. %endif # with_python3
  35. %install
  36. %__rm -rf $RPM_BUILD_ROOT
  37. # C code errantly gets installed
  38. %if 0%{?with_python3}
  39. %pip3_install_wheel
  40. %__rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
  41. %endif # with_python3
  42. %check
  43. %if 0%{?with_python3}
  44. %{__python3} setup.py test
  45. %endif # with_python3
  46. %clean
  47. %__rm -rf $RPM_BUILD_ROOT
  48. %if 0%{?with_python3}
  49. %files -n python3-markupsafe
  50. %defattr(-,root,root,-)
  51. %license LICENSE*
  52. %doc CHANGES* README*
  53. %{python3_sitearch}/*
  54. %endif # with_python3
  55. %changelog
  56. * Fri Oct 28 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.1-1
  57. - new upstream release.
  58. - dropped python2 support.
  59. * Thu Oct 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.1-2
  60. - rebuilt with python3.8.
  61. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.1-1
  62. - new upstream release.
  63. * Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1
  64. - new upstream release.
  65. - added python3 support.
  66. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12-3
  67. - rebuild with VineSeed environment
  68. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12-2
  69. - rebuild with python-2.7.2
  70. * Thu May 5 2011 IWAI, Masaharu <iwai@alib.jp> 0.12-1
  71. - new upstream release
  72. - add Vendor and Distribution tags
  73. * Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.9.2-1
  74. - initial build based on Fedora development
  75. * Fri Jul 23 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.2-4
  76. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  77. * Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-3
  78. - Fix missing setuptools BuildRequires.
  79. * Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-2
  80. - Fixed sitearch and python3 definitions to work better with older Fedora/RHEL.
  81. * Wed Jun 23 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-1
  82. - Initial version.