From 45ff299755af0b2ec40376cbac77c4e96983eb25 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 31 2018 12:56:54 +0000 Subject: Update to 1.0 (#1430160) --- diff --git a/.gitignore b/.gitignore index de4ab66..ec8fc25 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ MarkupSafe-0.9.2.tar.gz /MarkupSafe-0.11.tar.gz /MarkupSafe-0.18.tar.gz /MarkupSafe-0.23.tar.gz +/MarkupSafe-1.0.tar.gz diff --git a/python-markupsafe.spec b/python-markupsafe.spec index d6ed4fd..45d09c2 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -1,51 +1,54 @@ -Name: python-markupsafe -Version: 0.23 -Release: 19%{?dist} -Summary: Implements a XML/HTML/XHTML Markup safe string for Python - -Group: Development/Languages -License: BSD -URL: http://pypi.python.org/pypi/MarkupSafe -Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz +Name: python-markupsafe +Version: 1.0 +Release: 1%{?dist} +Summary: Implements a XML/HTML/XHTML Markup safe string for Python +License: BSD +URL: https://pypi.org/project/MarkupSafe/ +Source0: %pypi_source MarkupSafe BuildRequires: gcc -BuildRequires: python2-devel python2-setuptools -BuildRequires: python3-devel python3-setuptools %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 +Summary: Implements a XML/HTML/XHTML Markup safe string for Python 2 +BuildRequires: python2-devel +BuildRequires: python2dist(setuptools) %{?python_provide:%python_provide python2-markupsafe} %description -n python2-markupsafe -A library for safe markup escaping. +A library for safe markup escaping. Python 2 version. + %package -n python3-markupsafe -Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3 -Group: Development/Languages +Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3 +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) %{?python_provide:%python_provide python3-markupsafe} %description -n python3-markupsafe -A library for safe markup escaping. +A library for safe markup escaping. Python 3 version. + %prep -%setup -q -n MarkupSafe-%{version} +%autosetup -n MarkupSafe-%{version} + %build %py2_build %py3_build + %install %py2_install # C code errantly gets installed -rm $RPM_BUILD_ROOT/%{python2_sitearch}/markupsafe/*.c +rm %{buildroot}%{python2_sitearch}/markupsafe/*.c %py3_install # C code errantly gets installed -rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c +rm %{buildroot}%{python3_sitearch}/markupsafe/*.c %check @@ -55,15 +58,22 @@ rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c %files -n python2-markupsafe %license LICENSE -%doc AUTHORS README.rst -%{python2_sitearch}/* +%doc AUTHORS CHANGES README.rst +%{python2_sitearch}/MarkupSafe-%{version}-py%{python2_version}.egg-info/ +%{python2_sitearch}/markupsafe/ + %files -n python3-markupsafe -%doc AUTHORS LICENSE README.rst -%{python3_sitearch}/* +%license LICENSE +%doc AUTHORS CHANGES README.rst +%{python3_sitearch}/MarkupSafe-%{version}-py%{python3_version}.egg-info/ +%{python3_sitearch}/markupsafe/ %changelog +* Tue Jul 31 2018 Miro Hrončok - 1.0-1 +- Update to 1.0 (#1430160) + * Sat Jul 14 2018 Fedora Release Engineering - 0.23-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index c75c4de..77efe05 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f5ab3deee4c37cd6a922fb81e730da6e MarkupSafe-0.23.tar.gz +SHA512 (MarkupSafe-1.0.tar.gz) = 7437a02cb1b9c1d6d6c20b13d394f24a1cd1cb8c743f832d8b1cbb6ab8846f70f54d924dd693423b33c4d592e772983ae38fd4a35961e233457c48bd3584ecb8