Update to 1.0 (#1430160)

This commit is contained in:
Miro Hrončok 2018-07-31 14:56:54 +02:00
parent acfee53c6f
commit 45ff299755
3 changed files with 36 additions and 25 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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 <mhroncok@redhat.com> - 1.0-1
- Update to 1.0 (#1430160)
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

View File

@ -1 +1 @@
f5ab3deee4c37cd6a922fb81e730da6e MarkupSafe-0.23.tar.gz
SHA512 (MarkupSafe-1.0.tar.gz) = 7437a02cb1b9c1d6d6c20b13d394f24a1cd1cb8c743f832d8b1cbb6ab8846f70f54d924dd693423b33c4d592e772983ae38fd4a35961e233457c48bd3584ecb8