Пакет shiboken-py3: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | %define oname shiboken Name: %oname-py3 Version: 1.2.2 Release: alt4.git20140422 Summary: Generates bindings for C++ libraries using CPython source code (Python 3) License: GPLv2, LGPLv2.1 Group: Development/KDE and QT Url: http://www.pyside.org/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: %name-%version.tar Patch1: %name-%version-alt-gcc6.patch # Updated build system %%__*python3* macros are in 0.1.9.2. BuildRequires(pre): rpm-build-python3 >= 0.1.9.2 BuildPreReq: python3-devel BuildPreReq: cmake libqt4-devel gcc-c++ libgeneratorrunner-devel BuildPreReq: phonon-devel generatorrunner qt4-designer xml-utils BuildPreReq: python3-module-sphinx-devel xsltproc python3-devel BuildPreReq: libxml2-devel libxslt-devel libqt4-assistant-devel BuildPreReq: python3-module-distribute Requires: lib%name = %version-%release Conflicts: %oname %description Shiboken is a plugin (front-end) for Generator Runner. It generates bindings for C++ libraries using CPython source code. %package -n lib%name Summary: Shared libraries of Shiboken (Python 3) Group: System/Libraries %description -n lib%name Shiboken is a plugin (front-end) for Generator Runner. It generates bindings for C++ libraries using CPython source code. This package contains shared libraries of Shiboken. %package -n lib%name-devel Summary: Development files of Shiboken (Python 3) Group: Development/C++ Requires: lib%name = %version-%release Conflicts: lib%oname-devel %description -n lib%name-devel Shiboken is a plugin (front-end) for Generator Runner. It generates bindings for C++ libraries using CPython source code. This package contains development files of Shiboken. %package -n python3-module-%oname Summary: Python module of Shiboken (Python 3) Group: Development/Python3 Requires: lib%name = %version-%release %description -n python3-module-%oname Shiboken is a plugin (front-end) for Generator Runner. It generates bindings for C++ libraries using CPython source code. This package contains python module of Shiboken. %prep %setup %patch1 -p1 sed -i 's|sphinx\-build|py3_sphinx-build|g' \ ApiExtractor/doc/CMakeLists.txt doc/CMakeLists.txt %prepare_sphinx3 . ln -s ../objects.inv doc %build export PATH=$PATH:%_qt4dir/bin FLAGS="$(pkg-config phonon --cflags)" %add_optflags $FLAGS mkdir BUILD pushd BUILD cmake \ -DCMAKE_INSTALL_PREFIX:PATH=%prefix \ %if "%_lib" == "lib64" -DLIB_SUFFIX:STRING=64 \ %endif -DCMAKE_STRIP:FILEPATH="/bin/echo" \ -DENABLE_GCC_OPTIMIZATION:BOOL=ON \ -DENABLE_VERSION_SUFFIX:BOOL=OFF \ -DCMAKE_C_FLAGS:STRING="%optflags" \ -DCMAKE_CXX_FLAGS:STRING="%optflags" \ -DQT_PHONON_INCLUDE_DIR:PATH="%_includedir/kde4" \ -DUSE_PYTHON3:BOOL=ON \ -DPYTHON3_INCLUDE_DIR=%__python3_includedir \ -DPYTHON3_LIBRARY=%__libpython3 \ .. %make_build VERBOSE=1 pushd doc %make doc popd popd %install %makeinstall_std -C BUILD %files %doc COPYING* AUTHORS %doc BUILD/doc/html %_bindir/* %_man1dir/* %files -n lib%name %_libdir/*.so.* %files -n lib%name-devel %_includedir/* %_libdir/*.so %_libdir/cmake %_pkgconfigdir/* %files -n python3-module-%oname %python3_sitelibdir/* %changelog * Tue May 08 2018 Sergey Bolshakov <sbolshakov@altlinux.ru> 1.2.2-alt4.git20140422 - fixed packaging on 64bit arches other than x86_64 * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.2-alt3.git20140422.2.1 - (NMU) Rebuilt with python-3.6.4. * Mon Jul 17 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.2-alt3.git20140422.2 - Fixed build with gcc-6 * Fri Apr 01 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.2.2-alt3.git20140422.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Tue Mar 29 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.2.2-alt3.git20140422 - (.spec) Fixed %%_libpython3 path (a new macro). - Denis Medvedev changed environment for Python3.5 build. * Tue May 27 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.2-alt1.git20140422 - Version 1.2.2 * Mon Nov 18 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.1-alt1.git20131015 - Version 1.2.1 * Tue Jun 18 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.2-alt2.git20130527 - New snapshot * Tue Feb 19 2013 Aleksey Avdeev <solo@altlinux.ru> 1.1.2-alt1.1 - Fix build with Python 3.3 * Tue Sep 04 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.2-alt1 - Version 1.1.2 for Python 3 * Fri May 04 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.1-alt1 - Version 1.1.1 for Python 3 * Tue Jan 17 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.0-alt1 - Version 1.1.0 * Wed Dec 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.10-alt3 - Rebuilt with disabled version suffix of generatorrunner * Tue Dec 06 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.10-alt2 - Disabled library version suffix * Mon Dec 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.10-alt1 - Initial build for Sisyphus |