Package python-module-PyQt4: 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 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 | %define oname PyQt4 %def_with python3 Name: python-module-%oname Version: 4.10.3 Release: alt1.M70P.1 Summary: Python bindings for Qt. License: GPL Group: Development/Python %setup_python_module %oname Source0: PyQt-x11-gpl.tar URL: http://www.riverbankcomputing.co.uk/software/pyqt Packager: Python Development Team <python@packages.altlinux.org> BuildPreReq: %py_package_dependencies sip-devel >= 4.8.1 BuildPreReq: %py_package_dependencies dbus-devel %add_python_req_skip Compiler BuildRequires: gcc-c++ libqt4-devel lout BuildPreReq: python-module-qscintilla2-qt4-devel libqscintilla2-qt4-devel BuildRequires: python-module-sip-devel python-devel BuildPreReq: python-module-dbus-devel %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-sip-devel BuildPreReq: python3-module-dbus-devel #BuildPreReq: python3-module-qscintilla2-qt4-devel BuildPreReq: python3-module-sip-devel %endif %description Python bindings for the Qt C++ class library. Also includes a PyQt4 backend code generator for Qt Designer. %if_with python3 %package -n python3-module-%oname Summary: Python 3 bindings for Qt Group: Development/Python3 %add_python3_req_skip Compiler %description -n python3-module-%oname Python bindings for the Qt C++ class library. Also includes a PyQt4 backend code generator for Qt Designer. %package -n python3-module-%oname-devel Requires: python3-module-%oname = %version-%release Summary: Sip files for %name (Python 3) BuildArch: noarch Group: Development/Python3 %py3_provides %oname-devel %description -n python3-module-%oname-devel Sip files for PyQt to build extension %endif %package devel Requires: %name = %version-%release Summary: Sip files for %name BuildArch: noarch Group: Development/Python %py_package_provides %modulename-devel = %version-%release %description devel Sip files for PyQt to build extension %package examples Summary: PyQt4 examples Group: Development/Python BuildArch: noarch Requires: %name %py_package_provides %modulename-examples = %version-%release %description examples This package contains PyQt4 examples %package doc Summary: PyQt4 docs Group: Development/Python BuildArch: noarch Requires: %name %py_package_provides %modulename-examples = %version-%release %description doc This package contains PyQt4 docs %prep %setup -n PyQt-x11-gpl subst 's|/lib/libpython|/%_lib/libpython|g' configure.py subst 's|/lib" |/%_lib" |g' configure.py subst 's|#include <QTextStream>|#include <QTextStream>\n#define QT_SHARED\n|g' \ configure.py find . -type f -name \*.pro -o -name '*.pro-in' |while read f; do cat >> $f << 'E_O_F' QMAKE_CFLAGS += %optflags %optflags_shared QMAKE_CXXFLAGS += %optflags %optflags_shared E_O_F done %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %build export QT4DIR=%_qt4dir %add_optflags -I$PWD/qpy/QtGui echo 'yes' | python configure.py \ --debug \ --verbose \ -q %_qt4dir/bin/qmake \ -d %python_sitelibdir \ -p %_qt4dir/plugins \ -a --confirm-license \ --qsci-api \ --enable=designer-plugin \ CFLAGS+="%optflags" CXXFLAGS+="%optflags" for i in $(find ./ -name Makefile); do sed -i 's|-Wl,-rpath,|-I|g' $i done %make_build %if_with python3 pushd ../python3 echo 'yes' | python3 configure.py \ --debug \ --verbose \ -q %_qt4dir/bin/qmake \ -d %python3_sitelibdir \ -p %_qt4dir/plugins \ -a --confirm-license \ --qsci-api \ --no-designer-plugin \ --sipdir=%_datadir/sip3/%oname \ --qsci-api-destdir=%_datadir/qt4/qsci3 \ CFLAGS+="%optflags" CXXFLAGS+="%optflags" for i in $(find ./ -name Makefile); do sed -i 's|lpython3\.2|lpython3.2mu|g' $i done for i in $(find ./ -name Makefile); do sed -i 's|-Wl,-rpath,|-I|g' $i done %make_build popd %endif %install %if_with python3 pushd ../python3 %makeinstall_std INSTALL_ROOT=%buildroot popd pushd %buildroot%_bindir for i in $(ls); do mv $i py3_$i done popd rm -fR %buildroot%python3_sitelibdir/%oname/uic/port_v2 %endif %makeinstall_std INSTALL_ROOT=%buildroot rm -rf %buildroot%python_sitelibdir/%oname/uic/port_v3 ##wait ## install -d %buildroot/usr/share/sip/PyQt4/Qsci \ PyQt-x11-gpl/sip/QtGui #bzip2 ChangeLog %files %_bindir/* %if_with python3 %exclude %_bindir/py3_* %endif %python_sitelibdir/* %_qt4dir/plugins/designer/libpyqt4.so %files devel %dir %_datadir/sip %_datadir/sip/* %dir %_datadir/qt4 %_datadir/qt4/qsci %files doc %doc doc/* #doc NEWS README ChangeLog* THANKS %doc NEWS README THANKS %files examples %doc examples %if_with python3 %files -n python3-module-%oname %_bindir/py3_* %python3_sitelibdir/* %files -n python3-module-%oname-devel %dir %_datadir/sip3 %_datadir/sip3/* %dir %_datadir/qt4 %_datadir/qt4/qsci3 %endif %changelog * Thu Sep 11 2014 Andrey Cherepanov <cas@altlinux.org> 4.10.3-alt1.M70P.1 - Build module for Python3 too * Sat Nov 16 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.10.3-alt1 - Version 4.10.3 (ALT #29177) * Sun Jan 06 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9.6-alt3 - Fixed for arm (thnx sbolshakov@) * Fri Dec 28 2012 Gleb F-Malinovskiy <glebfm@altlinux.org> 4.9.6-alt2 - Added missing source files * Fri Dec 21 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9.6-alt1 - Version 4.9.6 * Mon Sep 10 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9.4-alt1 - Version 4.9.4 * Sat Jun 09 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9.1-alt6 - Added PyQt4.QtCore, PyQt4.QtGui and PyQt4.QtNetwork symbols into PyQt4.Qt (ALT #27424) * Wed May 23 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9.1-alt5 - Built module for Python 3 with qscintilla2 * Mon May 21 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9.1-alt4 - Added module for Python 3 (bootstrap) * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 4.9.1-alt3.1 - Rebuild to remove redundant libpython2.7 dependency * Thu Apr 05 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9.1-alt3 - Fixed build * Fri Feb 24 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9.1-alt2 - Rebuilt with QScintilla2 2.6.1 * Tue Feb 21 2012 Sergey Bolshakov <sbolshakov@altlinux.ru> 4.9.1-alt1 - Version 4.9.1 * Tue Jan 24 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.9-alt1 - Version 4.9 * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 4.8.4-alt1.1 - Rebuild with Python-2.7 * Sun Jul 24 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.8.4-alt1 - Version 4.8.4 * Mon Mar 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.8.3-alt2 - Rebuilt with debuginfo * Mon Jan 31 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.8.3-alt1 - Version 4.8.3 * Mon Nov 29 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.8.1-alt1 - Version 4.8.1 * Mon Aug 09 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.7.4-alt1 - Version 4.7.4 * Wed Jul 21 2010 Sergey V Turchin <zerg@altlinux.org> 4.7-alt3 - Rebuilt with qt 4.7 * Tue Apr 20 2010 Sergey V Turchin <zerg@altlinux.org> 4.7-alt1.M51.1 - build for M51 * Tue Jan 19 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.7-alt2 - Set devel, doc and examples packages as noarch * Tue Jan 19 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.7-alt1 - Version 4.7 * Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.5.4-alt1.1 - Rebuilt with python 2.6 * Wed Aug 26 2009 Evgeny Sinelnikov <sin@altlinux.ru> 4.5.4-alt1 - Update to new release * Mon Jul 20 2009 Evgeny Sinelnikov <sin@altlinux.ru> 4.5.2-alt1 - Update to new release * Mon Jul 13 2009 Evgeny Sinelnikov <sin@altlinux.ru> 4.5.1-alt1 - Update to new release * Tue Nov 25 2008 Evgeny Sinelnikov <sin@altlinux.ru> 4.4.4-alt1 - New version * Wed Aug 06 2008 Evgeny Sinelnikov <sin@altlinux.ru> 4.4.2-alt2 - Push rlz@ build to Sisyphus * Sat Jun 07 2008 Dmitry M. Maslennikov <rlz at altlinux.org> 4.4.2-alt1 - New version * Mon Dec 31 2007 Ivan Fedorov <ns@altlinux.org> 4.3.3-alt1 - 4.3.3 * Sun Nov 04 2007 Alexey Morsov <swi@altlinux.ru> 4.3.1-alt1 - 4.3.1 - total fix build on x86_64 * Wed Sep 05 2007 Ivan Fedorov <ns@altlinux.org> 4.3-alt3 - Fix build on x86_64 * Mon Sep 03 2007 Ivan Fedorov <ns@altlinux.org> 4.3-alt2 - Fix building bug * Fri Aug 31 2007 Ivan Fedorov <ns@altlinux.org> 4.3-alt1 - 4.3 * Thu Dec 28 2006 Ivan Fedorov <ns@altlinux.ru> 4.1.1-alt1 - 4.1.1 * Fri Sep 08 2006 Ivan Fedorov <ns@altlinux.ru> 4.0.1-alt1 - 4.0.1 * Mon Jun 12 2006 Ivan Fedorov <ns@altlinux.ru> 4.0-alt1 - 4.0 release * Sun Apr 09 2006 Ivan Fedorov <ns@altlinux.ru> 4.0.0-alt0.snap20060408.0 - 4.0.0-snapshot-20060408 * Sun Apr 09 2006 Ivan Fedorov <ns@altlinux.ru> 4.0.0-alt0.snap20060328.0 - 4.0.0-snapshot-20060328 * Sat Dec 31 2005 Ivan Fedorov <ns@altlinux.ru> 4.0.0-alt0.snap20051229.0 - 4.0.0-snapshot-20051229 * Wed Dec 07 2005 Ivan Fedorov <ns@altlinux.ru> 3.15.1-alt1 - 3.15.1 * Thu Jun 16 2005 ALT QA Team Robot <qa-robot@altlinux.org> 3.14.1-alt1.1.1.1.1 - Rebuilt with libqt3. * Thu Jun 02 2005 ALT QA Team Robot <qa-robot@altlinux.org> 3.14.1-alt1.1.1.1 - Rebuild with new libgnutls.so.11 . * Tue Apr 19 2005 ALT QA Team Robot <qa-robot@altlinux.org> 3.14.1-alt1.1.1 - Rebuilt with libqt3 * Fri Mar 25 2005 ALT QA Team Robot <qa-robot@altlinux.org> 3.14.1-alt1.1 - Rebuilt with libqt3 * Sat Mar 12 2005 Ivan Fedorov <ns@altlinux.ru> 3.14.1-alt1 - 3.14.1 - rebuild with python 2.4 * Sat Mar 05 2005 Ivan Fedorov <ns@altlinux.ru> 3.14-alt2 - small fix spec * Mon Feb 21 2005 Ivan Fedorov <ns@altlinux.ru> 3.14-alt1 - 3.14 * Fri Feb 04 2005 ALT QA Team Robot <qa-robot@altlinux.org> 3.13-alt4.1.1 - Rebuilt with qt3-3.3.4 * Thu Jan 20 2005 ALT QA Team Robot <qa-robot@altlinux.org> 3.13-alt4.1 - Rebuilt with libstdc++.so.6. * Mon Dec 27 2004 Ivan Fedorov <ns@altlinux.ru> 3.13-alt4 - fixing requires (libqt3) * Sun Dec 12 2004 Ivan Fedorov <ns@altlinux.ru> 3.13-alt3 - fix spec to be compatible with python policy * Wed Oct 27 2004 Eugene V. Horohorin <genix@altlinux.ru> 3.13-alt2 - fix sip>=4.1 requires bug (#5323) * Fri Sep 24 2004 Eugene V. Horohorin <genix@altlinux.org> 3.13-alt1 - new release * Tue Sep 21 2004 Eugene V. Horohorin <genix@altlinux.ru> 3.12-alt2 - new buildrequires * Thu Sep 02 2004 Eugene V. Horohorin <genix@altlinux.ru> 3.12-alt1 - new release - removed macros (_findprov_lib_path) - spec cleanup * Fri Aug 01 2003 Serge Sergeev <ssv@altlinux.ru> 3.7-alt2 - added _findprov_lib_path macro to temporary solve problem with dependencies * Tue Jul 08 2003 Serge Sergeev <ssv@altlinux.ru> 3.7-alt1 - new release * Mon Apr 28 2003 Serge Sergeev <ssv@altlinux.ru> 3.6-alt1 - new release * Thu Apr 10 2003 Serge Sergeev <ssv@altlinux.ru> 3.6-alt0.1 - New build from snapshot * Fri Dec 20 2002 Serge Sergeev <ssv@altlinux.ru> 3.5-alt2 - comment patch added ( this comment line needs for eric ) - add devel package ( need to build some extension of qt ) * Tue Dec 17 2002 Serge Sergeev <ssv@altlinux.ru> 3.5-alt1 - build with qscintilla - new release * Mon Dec 16 2002 Serge Sergeev <ssv@altlinux.ru> 3.5-alt0.1.20021205 - correct version * Sat Dec 07 2002 Serge Sergeev <ssv@altlinux.ru> 20021205-alt1 - build from snapshot - add documentation * Tue Nov 05 2002 Serge Sergeev <ssv@altlinux.ru> 3.4-alt1 - new release * Wed Sep 04 2002 Serge Sergeev <ssv@altlinux.ru> 3.3.2-alt1 - new release * Thu Jul 25 2002 <sergeyssv@mail.ru> - Initial release |