|
|
|
@ -1,104 +1,92 @@
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: python-markupsafe
|
|
|
|
|
Version: 1.1.1
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Version: 0.23
|
|
|
|
|
Release: 19%{?dist}
|
|
|
|
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
|
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://pypi.org/project/MarkupSafe/
|
|
|
|
|
Source0: %pypi_source MarkupSafe
|
|
|
|
|
URL: http://pypi.python.org/pypi/MarkupSafe
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: python2-devel python2-setuptools
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A library for safe markup escaping.
|
|
|
|
|
|
|
|
|
|
%package -n python2-markupsafe
|
|
|
|
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python 2
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
%{?python_provide:%python_provide python2-markupsafe}
|
|
|
|
|
|
|
|
|
|
%description -n python2-markupsafe
|
|
|
|
|
A library for safe markup escaping.
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%package -n python3-markupsafe
|
|
|
|
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
%{?python_provide:%python_provide python3-markupsafe}
|
|
|
|
|
|
|
|
|
|
%description -n python3-markupsafe
|
|
|
|
|
A library for safe markup escaping. Python 3 version.
|
|
|
|
|
|
|
|
|
|
A library for safe markup escaping.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n MarkupSafe-%{version}
|
|
|
|
|
|
|
|
|
|
%setup -q -n MarkupSafe-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py2_install
|
|
|
|
|
# C code errantly gets installed
|
|
|
|
|
rm $RPM_BUILD_ROOT/%{python2_sitearch}/markupsafe/*.c
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_install
|
|
|
|
|
# C code errantly gets installed
|
|
|
|
|
rm %{buildroot}%{python3_sitearch}/markupsafe/*.c
|
|
|
|
|
rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python2} setup.py test
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-markupsafe
|
|
|
|
|
%license LICENSE.rst
|
|
|
|
|
%doc CHANGES.rst README.rst
|
|
|
|
|
%{python3_sitearch}/MarkupSafe-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
%{python3_sitearch}/markupsafe/
|
|
|
|
|
%files -n python2-markupsafe
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS README.rst
|
|
|
|
|
%{python2_sitearch}/*
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%files -n python3-markupsafe
|
|
|
|
|
%doc AUTHORS LICENSE README.rst
|
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-12
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-11
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 21 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-9
|
|
|
|
|
- Disable Python 2 entirely
|
|
|
|
|
|
|
|
|
|
* Wed Nov 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-8
|
|
|
|
|
- Disable Python 2 in ELN
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-6
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-4
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-3
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Feb 27 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-1
|
|
|
|
|
- Update to 1.1.1 (#1680333)
|
|
|
|
|
|
|
|
|
|
* Mon Feb 18 2019 Yatin Karel <ykarel@redhat.com> - 1.1.0-1
|
|
|
|
|
- Update to 1.1.0
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 31 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0-1
|
|
|
|
|
- Update to 1.0 (#1430160)
|
|
|
|
|
* Mon Dec 11 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.23-19
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-19
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 0.23-19
|
|
|
|
|
- Bumping due to problems with modular RPM upgrade path
|
|
|
|
|
- Resolves: rhbz#1695587
|
|
|
|
|
|
|
|
|
|
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.23-18
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
* Tue Jul 31 2018 Lumír Balhar <lbalhar@redhat.com> - 0.23-18
|
|
|
|
|
- Make possible to disable python3 subpackage
|
|
|
|
|
- Disable debugsource package
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|