Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
python3-CXX
> python3-CXX.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python3-CXX.spec of Package python3-CXX
# # spec file for package python3-CXX # # Copyright (c) 2016 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/ # %{?!py3_ver: %global py3_ver 3.4} %{?!python3_sitearch: %global python3_sitearch /usr/lib/python%{py3_ver}/site-packages/} %{?!python3_sitelib: %global python3_sitelib /usr/lib/python%{py3_ver}/site-packages/} %define _unpackaged_files_terminate_build 0 %define modname CXX %define tarname pycxx Name: python3-%{modname} Version: 6.2.5 Release: 25.1 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-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 2to3 -w Lib %build python3 setup.py build %install python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} mkdir -p %{buildroot}%{_includedir}/python%{incl_ver}/%{modname}/ 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 * Sat Jan 10 2015 arun@gmx.de - specfile: * update copyright year * remove python(abi) requirement * Fri Dec 6 2013 toddrme2178@gmail.com - Update to Version 6.2.5 * Fix build issue with GCC 4.2.1 on FreeBSD and Mac OS X (stop python defining isspace as a macro). * Remove support for python 3.1 (API's are unstable). * Add Python 3.3 support. * Patch from Michael Droettboom to fix compilation issues. * Patch from Michael Droettboom to add buffer interface for python3. - Remove upstreamed python-CXX-6.2.4-fix-indentation.patch - Add python-CXX-6.2.5-fix-version.patch This will need to be fixed for any release where the version number is wrong * Thu Nov 22 2012 toddrme2178@gmail.com - Remove openSUSE 11.4 spec file workarounds * Thu Jun 14 2012 toddrme2178@gmail.com - Fix building on openSUSE 11.4 * Mon May 21 2012 toddrme2178@gmail.com - Update to Version 6.2.4 (3-March-2012) * Fix problem compiling against clang compiler used with Mac OS X 10.7 * Fix segv when using getting the type() of extension objects * Support PEP 3149 * Support Python 3.2 * For python 3.1 and onwards use the Capsule API - thanks to Michael Droettboom * Fixed memory leak - thanks to Vivian De Smedt * Improve setup_makefile.py to use distutils to find paths - Rename to python-CXX to match python package naming policy - Add python 3 package - Clean up spec file formatting