From f635a6c0867498d599bc32cb022b72282a4bcd70 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jan 02 2018 19:26:33 +0000 Subject: Python 2 binary package renamed to python2-pygresql --- diff --git a/PyGreSQL.spec b/PyGreSQL.spec index ba792e8..b086727 100644 --- a/PyGreSQL.spec +++ b/PyGreSQL.spec @@ -1,12 +1,11 @@ -%global sum A Python client library for PostgreSQL %global srcname PyGreSQL %{!?runselftest:%global runselftest 1} Name: %{srcname} Version: 5.0.4 -Release: 1%{?dist} -Summary: %{sum} +Release: 2%{?dist} +Summary: Python client library for PostgreSQL Group: Applications/Databases URL: http://www.pygresql.org/ @@ -19,15 +18,6 @@ License: PostgreSQL or Python Source0: http://www.pygresql.org/files/PyGreSQL-%{version}.tar.gz -# PyGreSQL was originally shipped as a sub-RPM of the PostgreSQL package; -# these Provides/Obsoletes give a migration path. Note there is no -# intention of changing the version numbers in future. -Provides: postgresql-python = 8.5.0-1 -Obsoletes: postgresql-python < 8.5 -Provides: python2-%{name} = %{version}-%{release} -Provides: python2-%{name}%{?_isa} = %{version}-%{release} -%{?python_provide:%python_provide python2-%{srcname}} - BuildRequires: postgresql-devel python2-devel python3-devel # For testsuite @@ -35,14 +25,33 @@ BuildRequires: postgresql-server %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%description -PostgreSQL is an advanced Object-Relational database management system. -The PyGreSQL package provides a module for developers to use when writing +%global _description\ +PostgreSQL is an advanced Object-Relational database management system.\ +The PyGreSQL package provides a module for developers to use when writing\ Python code for accessing a PostgreSQL database. +%description %_description + +%package -n python2-pygresql +Summary: %summary +# PyGreSQL was originally shipped as a sub-RPM of the PostgreSQL package; +# these Provides/Obsoletes give a migration path. Note there is no +# intention of changing the version numbers in future. +Provides: postgresql-python = 8.5.0-1 +Obsoletes: postgresql-python < 8.5 +Provides: python2-%{name} = %{version}-%{release} +Provides: python2-%{name}%{?_isa} = %{version}-%{release} +%{?python_provide:%python_provide python2-pygresql} +# Remove before F30 +%{?python_provide:%python_provide python2-%{srcname}} +Provides: PyGreSQL = %{version}-%{release} +Provides: PyGreSQL%{?_isa} = %{version}-%{release} +Obsoletes: PyGreSQL < %{version}-%{release} + +%description -n python2-pygresql %_description %package -n python3-%{srcname} -Summary: %{sum} +Summary: %summary %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} @@ -68,7 +77,7 @@ find -type f -exec chmod 644 {} + %clean -%files +%files -n python2-pygresql %license docs/copyright.rst %doc docs/*.rst %{python2_sitearch}/*.so @@ -108,6 +117,10 @@ EOF %changelog +* Tue Jan 02 2018 Zbigniew Jędrzejewski-Szmek - 5.0.4-2 +- Python 2 binary package renamed to python2-pygresql + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Wed Aug 16 2017 Pavel Raiskup - 5.0.4-1 - Rebase to upstream version 5.0.4 per rhbz#1475595 See changelog http://www.pygresql.org/changelog.html