Package python-module-dateutil: 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 | %define _unpackaged_files_terminate_build 1 %def_without python3 %def_without check %define oname dateutil Name: python-module-%oname Version: 2.8.1 Release: alt2 Summary: Extensions to the standard datetime module License: PSF Group: Development/Python Url: https://pypi.python.org/pypi/python-dateutil/ BuildArch: noarch Packager: Vitaly Lipatov <lav@altlinux.ru> %add_python_req_skip _winreg winreg # Source-url: %__pypi_url python-dateutil Source: %name-%version.tar Patch1: %oname-2.7.3-alt-tests.patch BuildRequires: python-devel python-modules-encodings BuildRequires: python-module-setuptools python-module-six BuildRequires: pytz-zoneinfo BuildRequires: python2.7(setuptools_scm) %if_with check BuildRequires: python2.7(pytest) python2.7(hypothesis) python2.7(freezegun) BuildRequires: python-module-pytest-cov %endif %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-setuptools BuildRequires: python3(setuptools_scm) %if_with check BuildRequires: python3(pytest) python3(hypothesis) python3(freezegun) BuildRequires: python3-module-pytest-cov %endif %endif BuildRequires(pre): rpm-build-intro Requires: pytz-zoneinfo %description The dateutil module provides powerful extensions to the standard datetime module, available in Python 2.3+. Allows: - computing of relative deltas (next month, next year, next monday, last week of month, etc), - computing of dates based on very flexible recurrence rules, using a superset of the [WWW] iCalendar specification, - parsing of RFC strings, - peneric parsing of dates in almost any string format. %if_with python3 %package -n python3-module-%oname Summary: Extensions to the standard datetime module Group: Development/Python3 Requires: pytz-zoneinfo %add_python3_req_skip _winreg winreg %description -n python3-module-%oname The dateutil module provides powerful extensions to the standard datetime module, available in Python 2.3+. Allows: - computing of relative deltas (next month, next year, next monday, last week of month, etc), - computing of dates based on very flexible recurrence rules, using a superset of the [WWW] iCalendar specification, - parsing of RFC strings, - peneric parsing of dates in almost any string format. %endif %prep %setup %patch1 -p1 # FIXME: Make sure a unicode string can be passed to TZ (GH #802) %__subst "s|test_gettz_badzone_unicode|disabled_test_gettz_badzone_unicode|" dateutil/test/test_tz.py %if_with python3 cp -fR . ../python3 %endif %build export SETUPTOOLS_SCM_PRETEND_VERSION=%version %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install export SETUPTOOLS_SCM_PRETEND_VERSION=%version %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %if_with check %check export SETUPTOOLS_SCM_PRETEND_VERSION=%version py.test %if_with python3 pushd ../python3 py.test3 popd %endif %endif %files %doc LICENSE NEWS README* %python_sitelibdir/*egg-info/ %python_sitelibdir/dateutil %if_with python3 %files -n python3-module-%oname %doc LICENSE NEWS README* %python3_sitelibdir/*egg-info/ %python3_sitelibdir/dateutil %endif %changelog * Tue Sep 01 2020 Vitaly Lipatov <lav@altlinux.ru> 2.8.1-alt2 - build python2 only module without tests * Sun Mar 22 2020 Vitaly Lipatov <lav@altlinux.ru> 2.8.1-alt1 - new version (2.8.1) with rpmgs script (ALT bug 37303) - move files against in to subdirectory * Wed Aug 08 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 2.7.3-alt1 - Updated to upstream version 2.7.3. - Rebuilt module for python-3. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 2.6.0-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Sat Jul 22 2017 Vitaly Lipatov <lav@altlinux.ru> 2.6.0-alt1 - new version 2.6.0 (with rpmrb script) * Fri Jul 31 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.2-alt1 - Version 2.4.2 * Thu Dec 04 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3-alt2 - Don't delete dateutil-zoneinfo.tar.gz * Thu Dec 04 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3-alt1 - Version 2.3 * Thu Nov 27 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2-alt1 - Version 2.2 * Mon Nov 03 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5-alt1.3 - Rebuilt with new pytz * Thu Oct 30 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5-alt1.2 - Don't delete zoneinfo * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.5-alt1.1 - Rebuild with Python-2.7 * Tue Mar 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5-alt1 - Version 1.5 * Tue Feb 02 2010 Vitaly Lipatov <lav@altlinux.ru> 1.4.1-alt1 - new version 1.4.1 (with rpmrb script) * Thu Nov 12 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1-alt0.2.1.1 - Rebuilt with python 2.6 * Fri Feb 01 2008 Grigory Batalov <bga@altlinux.ru> 1.1-alt0.2.1 - Rebuilt with python-2.5. * Fri Feb 01 2008 Grigory Batalov <bga@altlinux.ru> 1.1-alt0.2 - Build as noarch. * Sun Nov 12 2006 Vitaly Lipatov <lav@altlinux.ru> 1.1-alt0.1 - initial build for ALT Linux Sisyphus - spec from PLD (thanks!) |