Пакет python-module-bsddb3: 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 | %define modname bsddb3 %def_enable python2 # sometime 1 test out of 501 fails only in girar %def_disable check Name: python-module-%modname Version: 6.2.7 Release: alt1 Summary: Python bindings for BerkleyDB Group: Development/Python License: BSD-3-Clause Url: https://pypi.python.org/pypi/bsddb3/ Source: https://pypi.io/packages/source/b/%modname/%modname-%version.tar.gz BuildRequires(pre): rpm-build-python3 BuildRequires: libdb4-devel python3-devel %{?_enable_python2:BuildRequires(pre): rpm-build-python BuildRequires: python-devel} %{?_enable_check:BuildRequires: /proc python3-test %{_enable_python2:python-test}} %description This package provides Python wrappers for Berkeley DB . %package -n python3-module-%modname Summary: Python3 bindings for BerkleyDB Group: Development/Python3 License: BSD %description -n python3-module-%modname This package provides Python3 wrappers for Berkeley DB. %prep %setup -n %modname-%version %{?_enable_python2:-a0 mv %modname-%version py2build} %build %python3_build %{?_enable_python2: pushd py2build %python_build popd} %install %python3_install %{?_enable_python2: pushd py2build %python_install popd} %check %__python3 test.py %{?_enable_python2: pushd py2build %__python test.py popd} %if_enabled python2 %files %python_sitelibdir/%modname/ %python_sitelibdir/%modname-%version-py*.egg-info %doc ChangeLog *.txt %exclude %python_sitelibdir/%modname/tests/ %endif %files -n python3-module-%modname %python3_sitelibdir/%modname/ %python3_sitelibdir/%modname-%version-py*.egg-info %exclude %python3_sitelibdir/%modname/tests/ %exclude %_includedir/python*/%modname/bsddb.h %changelog * Thu Feb 13 2020 Yuri N. Sedunov <aris@altlinux.org> 6.2.7-alt1 - 6.2.7 - made python2 build optional - fixed License tag * Wed Jul 11 2018 Yuri N. Sedunov <aris@altlinux.org> 6.2.6-alt1 - 6.2.6 * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 6.2.5-alt1.1 - (NMU) Rebuilt with python-3.6.4. * Fri Sep 15 2017 Yuri N. Sedunov <aris@altlinux.org> 6.2.5-alt1 - 6.2.5 * Sat Jan 28 2017 Yuri N. Sedunov <aris@altlinux.org> 6.2.4-alt1 - 6.2.4 * Wed Jun 01 2016 Yuri N. Sedunov <aris@altlinux.org> 6.2.1-alt1 - 6.2.1 * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 6.1.1-alt1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Fri Feb 19 2016 Yuri N. Sedunov <aris@altlinux.org> 6.1.1-alt1 - 6.1.1 * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 6.0.1-alt1.1 - NMU: Use buildreq for BR. * Sun Jul 06 2014 Yuri N. Sedunov <aris@altlinux.org> 6.0.1-alt1 - first build for Sisyphus |