Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
python3-CXX
python3-CXX.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-CXX.spec of Package python3-CXX
# # spec file for package python3-CXX # # Copyright (c) 2015 SUSE LINUX Products 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/ # %define modname CXX %define tarname pycxx Name: python3-%{modname} Version: 6.2.5 Release: 0 Summary: Write Python extensions in C++ License: BSD-3-Clause Group: Development/Languages/Python Url: http://CXX.sourceforge.net/ Source0: %{tarname}-%{version}.tar.gz Source1: %{name}-rpmlintrc # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines Patch0: python-%{modname}-6.2.3-change-include-paths.patch # PATCH-FIX-UPSTREAM python-CXX-6.2.5-fix-version.patch -- fix version number from 6.24 to 6.25, needs to be updated for new releases Patch1: python-CXX-6.2.5-fix-version.patch BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: python3-cxx = %{version} Obsoletes: python3-cxx < %{version} BuildArch: noarch %define incl_ver %{py3_ver}%{?py3_abiflags} %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 %{name} Group: Development/Languages/Python Requires: %{name} = %{version} Requires: python3 >= %{py3_ver} Requires: python3-devel >= %{py3_ver} Provides: python3-cxx-devel = %{version} Obsoletes: python3-cxx-devel < %{version} %description devel Header files and documentation for %{name} development. %prep %setup -q -n %{tarname}-%{version} %patch0 -p1 %patch1 -p1 %build python3 setup.py build %install python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} install %{modname}/*.hxx %{buildroot}/%{_includedir}/python%{incl_ver}/%{modname}/ install %{modname}/*.h %{buildroot}/%{_includedir}/python%{incl_ver}/%{modname}/ cp -R %{modname}/Python3 %{buildroot}/%{_includedir}/python%{incl_ver}/%{modname}/ install Src/*.c %{buildroot}/%{_datadir}/python%{py3_ver}/%{modname}/ install Src/*.cxx %{buildroot}/%{_datadir}/python%{py3_ver}/%{modname}/ cp -R Src/Python2 %{buildroot}/%{_datadir}/python%{py3_ver}/%{modname}/ chmod -x %{buildroot}/%{_datadir}/python%{py3_ver}/%{modname}/*.* chmod -x %{buildroot}/%{_includedir}/python%{incl_ver}/%{modname}/*.* %files %defattr(-,root,root) %doc README.html COPYRIGHT %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-py%{py3_ver}.egg-info %files devel %defattr(-,root,root) %doc Doc/Python3/ %{_includedir}/python%{incl_ver}/%{modname}/ %dir %{_datadir}/python%{py3_ver}/ %{_datadir}/python%{py3_ver}/%{modname}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor