Package python-module-cups: 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 | %define oname cups %def_with python3 Name: python-module-%oname Version: 1.9.74 Release: alt2 %setup_python_module %oname Group: Development/Python Summary: Python bindings for the CUPS API Url: http://cyberelk.net/tim/software/pycups/ License: %gpl2plus # git://git.fedorahosted.org/git/pycups.git Source0: pycups-%{version}.tar Patch0: python-module-cups-1.9.74-alt-extension-copy-document.patch Packager: Yury Yurevich <anarresti@altlinux.org> BuildRequires(pre): rpm-build-licenses BuildRequires(pre): libcups-devel >= 2.2.12-alt2 BuildRequires: python-devel python-module-epydoc %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel %endif %description Python bindings for the CUPS API. This module allows use the CUPS API (managing printers, jobs, etc) in Python. %package -n python3-module-%oname Summary: Python bindings for the CUPS API Group: Development/Python3 %description -n python3-module-%oname Python bindings for the CUPS API. This module allows use the CUPS API (managing printers, jobs, etc) in Python. %package docs Summary: Documentation for Python bindings for the CUPS API Group: Development/Documentation BuildArch: noarch %description docs Python bindings for the CUPS API. This module allows use the CUPS API (managing printers, jobs, etc) in Python. This package contains documentation for Python bindings for the CUPS API. #-------------------------------------------------------------------- %prep %setup -n pycups-%version %patch0 -p1 %if_with python3 cp -fR . ../python3 sed -i 's|python|python3|g' ../python3/Makefile sed -i 's|python$|%__python|g' Makefile subst 's|#!.*python$|#!%__python3|' $(grep -Rl 'python$' *) %endif %build %make %if_with python3 pushd ../python3 %make popd %endif %make doc %install %makeinstall_std %if_with python3 pushd ../python3 %makeinstall_std popd %endif %files %doc NEWS README TODO test.py examples %python_sitelibdir/* %files docs %doc html/* %if_with python3 %files -n python3-module-%oname %doc NEWS README TODO test.py examples %python3_sitelibdir/* %endif %changelog * Mon Jun 21 2021 Paul Wolneykien <manowar@altlinux.org> 1.9.74-alt2 - Added API to support ALT copy document IPP extension. * Wed May 13 2020 Pavel Vasenkov <pav@altlinux.org> 1.9.74-alt1 - Version 1.9.74 * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.9.73-alt2.1 - (NMU) Rebuilt with python-3.6.4. * Mon Nov 28 2016 Anton V. Boyarshinov <boyarsh@altlinux.org> 1.9.73-alt2 - release bump for separate build into p8 * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.9.73-alt1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Wed Feb 10 2016 Sergey Alembekov <rt@altlinux.ru> 1.9.73-alt1 - Version 1.9.73 * Tue Aug 19 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.67-alt1 - Version 1.9.67 - Added module for Python 3 * Tue Oct 09 2012 Sergey V Turchin <zerg@altlinux.org> 1.9.62-alt1 - new version * Thu Jul 19 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 1.9.61-alt1 - 1.9.61 * Tue Mar 29 2011 Sergey V Turchin <zerg@altlinux.org> 1.9.55-alt1 - new version - clean requires * Mon Mar 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.49.git20100322-alt1.1 - Rebuilt for debuginfo * Sun Mar 28 2010 Yury Yurevich <anarresti@altlinux.org> 1.9.49+git20100322-alt1 - Update upstream to 1.9.49+git20100322 * Fri Feb 26 2010 Sergey V Turchin <zerg@altlinux.org> 1.9.48-alt1.M51.1 - built for M51 * Fri Feb 26 2010 Sergey V Turchin <zerg@altlinux.org> 1.9.48-alt2 - add requires to libcups version * Thu Feb 18 2010 Sergey V Turchin <zerg@altlinux.org> 1.9.48-alt1 - new version * Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.46-alt1.1 - Rebuilt with python 2.6 * Mon Jul 13 2009 Yury Yurevich <anarresti@altlinux.org> 1.9.46-alt1 - update upstream to 1.9.46 * Fri Apr 17 2009 Yury Yurevich <anarresti@altlinux.org> 1.9.45-alt2 - new packager (anarresti@) - use upstream's git as source - add examples to %%doc - use license macros * Thu Feb 05 2009 Sergey V Turchin <zerg at altlinux dot org> 1.9.45-alt1 - new version * Thu Nov 20 2008 Sergey V Turchin <zerg at altlinux dot org> 1.9.42-alt1 - initial specfile |