diff --git python-sieve/python-sieve.spec python-sieve/python-sieve.spec.tmp index 2afee40c73..f7c8637a14 100644 --- python-sieve/python-sieve.spec +++ python-sieve/python-sieve.spec.tmp @@ -6,7 +6,7 @@ Name: python-sieve Version: 0.1.9 -Release: 6%{?dist} +Release: 7%{?dist} Summary: XML Comparison Utils Group: Development/Libraries @@ -31,33 +31,39 @@ BuildRequires: python3-markupsafe BuildRequires: python3-nose %endif -Requires: python-six -Requires: python-lxml -Requires: python-markupsafe - +%global _description\ +Ripped from FormEncode and strainer just to support Pythons 2 and 3.\ +Intended for use in your webapp test suites.\ +\ +Example usage::\ +\ + >>> from sieve.operators import eq_xml, in_xml\ + >>> a = "Value"\ + >>> b = """\ + ... \ + ... \ + ... Value\ + ... \ + ... \ + ... """\ + >>> eq_xml(a, b)\ + True\ + >>> c = "Value>> in_xml(a, c) # 'needle' in a 'haystack'\ + True\ + + +%description %_description + +%package -n python2-sieve +Summary: %summary Provides: python2-sieve +Requires: python-markupsafe +Requires: python-lxml +Requires: python-six +%{?python_provide:%python_provide python2-sieve} -%description -Ripped from FormEncode and strainer just to support Pythons 2 and 3. -Intended for use in your webapp test suites. - -Example usage:: - - >>> from sieve.operators import eq_xml, in_xml - >>> a = "Value" - >>> b = """ - ... - ... - ... Value - ... - ... - ... """ - >>> eq_xml(a, b) - True - >>> c = "Value>> in_xml(a, c) # 'needle' in a 'haystack' - True - +%description -n python2-sieve %_description %if 0%{?with_python3} %package -n python3-sieve @@ -130,7 +136,7 @@ popd %endif -%files +%files -n python2-sieve %doc README.rst LICENSE.txt %{python_sitelib}/%{modname} %{python_sitelib}/%{modname}-%{version}* @@ -145,6 +151,10 @@ popd %changelog +* Tue Aug 08 2017 Zbigniew Jędrzejewski-Szmek - 0.1.9-7 +- Python 2 binary package renamed to python2-sieve + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.1.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild