Пакет python-module-xlib: 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 | %define oname xlib %def_with python3 #%%def_with check Name: python-module-%oname Version: 0.25 Release: alt1 Summary: Python X Library Group: Development/Python License: LGPL Url: https://github.com/python-xlib/python-xlib Source: %name-%version.tar BuildRequires: /usr/bin/texi2html BuildRequires: python-devel python-module-setuptools python-module-setuptools_scm %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-setuptools python3-module-setuptools_scm %endif %if_with check BuildRequires: python-module-six BuildRequires: python2.7(mock) BuildRequires: python-module-pytest %if_with python3 BuildRequires: python3-module-six BuildRequires: python3(mock) BuildRequires: python3-module-pytest %endif %endif %description The Python X Library is a complete X11R6 client-side implementation, written in pure Python. It can be used to write low-levelish X Windows client applications in Python. %package -n python3-module-%oname Summary: Python X Library Group: Development/Python3 %description -n python3-module-%oname The Python X Library is a complete X11R6 client-side implementation, written in pure Python. It can be used to write low-levelish X Windows client applications in Python. %package docs Summary: Documentation and examples for Python X Library Group: Development/Documentation BuildArch: noarch %description docs The Python X Library is a complete X11R6 client-side implementation, written in pure Python. It can be used to write low-levelish X Windows client applications in Python. This package contains documentation and examples for Python X Library. %prep %setup %if_with python3 cp -fR . ../python3-module-%oname %endif %build %python_build %if_with python3 pushd ../python3-module-%oname %python3_build popd %endif pushd doc/html %make SRCS=$PWD/../src TOPSRC=$PWD/../src/python-xlib.texi popd %install %python_install %if_with python3 pushd ../python3-module-%oname %python3_install popd %endif # hack for x86_64 build test -d %buildroot%_libdir || mv %buildroot%prefix/lib %buildroot%_libdir || : %if_with check %check python setup.py test py.test -vv %if_with python3 pushd ../python3 python3 setup.py test py.test3 -vv popd %endif %endif %files %doc README.rst LICENSE TODO %python_sitelibdir/* %if_with python3 %files -n python3-module-%oname %doc README.rst LICENSE TODO %python3_sitelibdir/* %endif %files docs %doc examples doc/html/*.html %changelog * Tue May 14 2019 Grigory Ustinov <grenka@altlinux.org> 0.25-alt1 - New version 0.25 * Wed Mar 07 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.21-alt1 - Updated to upstream version 0.21. * Tue Jan 03 2017 Anton Midyukov <antohami@altlinux.org> 0.18-alt1 - New version 0.18 * Mon Dec 07 2015 Igor Vlasenko <viy@altlinux.ru> 0.15-alt2.rc1.svn20131015 - added perl patch * Wed Aug 27 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.15-alt1.rc1.svn20131015 - Snapshot from svn * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.15-alt1.rc1.1 - Rebuild with Python-2.7 * Sun Nov 28 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.15-alt1.rc1 - Version 0.15rc1 * Mon Nov 16 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14-alt1.1.1 - Rebuilt with python 2.6 * Thu Jan 24 2008 Grigory Batalov <bga@altlinux.ru> 0.14-alt1.1 - Rebuilt with python-2.5. * Tue Oct 16 2007 Vitaly Lipatov <lav@altlinux.ru> 0.14-alt1 - new version 0.14 (with rpmrb script) * Tue Sep 12 2006 Vitaly Lipatov <lav@altlinux.ru> 0.12-alt2 - override alt1 in incoming :) - fix hack for x86_64 :) * Tue Jun 20 2006 Vitaly Lipatov <lav@altlinux.ru> 0.12-alt0.2 - hack for build at x86_64 (fix bug #9710) * Sun Dec 18 2005 Vitaly Lipatov <lav@altlinux.ru> 0.12-alt0.1 - initial build for ALT Linux Sisyphus |