forked from pool/python-pycxx
- Initial package, used by pysvn
- Apply patches from Fedora: * python-pycxx-7.0.3-python37.patch * python-pycxx-7.0.3-change-include-paths.patch * python-pycxx-7.0.3-setup.py.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycxx?expand=0&rev=1
This commit is contained in:
77
python-pycxx.spec
Normal file
77
python-pycxx.spec
Normal file
@@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package python
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global modname pycxx
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-%{modname}
|
||||
Version: 7.0.3
|
||||
Release: 0
|
||||
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
|
||||
Patch2: python-pycxx-7.0.3-setup.py.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
PyCXX is a set of classes to help create extensions of Python in the
|
||||
C++ language. The first part encapsulates the Python C API taking care
|
||||
of exceptions and ref counting. The second part supports the building
|
||||
of Python extension modules in C++.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{modname} applications
|
||||
Group: Development/Libraries/Python
|
||||
|
||||
%description devel
|
||||
PyCXX is a set of classes to help create extensions of Python in the
|
||||
C++ language. The first part encapsulates the Python C API taking care
|
||||
of exceptions and ref counting. The second part supports the building
|
||||
of Python extension modules in C++.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%files %{python_files devel}
|
||||
%license COPYRIGHT
|
||||
%doc README.html
|
||||
%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}
|
||||
%python2_only %{_includedir}/python%{python2_bin_suffix}/
|
||||
%python3_only %{_includedir}/python%{python3_bin_suffix}m/
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user