forked from pool/python-pycxx
- Add provides/obsoletes for python-CXX as pycxx is upstream name
and name used in Fedora/Debian so we rather stick with this one and remove python-CXX OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycxx?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
0e97ef3201
commit
fc47333da5
@@ -18,6 +18,7 @@
|
||||
|
||||
%global modname pycxx
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-%{modname}
|
||||
Version: 7.0.3
|
||||
Release: 0
|
||||
@@ -25,7 +26,6 @@ Summary: Python extensions in C++
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Python
|
||||
URL: http://CXX.sourceforge.net/
|
||||
# SVN version contains updates for Python3
|
||||
Source0: http://downloads.sourceforge.net/cxx/%{modname}-%{version}.tar.gz
|
||||
Patch0: python-pycxx-7.0.3-python37.patch
|
||||
Patch1: python-pycxx-7.0.3-change-include-paths.patch
|
||||
@@ -34,7 +34,15 @@ BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python-rpm-macros
|
||||
Obsoletes: python-cxx < %{version}
|
||||
Provides: python-cxx = %{version}
|
||||
Obsoletes: python-CXX < %{version}
|
||||
Provides: python-CXX = %{version}
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-cxx < %{version}
|
||||
Provides: %{oldpython}-cxx = %{version}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -46,6 +54,15 @@ of Python extension modules in C++.
|
||||
%package devel
|
||||
Summary: Development files for %{modname} applications
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Obsoletes: python-cxx-devel < %{version}
|
||||
Provides: python-cxx-devel = %{version}
|
||||
Obsoletes: python-CXX-devel < %{version}
|
||||
Provides: python-CXX-devel = %{version}
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-cxx-devel < %{version}
|
||||
Provides: %{oldpython}-cxx-devel = %{version}
|
||||
%endif
|
||||
|
||||
%description devel
|
||||
PyCXX is a set of classes to help create extensions of Python in the
|
||||
@@ -63,12 +80,14 @@ of Python extension modules in C++.
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%files %{python_files devel}
|
||||
%files %{python_files}
|
||||
%license COPYRIGHT
|
||||
%doc README.html
|
||||
%{python_sitelib}/CXX*
|
||||
|
||||
%files %{python_files devel}
|
||||
%python2_only %doc Doc/Python2/
|
||||
%python3_only %doc Doc/Python3/
|
||||
%{python_sitelib}/CXX*
|
||||
%python2_only %{_datadir}/python%{python2_bin_suffix}
|
||||
%python3_only %{_datadir}/python%{python3_bin_suffix}
|
||||
%{python_sysconfig_path include}
|
||||
|
Reference in New Issue
Block a user