From 6abce558253fa103f5093974aee4ed5bfbf7b680 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Oct 10 2018 14:40:27 +0000 Subject: Python2 binary package has been removed --- diff --git a/python-mimerender.spec b/python-mimerender.spec index 6fd3d69..664e912 100644 --- a/python-mimerender.spec +++ b/python-mimerender.spec @@ -7,7 +7,7 @@ Name: python-%{srcname} Version: 0.5.5 -Release: 10%{?dist} +Release: 11%{?dist} Summary: RESTful HTTP Content Negotiation for Flask, Bottle, etc. License: MIT @@ -17,13 +17,9 @@ Source0: http://pypi.python.org/packages/source/m/%{srcname}/%{srcname}-% Source1: LICENSE.mimerender BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-mimeparse # Needed for EL 7, package does not provide python2-setuptools -BuildRequires: python2-setuptools # For tests # Needs to be fixed to provide python2-unittest2 -BuildRequires: python2-unittest2 %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-mimeparse @@ -39,38 +35,6 @@ Supports Flask, Bottle, web.py and webapp2 out of the box, and it’s easy to add support for other frameworks. -%package -n python2-%{srcname} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{srcname}} -Requires: python2-mimeparse -# Note: mimerender has subclasses of MimeRenderBase for web.py, Flask, -# Bottle, and webapp2. When you import 'mimerender', the subclass for -# each framework you have installed will be defined; if the framework -# isn't installed, the subclass for it is skipped (they're all in try/ -# except blocks). So if you have python2-flask installed you'll get -# the FlaskMimeRender class, if you python2-bottle installed you'll -# get BottleMimeRender, and so on. This relationship is not expressed -# through dependencies as it doesn't seem to the packager that such -# dependencies would actually aid in any real-world use of mimeparse; -# if you want to use it in code you've probably already picked a web -# framework, and if it's just being pulled in as a dependency of some -# other package, *that* package will express the appropriate deps on -# the web framework. -# -# Also note that *executing* mimerender.py requires the unittest or -# unittest2 module. All this does is run the test suite (as used in -# check, below). There is no Requires: for this, because it's not -# the expected use of the package, in all normal cases it will be -# used by importing the module. - -%description -n python2-%{srcname} -mimerender provides a decorator that wraps a HTTP request handler to select -the correct render function for a given HTTP Accept header. It uses mimeparse -to parse the accept string and select the best available representation. -Supports Flask, Bottle, web.py and webapp2 out of the box, and it’s easy to -add support for other frameworks. This is the Python 2 build of mimerender. - - %if 0%{?with_python3} %package -n python3-%{srcname} Summary: %{summary} @@ -95,19 +59,16 @@ add support for other frameworks. This is the Python 3 build of mimerender. cp %{SOURCE1} ./LICENSE %build -%py2_build %if 0%{?with_python3} %py3_build %endif # if with_python3 %install -%py2_install %if 0%{?with_python3} %py3_install %endif # if with_python3 %check -%{__python2} src/mimerender.py %if 0%{?with_python3} # There seems to be some kind of intermittent bug which causes the test # suite to fail on py3 sometimes. It seems to fail with pypy too (in @@ -117,11 +78,6 @@ cp %{SOURCE1} ./LICENSE #{__python3} src/mimerender.py %endif # if with_python3 -%files -n python2-%{srcname} -%{!?_licensedir:%global license %doc} -%license LICENSE -%{python2_sitelib}/%{srcname}* - %if 0%{?with_python3} %files -n python3-%{srcname} %license LICENSE @@ -130,6 +86,10 @@ cp %{SOURCE1} ./LICENSE %endif # if with_python3 %changelog +* Wed Oct 10 2018 Miro Hrončok - 0.5.5-11 +- Python2 binary package has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Jul 14 2018 Fedora Release Engineering - 0.5.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild