821580
%bcond_without python3
821580
%global debug_package %{nil}
821580
821580
Name: python-markupsafe
821580
Version: 0.23
807695
Release: 19%{?dist}
821580
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
821580
821580
Group: Development/Languages
821580
License: BSD
821580
URL: http://pypi.python.org/pypi/MarkupSafe
821580
Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
821580
821580
BuildRequires: python2-devel python2-setuptools
821580
%if %{with python3}
821580
BuildRequires: python3-devel python3-setuptools
821580
%endif
821580
821580
%description
821580
A library for safe markup escaping.
821580
821580
%package -n python2-markupsafe
821580
Summary: Implements a XML/HTML/XHTML Markup safe string for Python 2
821580
Group: Development/Languages
821580
%{?python_provide:%python_provide python2-markupsafe}
821580
821580
%description -n python2-markupsafe
821580
A library for safe markup escaping.
821580
821580
%if %{with python3}
821580
%package -n python3-markupsafe
821580
Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3
821580
Group: Development/Languages
821580
%{?python_provide:%python_provide python3-markupsafe}
821580
821580
%description -n python3-markupsafe
821580
A library for safe markup escaping.
821580
%endif
821580
821580
%prep
821580
%setup -q -n MarkupSafe-%{version}
821580
821580
%build
821580
%py2_build
821580
%if %{with python3}
821580
%py3_build
821580
%endif
821580
821580
%install
821580
%py2_install
821580
# C code errantly gets installed
821580
rm $RPM_BUILD_ROOT/%{python2_sitearch}/markupsafe/*.c
821580
821580
%if %{with python3}
821580
%py3_install
821580
# C code errantly gets installed
821580
rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
821580
%endif
821580
821580
821580
%check
821580
%{__python2} setup.py test
821580
%if %{with python3}
821580
%{__python3} setup.py test
821580
%endif
821580
821580
821580
%files -n python2-markupsafe
821580
%license LICENSE
821580
%doc AUTHORS README.rst
821580
%{python2_sitearch}/*
821580
821580
%if %{with python3}
821580
%files -n python3-markupsafe
821580
%doc AUTHORS LICENSE README.rst
821580
%{python3_sitearch}/*
821580
%endif
821580
821580
%changelog
51f05e
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 0.23-19
51f05e
- Bumping due to problems with modular RPM upgrade path
51f05e
- Resolves: rhbz#1695587
807695
821580
* Tue Jul 31 2018 Lumír Balhar <lbalhar@redhat.com> - 0.23-18
821580
- Make possible to disable python3 subpackage 
821580
- Disable debugsource package
821580
821580
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-17
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
821580
821580
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-16
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
821580
821580
* Fri Jul 28 2017 Troy Dawson <tdawson@redhat.com> - 0.23-15
821580
- Clean up spec file
821580
821580
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-14
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
821580
821580
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-13
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
821580
821580
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.23-12
821580
- Rebuild for Python 3.6
821580
821580
* Thu Sep 22 2016 Orion Poplawski <orion@cora.nwra.com> - 0.23-11
821580
- Ship python2-markupsafe
821580
- Modernize spec
821580
821580
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-10
821580
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
821580
821580
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-9
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
821580
821580
* Mon Oct 12 2015 Robert Kuska <rkuska@redhat.com> - 0.23-8
821580
- Rebuilt for Python3.5 rebuild
821580
821580
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-7
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
821580
821580
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-6
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
821580
821580
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.23-5
821580
- Replace the python-setuptools-devel BR with python-setuptools
821580
821580
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-4
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
821580
821580
* Sat May 10 2014 Orion Poplawski <orion@cora.nwra.com> - 0.23-3
821580
- Really rebuild for Python 3.4
821580
821580
* Fri May  9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.23-2
821580
- Rebuild for Python 3.4
821580
821580
* Fri May  9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.23-1
821580
- Update to 0.23
821580
821580
* Fri Oct 11 2013 Luke Macken <lmacken@redhat.com> - 0.18-1
821580
- Update to 0.18 (#678537)
821580
821580
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-9
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
821580
821580
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-8
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
821580
821580
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.11-7
821580
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
821580
821580
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 0.11-6
821580
- remove rhel logic from with_python3 conditional
821580
821580
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
821580
821580
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
821580
821580
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
821580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
821580
821580
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 0.11-2
821580
- rebuild for newer python3
821580
821580
* Thu Sep 30 2010 Luke Macken <lmacken@redhat.com> - 0.11-1
821580
- Update to 0.11
821580
821580
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9.2-5
821580
- rebuild with python3.2
821580
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
821580
821580
* Fri Jul 23 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.2-4
821580
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
821580
821580
* Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-3
821580
- Fix missing setuptools BuildRequires.
821580
821580
* Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-2
821580
- Fixed sitearch and python3 definitions to work better with older Fedora/RHEL.
821580
821580
* Wed Jun 23 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-1
821580
- Initial version.