Package python-module-simplejson: 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 | %define _unpackaged_files_terminate_build 1 %define oname simplejson %def_without python3 Name: python-module-%oname Version: 3.15.0 Release: alt4 Summary: Simplejson is a simple, fast, extensible JSON encoder/decoder for Python License: MIT/X Consortium Group: Development/Python Url: https://simplejson.readthedocs.io/ # https://github.com/simplejson/simplejson.git Source: %name-%version.tar Patch: %oname-3.5.3-alt-python3.patch BuildRequires: python-devel python-module-setuptools python-module-sphinx %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-dev python3-module-setuptools %endif %description Simplejson is a simple, fast, complete, correct and extensible JSON encoder and decoder for Python 2.3+. It is pure Python code with no dependencies. %package -n python3-module-%oname Summary: Simplejson is a simple, fast, extensible JSON encoder/decoder for Python Group: Development/Python3 %description -n python3-module-%oname Simplejson is a simple, fast, complete, correct and extensible JSON encoder and decoder for Python 2.3+. It is pure Python code with no dependencies. %package doc Summary: Documentation for %name Group: Development/Python BuildArch: noarch %description doc Simplejson is a simple, fast, complete, correct and extensible JSON encoder and decoder for Python 2.3+. It is pure Python code with no dependencies. This package contains documentation for simplejson. %prep %setup %if_with python3 cp -fR . ../python3 pushd ../python3 %patch -p2 popd %endif %build %add_optflags -fno-strict-aliasing %python_build_debug %if_with python3 pushd ../python3 %python3_build_debug popd %endif python2 ./scripts/make_docs.py %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %check python2 setup.py test %if_with python3 pushd ../python3 python3 setup.py test popd %endif %files %python_sitelibdir/%oname/ %exclude %python_sitelibdir/%oname/tests %python_sitelibdir/*.egg-info %files doc %doc docs/* %if_with python3 %files -n python3-module-%oname %python3_sitelibdir/%oname/ %exclude %python3_sitelibdir/%oname/tests %python3_sitelibdir/*.egg-info %endif %changelog * Sun Jul 04 2021 Vitaly Lipatov <lav@altlinux.ru> 3.15.0-alt4 - NMU: build python2 module only * Sun Jun 23 2019 Igor Vlasenko <viy@altlinux.ru> 3.15.0-alt3.qa1 - NMU: remove rpm-build-ubt from BR: * Sat Jun 15 2019 Igor Vlasenko <viy@altlinux.ru> 3.15.0-alt2.qa1 - NMU: remove %ubt from release * Sun Oct 14 2018 Igor Vlasenko <viy@altlinux.ru> 3.15.0-alt1.qa1%ubt - NMU: applied repocop patch * Thu Jun 14 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 3.15.0-alt1%ubt - Updated to upstream version 3.15.0. * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 3.11.1-alt1.1 - (NMU) Rebuilt with python-3.6.4. * Wed Oct 18 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 3.11.1-alt1 - Updated to upstream version 3.11.1. * Wed Jan 11 2017 Igor Vlasenko <viy@altlinux.ru> 3.10.0-alt1 - automated PyPI update * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 3.8.0-alt1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Sun Jul 26 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.0-alt1 - Version 3.8.0 * Sat Oct 25 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.6.5-alt1 - Version 3.6.5 * Mon Jul 21 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.5.3-alt1 - Version 3.5.3 - Added module for Python 3 * Wed Dec 04 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.3.1-alt1 - Version 3.3.1 * Mon Sep 23 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.3.0-alt1 - Version 3.3.0 * Mon Apr 09 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.5.0-alt1 - Version 2.5.0 * Tue Feb 07 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.1.3-alt1 - 2.1.3 - enable tests * Fri Oct 21 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.1.2-alt2.1 - Rebuild with Python-2.7 * Wed Mar 30 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1.2-alt2 - Rebuilt for debuginfo * Sun Nov 28 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1.2-alt1 - Version 2.1.2 * Thu Jul 29 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1.1-alt1 - Version 2.1.1 * Tue Dec 01 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.9-alt1.1 - Rebuilt with python 2.6 * Fri May 29 2009 Andrey Rahmatullin <wrar@altlinux.ru> 2.0.9-alt1 - 2.0.9 - numerous spec fixes - package documentation - don't package tests * Sat Jan 26 2008 Grigory Batalov <bga@altlinux.ru> 1.7.4-alt1.1 - Rebuilt with python-2.5. * Thu Nov 15 2007 Gennady Kovalev <gik@altlinux.ru> 1.7.4-alt1 - 1.7.4 release * Wed Mar 22 2006 Gennady Kovalev <gik@altlinux.ru> 1.1-alt1 - Initial build |