Package python-module-wx3.0: 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 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | %define major 3.0 %define libmajor 3.0 %define wxdir wx-%major-gtk3 %define oname wx%major %def_disable docs Name: python-module-%oname Version: %major.2.0 Release: alt3 Epoch: 1 # Enable/disable GLcanvas %def_enable glcanvas Summary: Cross platform GUI toolkit for Python using wxGTK License: LGPL-2.0-or-later and wxWidgets Group: Development/Python Url: http://www.wxpython.org/ # https://github.com/wxWidgets/wxPython.git Source: %name-%version.tar Patch: %name-%version-%release.patch # Remove Editra - it doesn't work and is technically a bundle. Thanks to # Debian for the patch. Patch10: fix-editra-removal.patch Patch1: wxPython-3.0.0.0-format.patch # http://trac.wxwidgets.org/ticket/16765 Patch2: wxPython-3.0.2.0-getxwindowcrash.patch # http://trac.wxwidgets.org/ticket/16767 Patch3: wxPython-3.0.2.0-plot.patch # http://trac.wxwidgets.org/ticket/17160 Patch4: wxPython-3.0.2.0-listctrl-mixin-edit.patch # make sure to keep this updated as appropriate Provides: wxPython = %version Provides: wxPythonGTK = %version %py_provides wx %py_provides wxPython Provides: python-module-wx = %version-%release Conflicts: python-module-wx < %version-%release %setup_python_module wx BuildRequires(pre): rpm-build-python # Automatically added by buildreq on Tue Sep 15 2009 BuildRequires: gcc-c++ libgtk+3-devel python-devel python-module-libxml2 BuildPreReq: libwxGTK%libmajor-devel xvfb-run BuildPreReq: libGL-devel libGLU-devel BuildPreReq: python-module-sphinx-devel python-module-Pygments-tests BuildPreReq: libGConf-devel swig BuildPreReq: python-module-distribute python-module-enchant BuildPreReq: python-module-Pillow %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel libnumpy-py3-devel python3-module-enchant BuildPreReq: python3-module-distribute python-tools-2to3 BuildPreReq: python3-module-Pygments-tests BuildPreReq: python3-module-Pillow python3-module-PyPDF2 %endif AutoReq: yes, noperl Requires: libwxGTK%libmajor Provides: python-module-wx = %version-%release %py_requires enchant PIL %add_python_req_skip comtypes floatcanvas lib_setup clip_dndc cmndlgsc controls2c controlsc eventsc filesysc fontsc framesc gdic htmlhelpc imagec mdic misc2c miscc oglbasicc oglcanvasc oglshapes2c oglshapesc printfwc sizersc stattoolc streamsc utilsc windows2c windows3c windowsc xmlrpcserver __version__ _controls _gdi _misc _windows numpy unittest %description wxPython is a GUI toolkit for Python that is a wrapper around the wxWindows C++ GUI library. wxPython provides a large variety of window types and controls, all implemented with a native look and feel (and native runtime speed) on the platforms it is supported on. This package is using the wxGTK port of wxWindows. This module is built for python %_python_version %package devel Summary: Files needed to build wrappers for wxPythonGTK Group: Development/Python BuildArch: noarch Requires: %name = %EVR Obsoletes: wxPythonGTK-devel %add_python_req_skip _xrc %description devel This package contains files required to build extensions that interoperate with wxPythonGTK. %package demo Summary: Demo programs for python-module-wx using Group: Development/Python BuildArch: noarch Requires: %name = %EVR %description demo This package contains demo programs files for wxPythonGTK %if_enabled docs %package docs Summary: Documentation for python-module-wx using Group: Development/Documentation BuildArch: noarch %description docs This package contains documentation for wxPythonGTK %package pickles Summary: Pickles for python-module-wx using Group: Development/Python %description pickles This package contains pickles for wxPythonGTK %endif %package tests Summary: Tests for python-module-wx using Group: Development/Python Requires: %name = %EVR %description tests This package contains demo programs files for wxPythonGTK %prep %setup %patch -p1 %patch10 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %if_enabled docs %prepare_sphinx . ln -s README.html docs/index.html %endif #sed -i 's|@VER@|%libmajor|' wxPython/config.py sed -i -e 's|/usr/lib|%_libdir|' -e 's|-O3|-O2|' wxPython/config.py %build cd wxPython INCS="$(wx-config --cflags)" %add_optflags -fno-strict-aliasing -fpermissive -std=gnu++11 $INCS %python_build \ NO_SCRIPTS=1 \ WXPORT=gtk3 \ UNICODE=1 \ WX_CONFIG=/usr/bin/wx-config cd .. %if_enabled docs cd wxPython sed -i '1012d' docs/wxPythonManual.html %generate_pickles $PWD $PWD/docs wx cd .. %endif %install cd wxPython %add_optflags -fno-strict-aliasing %python_install \ NO_SCRIPTS=1 \ WXPORT=gtk3 \ UNICODE=1 \ WX_CONFIG=/usr/bin/wx-config \ INSTALL_MULTIVERSION=1 %define pythonsite %buildroot%python_sitelibdir_noarch %if "%python_sitelibdir_noarch" != "%python_sitelibdir" mv %pythonsite/wx.pth %pythonsite/*.egg-info %pythonsite/wxversion.py* \ %buildroot%python_sitelibdir #mv %pythonsite/wxaddons/ %buildroot%python_sitelibdir %endif mkdir -p %buildroot%_bindir cp -a scripts/{img2png,img2py,img2xpm,pycrust,pyshell,xrced} %buildroot%_bindir # has error rm -f \ %buildroot%python_sitelibdir/*/wx/tools/Editra/tests/syntax/python.python %if_enabled docs # docs install -d %buildroot%_docdir/%name cp -fR docs/*.html docs/*.txt docs/screenshots \ %buildroot%_docdir/%name/ install -d %buildroot%python_sitelibdir/wx%major cp -fR pickle %buildroot%python_sitelibdir/wx%major/ %endif # tests cp -fR tests %buildroot%python_sitelibdir/%wxdir/wx/ touch %buildroot%python_sitelibdir/%wxdir/wx/tests/__init__.py rm -f \ %buildroot%python_sitelibdir/*/wx/tools/Editra/tests/syntax/perl.pl # fix shebang sed -i 's|/usr/bin/env python|%_bindir/python2|' %buildroot%_bindir/* %triggerpostun -- wxPythonGTK <= 2.4.2.4-alt4.1 rm -rf %python_sitelibdir/{wx,wxPython} || : %files %_bindir/* %python_sitelibdir/* %exclude %python_sitelibdir/*/*/tests #%exclude %python_sitelibdir/*/*/*/*/tests %if_enabled docs %exclude %python_sitelibdir/wx%major/pickle %doc docs/{README.txt,CHANGES.txt} %endif %files devel %_includedir/wx-*/wx/wxPython/ %files demo %doc wxPython/demo %files tests %python_sitelibdir/*/*/tests #%python_sitelibdir/*/*/*/*/tests %if_enabled docs %files docs %doc %_docdir/%name %files pickles %dir %python_sitelibdir/wx%major %python_sitelibdir/wx%major/pickle %endif %changelog * Tue Aug 03 2021 Grigory Ustinov <grenka@altlinux.org> 1:3.0.2.0-alt3 - Fixed BuildRequires. * Sat May 23 2020 Anton Midyukov <antohami@altlinux.org> 1:3.0.2.0-alt2 - Fix License Tag - Fix shebang - Cleanup spec * Sun Oct 14 2018 Igor Vlasenko <viy@altlinux.ru> 1:3.0.2.0-alt1.1.qa3 - NMU: applied repocop patch * Fri Jun 15 2018 Gleb F-Malinovskiy <glebfm@altlinux.org> 1:3.0.2.0-alt1.1.qa2 - Fixed previous change. * Thu Jun 14 2018 Gleb F-Malinovskiy <glebfm@altlinux.org> 1:3.0.2.0-alt1.1.qa1 - Removed redundant BR: gst-plugins-devel. - Fixed installations of wxversion module on aarch64 architecture. * Thu Aug 10 2017 Vladimir D. Seleznev <vseleznv@altlinux.org> 1:3.0.2.0-alt1.1 - Rebuilt for changed libwxGTK3.0 ABI * Wed May 04 2016 Alexey Shabalin <shaba@altlinux.ru> 1:3.0.2.0-alt1 - downgrade to 3.0.2.0 release - add patches from fedora * Fri Apr 22 2016 Alexey Shabalin <shaba@altlinux.ru> 3.0.3.0-alt6.git20150311 - build with INSTALL_MULTIVERSION=1, as previus versions - fix provides wxversion * Tue Oct 27 2015 Anton Midyukov <antohami@altlinux.org> 3.0.3.0-alt5.git20150311 - Rebuilt for new gcc5 C++11 ABI. * Fri Jul 17 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.3.0-alt4.git20150311 - Rebuilt with gcc5 * Mon Apr 13 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.3.0-alt3.git20150311 - Generate *.py files from *.i (ALT #30897) * Sat Mar 14 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.3.0-alt2.git20150311 - Rebuilt with new wxGTK3.0 * Sat Mar 14 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.3.0-alt1.git20150311 - Version 3.0.3.0 * Wed Mar 11 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.2.0-alt1.svn20141127 - Version 3.0.2.0 * Thu Jul 10 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.1.0-alt1.svn20140708 - New snapshot * Mon Jun 16 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.1.0-alt1.svn20140528 - Initial build for Sisyphus |