Package python-module-wx: 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 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | # TODO: remove x86_64 hacks # buildtest: import wx %define origname wxPython-src %define major 2.8 %def_enable docs Name: python-module-wx Version: %major.11.0 Release: alt2.svn20100628.2.M70T.1 # Enable/disable GLcanvas %def_enable glcanvas Summary: Cross platform GUI toolkit for Python using wxGTK License: wxWindows Library Licence Group: Development/Python Url: http://www.wxpython.org/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> # http://svn.wxwidgets.org/svn/wx Source: %origname-%version.tar.bz2 Source1: agw-%version.tar.bz2 Source2: floatcanvas-%version.tar.bz2 Source3: Editra-%version.tar.bz2 Source4: XRCed-%version.tar.bz2 Source5: PubSub-%version.tar.bz2 Provides: wxPython = %version Obsoletes: wxPython Provides: wxPythonGTK = %version Obsoletes: wxPythonGTK %py_provides wx %py_provides wxPython # Automatically added by buildreq on Tue Sep 15 2009 BuildRequires: gcc-c++ libgtk+2-devel python-devel python-module-libxml2 BuildPreReq: libwxGTK-contrib-gizmos-devel libwxGTK-contrib-stc-devel BuildPreReq: libwxGTK-devel libwxGTK-contrib-ogl-devel BuildPreReq: libGL-devel libGLU-devel BuildPreReq: python-module-sphinx-devel python-module-Pygments BuildPreReq: libGConf-devel gst-plugins-devel BuildPreReq: libwxGTK AutoReq: yes, noperl BuildPreReq: libwxGTK-devel >= %major Requires: wxGTK >= %major %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 %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 = %version-%release %if_enabled docs Requires: %name-pickles = %version-%release %endif Obsoletes: wxPythonGTK-devel %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 = %version-%release %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 = %version-%release %description tests This package contains demo programs files for wxPythonGTK %prep %setup -n %origname-%version # We do not need to refresh these files subst "s|'preamble.txt', 'licence.txt', 'licendoc.txt', 'lgpl.txt'||" \ setup.py pushd wx/lib tar -xf %SOURCE1 tar -xf %SOURCE2 tar -xf %SOURCE5 popd pushd wx/tools tar -xf %SOURCE3 tar -xf %SOURCE4 popd %if_enabled docs %prepare_sphinx . ln -s README.html docs/index.html %endif %build # Unfortunately build and install steps should be done at once # because otherwise .pyo files won't get into INSTALLED_FILES # record CFLAGS="%optflags -fno-strict-aliasing" python setup.py \ NO_SCRIPTS=1 \ WXPORT=gtk2 \ UNICODE=1 \ %if_enabled glcanvas BUILD_GLCANVAS=1 \ %else BUILD_GLCANVAS=0 \ %endif BUILD_OGL=0 \ BUILD_STC=1 \ BUILD_GIZMOS=1 \ build %if_enabled docs %generate_pickles $PWD $PWD/docs wx %endif %install CFLAGS="%optflags -fno-strict-aliasing -DwxUSE_MEDIACTRL=1" python setup.py \ install --root=%buildroot %define pythonsite %buildroot%prefix/lib/python%_python_version/site-packages %ifarch x86_64 mv %pythonsite/wx.pth %buildroot%python_sitelibdir mv %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-2.8-gtk2-unicode/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 cp -fR pickle %buildroot%python_sitelibdir/wx/ %endif # tests cp -fR tests %buildroot%python_sitelibdir/wx-2.8-gtk2-unicode/wx/ touch %buildroot%python_sitelibdir/wx-2.8-gtk2-unicode/wx/tests/__init__.py rm -f \ %buildroot%python_sitelibdir/wx-2.8-gtk2-unicode/wx/tools/Editra/tests/syntax/perl.pl %postun # remove old entries %triggerpostun -- wxPythonGTK <= 2.4.2.4-alt4.1 rm -rf %python_sitelibdir/{wx,wxPython} || : %files %_bindir/* %python_sitelibdir/* %if_enabled docs %exclude %python_sitelibdir/wx/pickle %endif %exclude %python_sitelibdir/*/*/tests %exclude %python_sitelibdir/*/*/*/*/tests %doc docs/{README.txt,CHANGES.txt} %files devel %_includedir/wx-*/wx/wxPython/ %files demo %doc demo %files tests %python_sitelibdir/*/*/tests %python_sitelibdir/*/*/*/*/tests %if_enabled docs %files docs %doc %_docdir/%name %files pickles %dir %python_sitelibdir/wx %python_sitelibdir/wx/pickle %endif %changelog * Tue Sep 16 2014 Motsyo Gennadi <drool@altlinux.ru> 2.8.11.0-alt2.svn20100628.2.M70T.1 - rebuild with wxGTK 2.8.12 * Thu Mar 21 2013 Sergey Y. Afonin <asy@altlinux.ru> 2.8.11.0-alt2.svn20100628.2 - Rebuilt with wxGTK 2.8.11.0-alt1.svn20100628.7 (ALT #28702) * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.8.11.0-alt2.svn20100628.1 - Rebuilt to remove redundant libpython2.7 dependency * Thu Dec 01 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt2.svn20100628 - Enabled docs * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.8.11.0-alt1.svn20100628.4.1 - Rebuilt with Python-2.7 * Tue Apr 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628.4 - Rebuilt with python-module-sphinx-devel * Wed Mar 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628.3 - Rebuilt for debuginfo * Wed Oct 06 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628.2 - Fixed underlinking of _core_.so * Mon Sep 27 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628.1 - Added libGConf-devel and gst-plugins-devel into build requirements * Mon Jul 05 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628 - New snapshot - Enabled wxMediaCtrl - Set devel package as noarch * Tue Mar 02 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100227 - Version 2.8.11.0 * Mon Jan 18 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.10.1-alt1.svn20100111.2 - Set demo package as noarch - Added tests package * Fri Jan 15 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.10.1-alt1.svn20100111.1 - Rebuilt with GLcanvas * Mon Jan 04 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.10.1-alt1.svn20100111 - Version 2.8.10.1 * Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.9.2-alt2.1 - Rebuilt with python 2.6 * Tue Sep 15 2009 Michael Shigorin <mike@altlinux.org> 2.8.9.2-alt2 - fixed x86_64 build (wxaddons package is being phased out anyways) * Fri Sep 11 2009 Michael Shigorin <mike@altlinux.org> 2.8.9.2-alt1 - NMU: 2.8.9.2 (closes: #21307) - minor spec cleanup * Sun Jul 05 2009 Vitaly Lipatov <lav@altlinux.ru> 2.8.9-alt1 - new version 2.8.9.1 - update buildreq * Sat Mar 08 2008 Vitaly Lipatov <lav@altlinux.ru> 2.8.6-alt2 - rebuild with python 2.5 * Mon Oct 08 2007 Vitaly Lipatov <lav@altlinux.ru> 2.8.6-alt1 - new version 2.8.6 (with rpmrb script) * Wed Aug 01 2007 Vitaly Lipatov <lav@altlinux.ru> 2.8.4-alt1 - new version 2.8.4 (with rpmrb script) * Mon Apr 30 2007 Vitaly Lipatov <lav@altlinux.ru> 2.8.3.0-alt2 - fix build on x86_64 (bug #11654) * Sat Apr 21 2007 Vitaly Lipatov <lav@altlinux.ru> 2.8.3.0-alt1 - new version 2.8.3.0 (with rpmrb script) * Sun Feb 04 2007 Vitaly Lipatov <lav@altlinux.ru> 2.8.1.1-alt0.1 - new version - disable ogl * Sun Dec 24 2006 Vitaly Lipatov <lav@altlinux.ru> 2.8.0.1-alt0.1 - new version, cleanup spec - build with new wxGTK package * Sat Jun 03 2006 Vitaly Lipatov <lav@altlinux.ru> 2.6.3.2-alt0.1 - new version 2.6.3.2 * Sat Jun 18 2005 Vitaly Lipatov <lav@altlinux.ru> 2.6.1.0-alt1 - new version - ogl enabled - build with wxGTK2u (Unicode) * Sun May 08 2005 Vitaly Lipatov <lav@altlinux.ru> 2.6.0.0-alt1 - new version, build with stable wxGTK 2.6.0 * Wed Apr 13 2005 Vitaly Lipatov <lav@altlinux.ru> 2.5.5.1-alt1 - new version, build with wxGTK 2.5.5 * Fri Mar 25 2005 Vitaly Lipatov <lav@altlinux.ru> 2.5.4.1-alt2 - fix buildreq for gizmos * Wed Mar 23 2005 Vitaly Lipatov <lav@altlinux.ru> 2.5.4.1-alt1 - new version - build with python 2.4, wxGTK 2.5.4 * Fri Dec 03 2004 Vitaly Lipatov <lav@altlinux.ru> 2.5.3.1-alt1 - new version - package renamed from wxPythonGTK * Mon Jul 19 2004 Maxim Tyurin <mrkooll@altlinux.ru> 2.4.2.4-alt4.1 - skip different requires * Fri Jun 18 2004 Maxim Tyurin <mrkooll@altlinux.ru> 2.4.2.4-alt4 - Rebuild according to new python policy * Thu May 20 2004 Andrey Astafiev <andrei@altlinux.ru> 2.4.2.4-alt3 - Rebuild according to new python policy. * Sun Dec 07 2003 Andrey Astafiev <andrei@altlinux.ru> 2.4.2.4-alt2 - Rebuild with python23. * Wed Oct 22 2003 Andrey Astafiev <andrei@altlinux.ru> 2.4.2.4-alt1 - 2.4.2.4 * Sun Sep 28 2003 Andrey Astafiev <andrei@altlinux.ru> 2.4.1.2-alt1 - 2.4.1.2 - Some minor changes in spec. * Fri Jun 20 2003 Andrey Astafiev <andrei@altlinux.ru> 2.4.0.7-alt1 - 2.4.0.7 * Fri Mar 07 2003 Andrey Astafiev <andrei@altlinux.ru> 2.4.0.1-alt2 - fix: buildprereq wxGTK-devel >= 2.4.0 - removed OpenGL support. * Thu Jan 16 2003 Andrey Astafiev <andrei@altlinux.ru> 2.4.0.1-alt1 - almost all spec was rewritten. - wxPythonGTK doesn't include wxGTK. - wxPythonGTK is obsolete. * Sun Nov 24 2002 Oleg Gints <go@altlinux.ru> 2.3.3.1-alt1 - new ALT spec based on spec from Robin Dunn <robin@alldunn.com> * Tue Feb 12 2002 Andrey Astafiev <andrei@altlinux.ru> 2.2.7-alt1 - rollback to stable branch 2.2.x. - 2.2.7. * Mon Jan 28 2002 Stanislav Ievlev <inger@altlinux.ru> 2.3.2.1-alt1 - rebuild with new python * Wed Jun 27 2001 AEN <aen@logic.ru> 2.3.0-alt1 - new version - built with python-2.1 * Sun Dec 17 2000 AEN <aen@logic.ru> - new RE spec based on spec from Robin Dunn <robin@alldunn.com> |