From 8362976f27960313a4ee8e12a753a8b2aaf70641 Mon Sep 17 00:00:00 2001 From: Julien Enselme Date: Nov 06 2015 10:59:12 +0000 Subject: Correct provides for python2 package --- diff --git a/python-snappy.spec b/python-snappy.spec index afd4f6c..da543d6 100644 --- a/python-snappy.spec +++ b/python-snappy.spec @@ -2,7 +2,7 @@ Name: python-snappy Version: 0.5 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Python library for the snappy compression library from Google # License not provided. # See: https://github.com/andrix/python-snappy/issues/31 @@ -22,7 +22,8 @@ Python bindings for the snappy compression library from Google. %package -n python2-snappy Summary: Python library for the snappy compression library from Google Requires: snappy -%{?python_provide:%python_provide python2-%{pypi_name}} +# Don't use %%pypi_name here to avoid a python-python-snappy provide +%{?python_provide:%python_provide python2-snappy} %description -n python2-snappy Python bindings for the snappy compression library from Google. @@ -33,7 +34,8 @@ Summary: Python library for the snappy compression library from Google BuildRequires: python3-devel BuildRequires: snappy-devel Requires: snappy -%{?python_provide:%python_provide python3-%{pypi_name}} +# Don't use %%pypi_name here to avoid a python-python-snappy provide +%{?python_provide:%python_provide python3-snappy} %description -n python3-snappy Python bindings for the snappy compression library from Google. @@ -76,6 +78,9 @@ sed -i '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python2_sitearch}/snappy.py %changelog +* Fri Nov 6 2015 Julien Enselme - 0.5-6 +- Correct provides for python2 package + * Thu Nov 5 2015 Julien Enselme - 0.5-5 - Rebuilt for python 3.5