Пакет python3-module-django: 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 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 | %define branch 3.2 %define origname Django %define oname django %def_disable check %add_python3_req_skip hotshot StringIO %add_findreq_skiplist %python3_sitelibdir/%oname/contrib/gis/db/backends/*/* Summary: A high-level Python 3 Web framework that encourages rapid development and clean, pragmatic design. Name: python3-module-%oname Version: 3.2.16 Release: alt1 Source0: %origname-%version.tar License: BSD Group: Development/Python3 BuildArch: noarch VCS: https://github.com/django/django URL: http://www.djangoproject.com/ Provides: %name%branch = %EVR Provides: %name%branch-tests = %EVR Obsoletes: %name%branch < %EVR Obsoletes: %name%branch-tests < %EVR Provides: %name-tests = %EVR Obsoletes: %name-tests < %EVR %py3_provides django.core.management.commands.loaddata %py3_provides django.core.management.commands.test %py3_provides django.core.management.commands.runserver Conflicts: python3-module-django1.11 Conflicts: python3-module-django1.11-tests %add_python3_req_skip django.test.signals BuildRequires(pre): rpm-build-python3 BuildRequires: bash-completion %if_enabled check BuildRequires: python3(sqlparse) BuildRequires: python3(pytz) BuildRequires: python3(sqlite3) BuildRequires: python3(jinja2) BuildRequires: python3(numpy) BuildRequires: python3(pylibmc) BuildRequires: python3(memcache) BuildRequires: python3(yaml) BuildRequires: python3(selenium) %endif %description %summary %package dbbackend-mysql Summary: MySQLSQL support for Django Group: Development/Python3 Requires: %name = %EVR Provides: %name%branch-dbbackend-mysql = %EVR Obsoletes: %name%branch-dbbackend-mysql < %EVR Conflicts: python3-module-django1.11-dbbackend-mysql %py3_requires MySQLdb %description dbbackend-mysql %summary %package dbbackend-postgresql Summary: PostgreSQL support for Django. Group: Development/Python3 Requires: %name = %EVR Provides: %name%branch-dbbackend-psycopg = %EVR Obsoletes: %name%branch-dbbackend-psycopg < %EVR Provides: %name%branch-dbbackend-psycopg2 = %EVR Obsoletes: %name%branch-dbbackend-psycopg2 < %EVR Conflicts: python3-module-django1.11-dbbackend-psycopg Conflicts: python3-module-django1.11-dbbackend-psycopg2 %py3_requires psycopg2 %description dbbackend-postgresql %summary %package dbbackend-sqlite3 Summary: SQLite3 support for Django (Python 3) Group: Development/Python3 Requires: %name = %EVR Provides: %name%branch-dbbackend-sqlite3 = %EVR Obsoletes: %name%branch-dbbackend-sqlite3 < %EVR Conflicts: python3-module-django1.11-dbbackend-sqlite3 %py3_requires sqlite3 %description dbbackend-sqlite3 %summary %package dbbackend-oracle Summary: Oracle support for Django (Python 3) Group: Development/Python3 Requires: %name = %EVR Provides: %name%branch-dbbackend-oracle = %EVR Obsoletes: %name%branch-dbbackend-oracle < %EVR %add_python3_req_skip cx_Oracle %description dbbackend-oracle %summary %package doc Summary: Django documentation Group: Development/Python3 Provides: %name%branch-doc = %EVR Obsoletes: %name%branch-doc < %EVR Conflicts: python3-module-django1.11-doc %description doc %summary %prep %setup -n %origname-%version # Use system six instead of bundled find -type f -name '*.py*' -exec sed -i 's|django.utils.six|six|' -- '{}' + find -type f -name '*.py*' -exec sed -i 's|%_bindir/env python|%_bindir/python3|' -- '{}' + find -type f -name '*.py' -exec sed -i 's|.*from future_builtins import zip.*||' -- '{}' + %build %python3_build %install export LC_ALL=en_US.UTF-8 %python3_install # install man pages (for the main executable only) mkdir -p %buildroot%_man1dir cp -p docs/man/* %buildroot%_man1dir # install bash completion script bashcompdir=$(pkg-config --variable=completionsdir bash-completion) mkdir -p %{buildroot}$bashcompdir install -m 0644 -p extras/django_bash_completion \ %{buildroot}$bashcompdir/django-admin ln -s django-admin %{buildroot}$bashcompdir/django-admin-3 ln -s django-admin %{buildroot}$bashcompdir/python3-django-admin # Add backward compatible links to %%{_bindir} ln -s ./django-admin %buildroot%_bindir/django-admin-3 ln -s ./django-admin %buildroot%_bindir/python3-django-admin # remove .po files find %buildroot -name "*.po" | xargs rm -f %check export PYTHONPATH=$(pwd) cd tests LANG="en_US.UTF-8" python3 runtests.py --settings=test_sqlite --verbosity=2 --parallel 1 %files %_bindir/* %_man1dir/* %_datadir/bash-completion/completions/* %python3_sitelibdir/* #exclude %%python3_sitelibdir/%%oname/core/handlers/modpython.py* #exclude %%python3_sitelibdir/%%oname/contrib/auth/handlers/modpython.py* %exclude %python3_sitelibdir/%oname/db/backends/mysql %exclude %python3_sitelibdir/%oname/db/backends/postgresql %exclude %python3_sitelibdir/%oname/db/backends/sqlite3 %exclude %python3_sitelibdir/%oname/db/backends/oracle %files doc %doc docs %files dbbackend-mysql %python3_sitelibdir/%oname/db/backends/mysql %files dbbackend-postgresql %python3_sitelibdir/%oname/db/backends/postgresql %files dbbackend-oracle %python3_sitelibdir/%oname/db/backends/oracle %files dbbackend-sqlite3 %python3_sitelibdir/%oname/db/backends/sqlite3 %changelog * Tue Oct 11 2022 Alexey Shabalin <shaba@altlinux.org> 3.2.16-alt1 - new version 3.2.16 - Fixes for the following security vulnerabilities: + CVE-2022-41323 Potential denial-of-service vulnerability in internationalized URLs * Mon Aug 22 2022 Alexey Shabalin <shaba@altlinux.org> 3.2.15-alt1 - new version 3.2.15 - Fixes for the following security vulnerabilities: + CVE-2022-34265 Potential SQL injection via Trunc(kind) and Extract(lookup_name) arguments. + CVE-2022-36359 Potential reflected file download vulnerability in FileResponse. * Mon Apr 11 2022 Anton Farygin <rider@altlinux.ru> 3.2.13-alt1 - 3.2.12 -> 3.2.13 - Fixes: * CVE-2022-28346: Potential SQL injection in QuerySet.annotate(), aggregate(), and extra() * CVE-2022-28347: Potential SQL injection via QuerySet.explain(**options) on PostgreSQL * Sun Feb 20 2022 Anton Farygin <rider@altlinux.ru> 3.2.12-alt1 - 3.2.11 -> 3.2.12 - Fixes for the following security vulnerabilities: + CVE-2022-22818: Possible XSS via {% debug %} template tag. + CVE-2022-23833: Denial-of-service possibility in file uploads. * Tue Jan 18 2022 Alexey Shabalin <shaba@altlinux.org> 3.2.11-alt1 - new version 3.2.11 - Fixes for the following security vulnerabilities: + CVE-2021-45115 Prevented DoS vector in UserAttributeSimilarityValidator. + CVE-2021-45116 Fixed potential information disclosure in dictsort template filter. + CVE-2021-45452 Fixed potential path traversal in storage subsystem. * Fri Dec 17 2021 Alexey Shabalin <shaba@altlinux.org> 3.2.10-alt1 - new version 3.2.10 - Fixes for the following security vulnerabilities: + CVE-2021-44420 Fixed potential bypass of an upstream access control based on URL paths. * Fri Nov 05 2021 Alexey Shabalin <shaba@altlinux.org> 3.2.9-alt1 - new version 3.2.9 * Wed Aug 18 2021 Alexey Shabalin <shaba@altlinux.org> 3.2.6-alt1 - new version 3.2.6 - Rename dbbackend-psycopg2 to dbbackend-postgresql - Add dbbackend-oracle package - Fixes for the following security vulnerabilities: + CVE-2021-35042 Potential SQL injection via unsanitized QuerySet.order_by() input * Tue Jul 13 2021 Alexey Shabalin <shaba@altlinux.org> 2.2.24-alt1 - new version 2.2.24 - Fixes for the following security vulnerabilities: + CVE-2021-28658 Potential directory-traversal via uploaded files + CVE-2021-31542 Potential directory-traversal via uploaded files + CVE-2021-32052 Header injection possibility since URLValidator accepted newlines in input on Python 3.9.5+ + CVE-2021-33203 Potential directory traversal via admindocs + CVE-2021-33571 Possible indeterminate SSRF, RFI, and LFI attacks since validators accepted leading zeros in IPv4 addresses * Wed Feb 24 2021 Alexey Shabalin <shaba@altlinux.org> 2.2.19-alt2 - Drop Provides: Django * Wed Feb 24 2021 Alexey Shabalin <shaba@altlinux.org> 2.2.19-alt1 - 2.2.19 - rename package to python3-module-django back - Fixes for the following security vulnerabilities: + CVE-2021-3281 Potential directory-traversal via archive.extract() + CVE-2021-23336 Web cache poisoning via django.utils.http.limited_parse_qsl() * Tue Feb 09 2021 Grigory Ustinov <grenka@altlinux.org> 2.2.17-alt2 - Disable check for bootstrap of python3.9. * Fri Dec 11 2020 Alexey Shabalin <shaba@altlinux.org> 2.2.17-alt1 - new version 2.2.17 - Fixes for the following security vulnerabilities: + CVE-2020-13254 Potential data leakage via malformed memcached keys + CVE-2020-13596 Possible XSS via admin ForeignKeyRawIdWidget + CVE-2020-24583: Incorrect permissions on intermediate-level directories on Python 3.7+ + CVE-2020-24584: Permission escalation in intermediate-level directories of the file system cache on Python 3.7+ * Tue Apr 14 2020 Alexey Shabalin <shaba@altlinux.org> 2.2.12-alt3 - add more provides * Sun Apr 12 2020 Alexey Shabalin <shaba@altlinux.org> 2.2.12-alt2 - merge tests package to main - move bash-completions to %%_datadir - add man pages to package - enable tests * Sun Apr 12 2020 Alexey Shabalin <shaba@altlinux.org> 2.2.12-alt1 - 2.2.12 - Fixes for the following security vulnerabilities: + CVE-2019-19118 Privilege escalation in the Django admin. + CVE-2019-19844 Potential account hijack via password reset form + CVE-2020-7471 Potential SQL injection via StringAgg(delimiter) + CVE-2020-9402 Potential SQL injection via tolerance parameter in GIS functions and aggregates on Oracle * Fri Aug 23 2019 Alexey Appolonov <alexey@altlinux.org> 2.2.4-alt2 - Build with flagged conflict with python-module-django1.11 (due to file '/etc/bash_completion.d/django.sh'). * Mon Aug 05 2019 Alexey Shabalin <shaba@altlinux.org> 2.2.4-alt1 - 2.2.4 - Fixes for the following security vulnerabilities: + CVE-2019-14232 Adjusted regex to avoid backtracking issues when truncating HTML + CVE-2019-14233 Prevented excessive HTMLParser recursion in strip_tags() when handling incomplete HTML entities + CVE-2019-14234 Protected JSONField/HStoreField key and index lookups against SQL injection + CVE-2019-14235 Fixed potential memory exhaustion in django.utils.encoding.uri_to_iri() * Tue Jul 16 2019 Alexey Shabalin <shaba@altlinux.org> 2.2.3-alt2 - tear circular dependencies python3-module-django2.2 and python3-module-django2.2-tests * Mon Jul 15 2019 Alexey Shabalin <shaba@altlinux.org> 2.2.3-alt1 - 2.2.3 - build python3 only - rename package to python3-module-django2.2 - Fixes for the following security vulnerabilities: + CVE-2019-12781 Incorrect HTTP detection with reverse-proxy connecting via HTTPS + CVE-2019-12308 AdminURLFieldWidget XSS + CVE-2019-6975 Memory exhaustion in django.utils.numberformat.format() + CVE-2019-3498 Content spoofing possibility in the default 404 page + CVE-2018-16984 Password hash disclosure to view only admin users + CVE-2018-14574 Open redirect possibility in CommonMiddleware + CVE-2018-7536 Denial-of-service possibility in urlize and urlizetrunc template filters + CVE-2018-7537 Denial-of-service possibility in truncatechars_html and truncatewords_html template filters + CVE-2018-6188 Information leakage in AuthenticationForm * Mon Dec 17 2018 Grigory Ustinov <grenka@altlinux.org> 1.11.17-alt1 - Build new version (Closes: #35861). - Transfer to python3. - Temporary disabled check. * Wed Apr 12 2017 Alexey Shabalin <shaba@altlinux.ru> 1.8.18-alt1 - 1.8.18 - fixed CVE-2017-7233,CVE-2017-7234 * Thu Feb 02 2017 Alexey Shabalin <shaba@altlinux.ru> 1.8.17-alt1 - 1.8.17 - fixed CVE-2016-9013,CVE-2016-9014 * Mon Oct 24 2016 Alexey Shabalin <shaba@altlinux.ru> 1.8.15-alt1 - 1.8.15 - fixed CVE-2016-2512,CVE-2016-2513,CVE-2016-6186,CVE-2016-7401 * Mon Apr 11 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.8.7-alt1.1.1.1 - (NMU) rebuild with rpm-build-python3-0.1.10 (for new-style python3(*) reqs) and with python3-3.5 (for byte-compilation). * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.8.7-alt1.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Fri Jan 29 2016 Mikhail Efremov <sem@altlinux.org> 1.8.7-alt1.1 - NMU: Use buildreq for BR. * Fri Nov 27 2015 Alexey Shabalin <shaba@altlinux.ru> 1.8.7-alt1 - 1.8.7 - fixed CVE-2015-8213 * Tue Oct 13 2015 Alexey Shabalin <shaba@altlinux.ru> 1.8.5-alt1 - 1.8.5 - fixed CVE-2015-5143, CVE-2015-5144, CVE-2015-5145, CVE-2015-5964, CVE-2015-5963 * Thu Apr 02 2015 Alexey Shabalin <shaba@altlinux.ru> 1.8-alt2 - Version 1.8 * Wed Apr 01 2015 Alexey Shabalin <shaba@altlinux.ru> 1.8-alt1.c1 - Version 1.8c1 * Thu Feb 26 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt1.b1 - Version 1.8b1 * Wed Oct 01 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.7-alt1 - Version 1.7 * Tue Sep 02 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.6.6-alt1 - Version 1.6.6 * Sat Jul 19 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.6.5-alt1 - Version 1.6.5 * Mon Apr 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.1-alt1.1 - Use 'find... -exec...' instead of 'for ... $(find...' * Wed Apr 03 2013 Aleksey Avdeev <solo@altlinux.ru> 1.5.1-alt1 - Version 1.5.1 - Fix python3-module-django * Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 1.5.0-alt4.1 - Rebuild with Python-3.3 * Wed Feb 27 2013 Aleksey Avdeev <solo@altlinux.ru> 1.5.0-alt4 - Rename package to python-module-django * Wed Feb 27 2013 Aleksey Avdeev <solo@altlinux.ru> 1.5.0-alt3 - Version 1.5.0 * Tue Feb 26 2013 Aleksey Avdeev <solo@altlinux.ru> 1.5.0-alt2.rc2 - Version 1.5.0-rc2 - Rename package to python-module-django1.5 - Remove %%name-mod_python subpackage * Tue Jun 05 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.alpha - Version 1.5.0-alpha * Thu May 03 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4-alt1 - Version 1.4 (ALT #27288) * Thu Dec 15 2011 Vladimir V. Kamarzin <vvk@altlinux.org> 1.3.1-alt1 - Version 1.3.1. Security fixes: https://www.djangoproject.com/weblog/2011/sep/09/security-releases-issued/ * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.3-alt1.1 - Rebuild with Python-2.7 * Tue May 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3-alt1 - Version 1.3 * Fri Feb 25 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.5-alt1 - Version 1.2.5 * Sat Nov 27 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.3-alt1 - Version 1.2.3 * Thu Aug 26 2010 Andrey Rahmatullin <wrar@altlinux.org> 1.2.1-alt2 - do not search for dependencies in django/contrib/gis/db/backends (closes: #23924) * Mon Aug 02 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.1-alt1 - Version 1.2.1 - Added tests (ALT #22479) * Sun Mar 21 2010 Denis Klimov <zver@altlinux.org> 1.2-alt3.svn12825 - fix inherit with alt gear * Sun Mar 21 2010 Denis Klimov <zver@altlinux.org> 1.2-alt2.svn12825 - new version - remove examples subpackage. It was removed from Django. * Tue Feb 09 2010 Denis Klimov <zver@altlinux.org> 1.2-alt2.svn12398 - new version * Mon Nov 23 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2-alt2.svn11756.1 - Rebuilt with python 2.6 * Sat Nov 21 2009 Denis Klimov <zver@altlinux.org> 1.2-alt2.svn11756 - add conflicts * Sat Nov 21 2009 Denis Klimov <zver@altlinux.org> 1.2-alt1.svn11756 - new version - use python macros - add doc and examples subpackages - remove test files * Sat Sep 19 2009 Denis Klimov <zver@altlinux.org> 1.1-alt2.svn11581 - change depend for sqlite python module (Closes: #18957) * Fri Sep 18 2009 Denis Klimov <zver@altlinux.org> 1.1-alt1.svn11581 - new version (Closes: #21617) * Thu Jun 04 2009 Denis Klimov <zver@altlinux.org> 1.1-alt1.svn10914 - new version (Closes: #20300) * Thu May 07 2009 Denis Klimov <zver@altlinux.org> 1.1-alt1.svn10702 - new version from trunk - remove needless -q option from setup macros - remove commented lines - turn off test section * Fri Mar 20 2009 Denis Klimov <zver@altlinux.org> 1.0-alt5.svn10105 - new version from trunk * Sun Feb 15 2009 Denis Klimov <zver@altlinux.org> 1.0-alt5.svn9832 - new version from trunk * Thu Sep 04 2008 Andrew Kornilov <hiddenman@altlinux.ru> 1.0-alt5 - 1.0 release * Mon Sep 01 2008 Andrew Kornilov <hiddenman@altlinux.ru> 1.0-alt4.beta_2 - 1.0 beta 2 * Sun Aug 17 2008 Andrew Kornilov <hiddenman@altlinux.ru> 1.0-alt3.beta_1 - 1.0 beta 1 * Thu Aug 14 2008 Andrew Kornilov <hiddenman@altlinux.ru> 1.0-alt2.alpha_2 - 1.0 alpha 2 - BuildReq updates * Fri Jul 25 2008 Andrew Kornilov <hiddenman@altlinux.ru> 1.0-alt1.alpha - First 1.0 alpha - Spec updates - Removed ChangeLog.bz2 - Use Django unit tests * Tue May 20 2008 Andrew Kornilov <hiddenman@altlinux.ru> 0.97-alt1.svn7540 - Latest SVN trunk sources (Closes: #15646) - Security fixes (http://groups.google.com/group/django-developers/browse_thread/thread/903d7c2af239ec42) - Spec updates (pack subdirs) * Fri Apr 11 2008 Andrew Kornilov <hiddenman@altlinux.ru> 0.97-alt1.svn7412 - Latest SVN trunk sources - Fixed packages description * Thu Mar 20 2008 Andrew Kornilov <hiddenman@altlinux.ru> 0.97-alt1.svn7152 - SVN trunk * Sat Feb 09 2008 Andrew Kornilov <hiddenman@altlinux.ru> 0.97-alt1.svn7103 - Latest svn trunk sources * Mon Dec 10 2007 Andrew Kornilov <hiddenman@altlinux.ru> 0.97-alt0.2.svn6903 - Latest svn trunk sources * Sat Dec 08 2007 Andrew Kornilov <hiddenman@altlinux.ru> 0.97-alt0.2.svn6898 - Latest svn trunk sources * Mon Sep 24 2007 Andrew Kornilov <hiddenman@altlinux.ru> 0.97-alt0.1.svn6410 - Latest svn trunk sources - Temporarily removed cx_Oracle requirement - ChangeLog added to the docs - Removed core/handler.py because it's deprecated * Mon Jul 02 2007 Andrew Kornilov <hiddenman@altlinux.ru> 0.97-alt0.1.svn5583 - Near the 0.97 release * Sat May 26 2007 Andrew Kornilov <hiddenman@altlinux.ru> 0.96-alt1 - New version - Spec cleanups (package names) * Thu Mar 08 2007 Ivan Fedorov <ns@altlinux.ru> 0.95.1-alt1 - Initial build for ALT Linux Sisyphus. |