Package python-module-pycairo: 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 | %def_with doc %define modname cairo %define oname py%modname %define ver_major 1.13 Name: python-module-%oname Version: %ver_major.3 Release: alt0.M80P.1 Summary: Pycairo is a set of Python bindings for the cairo vector graphics library Group: Development/Python License: LGPLv2.1/MPLv1.1 Url: https://github.com/pygobject/pycairo # VCS: https://github.com/pygobject/pycairo.git Source: %url/releases/download/v%version/%oname-%version.tar.gz %setup_python_module %modname BuildRequires: libcairo-devel >= 1.12.0 BuildRequires: python-devel rpm-build-python3 python3-devel %{?!_with_bootstrap:BuildRequires: python-module-Pygments} %{?_with_doc:BuildPreReq: python-module-sphinx-devel python-module-sphinx_rtd_theme texlive-latex-base} %description The Pycairo bindings are designed to match the cairo C API as closely as possible, and to deviate only in cases which are clearly better implemented in a more 'Pythonic' way. %package -n python3-module-%oname Summary: Python3 bindings for Cairo Group: Development/Python3 %description -n python3-module-%oname This package provides Python3 wrappers for Cairo library %package -n python3-module-%oname-devel Summary: Development files for pycairo Group: Development/Python Requires: python3-module-%oname = %version-%release Requires: %name-common-devel = %version-%release %description -n python3-module-%oname-devel Development files for pycairo. %package common-devel Summary: Common development files for %oname Group: Development/Python %description common-devel Common development files for %oname used for both python2 and python3. %package devel Summary: Development files for pycairo Group: Development/Python Requires: %name = %version-%release Requires: %name-common-devel = %version-%release %description devel Development files for pycairo. %package docs Summary: Documentation for pycairo Group: Development/Documentation BuildArch: noarch %description docs Documentation for pycairo. %package tests Summary: Tests for pycairo Group: Development/Python Requires: %name = %version-%release %description tests Documentation for pycairo. %package examples Summary: Examples for pycairo Group: Development/Python Requires: %name = %version-%release %description examples Examples for pycairo. %package pickles Summary: Pickles for pycairo Group: Development/Python %description pickles Pickles for pycairo. %prep %setup -n %oname-%version -a0 mv %oname-%version py3build # fix pc-file install subst 's|\"lib\"|"%_lib"|' {,py3build/}setup.py %{?_with_doc:%prepare_sphinx docs} %build %python_build %{?_with_doc:%make -C docs} pushd py3build %python3_build popd %install pushd py3build %python3_install popd %python_install # docs install -d %buildroot%_docdir/%name-%version install -p -m644 NEWS README* \ %buildroot%_docdir/%name-%version %if_with doc cp -fR docs/_build/reference %buildroot%_docdir/%name-%version/ # pickles install -d %buildroot%python_sitelibdir/%oname/pickle cp -fR docs/_build/.doctrees/* %buildroot%python_sitelibdir/%oname/pickle/ # tests and examples cp -fR examples tests %buildroot%python_sitelibdir/%modulename/ for i in $(find %buildroot%python_sitelibdir/%modulename/examples -type d) do touch $i/__init__.py done %pre pickles rm -fR %python_sitelibdir/%oname/pickle %endif # doc %files %doc %dir %_docdir/%name-%version %doc %_docdir/%name-%version/NEWS %doc %_docdir/%name-%version/README* %python_sitelibdir/%modulename %if_with doc %exclude %python_sitelibdir/%modulename/tests %exclude %python_sitelibdir/%modulename/examples %endif %files -n python3-module-%oname %python3_sitelibdir/%modname/ %files common-devel %_includedir/%oname/ %files devel %_pkgconfigdir/%oname.pc %files -n python3-module-%oname-devel %_pkgconfigdir/py3cairo.pc %if_with doc %files docs %doc %dir %_docdir/%name-%version %doc %_docdir/%name-%version %exclude %_docdir/%name-%version/NEWS %exclude %_docdir/%name-%version/README* %files tests %python_sitelibdir/%modulename/tests %files examples %python_sitelibdir/%modulename/examples %files pickles %dir %python_sitelibdir/%oname %python_sitelibdir/%oname/pickle/ %endif %changelog * Sun Sep 03 2017 Yuri N. Sedunov <aris@altlinux.org> 1.13.3-alt0.M80P.1 - backport to p8 * Fri Jun 09 2017 Yuri N. Sedunov <aris@altlinux.org> 1.13.3-alt1 - 1.13.3 * Thu Jun 01 2017 Yuri N. Sedunov <aris@altlinux.org> 1.13.2-alt1 - 1.13.2 * Wed May 10 2017 Yuri N. Sedunov <aris@altlinux.org> 1.13.1-alt1 - 1.13.1 * Fri May 05 2017 Yuri N. Sedunov <aris@altlinux.org> 1.12.0-alt0.M80P.1 - backport to p8 * Sat Apr 22 2017 Yuri N. Sedunov <aris@altlinux.org> 1.12.0-alt1 - 1.12.0 * Sat Apr 22 2017 Yuri N. Sedunov <aris@altlinux.org> 1.11.0-alt1 - 1.11.0 (new upstream), built 2 & 3 modules from one source * Thu Jan 12 2017 Michael Shigorin <mike@altlinux.org> 1.10.1-alt2.git20120522.1 - BOOTSTRAP: added doc knob (on by default) * Thu Oct 11 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.10.1-alt2.git20120522 - New snapshot * Mon Nov 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.10.1-alt2.git20110619 - Enabled docs (except pdf) and pickles * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.10.1-alt1.git20110619.1 - Rebuild with Python-2.7 - bootstrap without docs and pickles * Sat Aug 20 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.10.1-alt1.git20110619 - New snapshot - Fixed updating (ALT #26118) * Mon May 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.10.1-alt1.git20110502 - Version 1.10.1 * Tue Apr 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.11-alt1.git20110328.1 - Rebuilt with python-module-sphinx-devel * Tue Mar 29 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.11-alt1.git20110328 - Some fixes from upstream * Sun Mar 13 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.11-alt1.git20110123 - Version 1.8.11 - Rebuilt for debuginfo * Thu Oct 28 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.10-alt1.git20100922.1 - Rebuilt for soname set-versions * Mon Oct 18 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.10-alt1.git20100922 - Version 1.8.10 (ALT #24355) * Fri Feb 26 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.9-alt1.git20100114 - Version 1.8.9 - Added docs, tests, examples and pickles packages * Tue Nov 10 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.6-alt1.1 - Rebuilt with python 2.6 * Wed Jul 01 2009 Alexey Shabalin <shaba@altlinux.ru> 1.8.6-alt1 - new version 1.8.6 (with rpmrb script) - update buildreq - add patch for build with python-2.5 (upstream requires 2.6) * Tue Sep 30 2008 Alexey Shabalin <shaba@altlinux.ru> 1.4.12-alt1 - new version 1.4.12 (with rpmrb script) * Thu Jan 24 2008 Grigory Batalov <bga@altlinux.ru> 1.4.0-alt1.1 - Rebuilt with python-2.5. * Sun Jun 24 2007 Vitaly Lipatov <lav@altlinux.ru> 1.4.0-alt1 - new version 1.4.0 (with rpmrb script) * Sat Apr 07 2007 Vitaly Lipatov <lav@altlinux.ru> 1.2.6-alt1 - new version 1.2.6 (with rpmrb script) * Sat Sep 02 2006 Vitaly Lipatov <lav@altlinux.ru> 1.2.2-alt0.1 - new version 1.2.2 (with rpmrb script) * Sun Apr 30 2006 Vitaly Lipatov <lav@altlinux.ru> 1.0.2-alt3 - rebuild with new cairo * Thu Feb 09 2006 Vitaly Lipatov <lav@altlinux.ru> 1.0.2-alt2 - update build requires * Tue Nov 22 2005 Vitaly Lipatov <lav@altlinux.ru> 1.0.2-alt1 - fix build/install sections (#7930) - split devel package * Tue Oct 04 2005 Vitaly Lipatov <lav@altlinux.ru> 1.0.2-alt0.1 - new version - add pycairo.pc to install * Mon Sep 12 2005 Vitaly Lipatov <lav@altlinux.ru> 1.0.0-alt2 - enable build cairo.gtk * Fri Sep 02 2005 Vitaly Lipatov <lav@altlinux.ru> 1.0.0-alt1 - new version * Sun Aug 28 2005 Vitaly Lipatov <lav@altlinux.ru> 0.9.0-alt0.1 - first build for ALT Linux Sisyphus |