Package python-module-fs: 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 | %define _unpackaged_files_terminate_build 1 %define oname fs %def_with check %def_with docs Name: python-module-%oname Version: 2.2.1 Release: alt1 Summary: Filesystem abstraction layer License: MIT Group: Development/Python Url: https://pypi.org/project/fs/ BuildArch: noarch # https://github.com/PyFilesystem/pyfilesystem2.git Source: %name-%version.tar Patch: fs-2.2.1-alt-fix-tests-due-to-girar-environment.patch BuildRequires(pre): rpm-build-python3 %if_with docs BuildRequires(pre): rpm-macros-sphinx BuildRequires: python-module-sphinx_rtd_theme BuildRequires: python-module-objects.inv %endif %if_with check BuildRequires: /proc BuildRequires: python-module-appdirs BuildRequires: python-module-backports.os BuildRequires: python-module-coverage BuildRequires: python-module-mock BuildRequires: python-module-nose BuildRequires: python-module-pyftpdlib-tests BuildRequires: python-module-tox BuildRequires: python3-module-appdirs BuildRequires: python3-module-coverage BuildRequires: python3-module-mock BuildRequires: python3-module-nose BuildRequires: python3-module-pyftpdlib-tests BuildRequires: python3-module-pysendfile BuildRequires: python3-module-tox %endif %py_requires backports.os %description PyFilesystem is an abstraction layer for filesystems. In the same way that Python's file-like objects provide a common way of accessing files, PyFilesystem provides a common way of accessing entire filesystems. You can write platform-independent code to work with local files, that also works with any of the supported filesystems (zip, ftp, S3 etc.). %package -n python3-module-%oname Summary: Filesystem abstraction layer Group: Development/Python3 %description -n python3-module-%oname PyFilesystem is an abstraction layer for filesystems. In the same way that Python's file-like objects provide a common way of accessing files, PyFilesystem provides a common way of accessing entire filesystems. You can write platform-independent code to work with local files, that also works with any of the supported filesystems (zip, ftp, S3 etc.). %package pickles Summary: Pickles for %oname Group: Development/Python %description pickles PyFilesystem is an abstraction layer for filesystems. In the same way that Python's file-like objects provide a common way of accessing files, PyFilesystem provides a common way of accessing entire filesystems. You can write platform-independent code to work with local files, that also works with any of the supported filesystems (zip, ftp, S3 etc.). This package contains pickles for %oname. %package docs Summary: Documentation for %oname Group: Development/Documentation BuildArch: noarch %description docs PyFilesystem is an abstraction layer for filesystems. In the same way that Python's file-like objects provide a common way of accessing files, PyFilesystem provides a common way of accessing entire filesystems. You can write platform-independent code to work with local files, that also works with any of the supported filesystems (zip, ftp, S3 etc.). This package contains documentation for %oname. %prep %setup %patch -p1 rm -rf ../python3 cp -fR . ../python3 # no need for python3 grep -qs '^[[:space:]]*backports\.os[[:space:]]*$' ../python3/tox.ini || exit 1 sed -i '/backports\.os/d' ../python3/tox.ini grep -qs '^[[:space:]]*enum34[[:space:]]*$' ../python3/tox.ini || exit 1 sed -i '/enum34/d' ../python3/tox.ini %if_with docs %prepare_sphinx . ln -s ../objects.inv docs/ %endif %build %python_build pushd ../python3 %python3_build popd %install pushd ../python3 %python3_install popd %python_install %if_with docs export PYTHONPATH=%buildroot%python_sitelibdir %make -C docs pickle %make -C docs html cp -fR docs/build/pickle %buildroot%python_sitelibdir/%oname/ %endif %check #LC_ALL=en_US.UTF-8 python setup.py test export PIP_INDEX_URL=http://host.invalid./ export LC_ALL=C.UTF-8 export TOX_TESTENV_PASSENV='LC_ALL' # prepare %_bindir/tox --sitepackages -e py%{python_version_nodots python} --notest cp -f %_bindir/nosetests .tox/py%{python_version_nodots python}/bin/ sed -i "1c #!$(pwd)/.tox/py%{python_version_nodots python}/bin/python" \ .tox/py%{python_version_nodots python}/bin/nosetests %_bindir/tox --sitepackages -e py%{python_version_nodots python} -v -- -v pushd ../python3 # prepare %_bindir/tox.py3 --sitepackages -e py%{python_version_nodots python3} --notest cp -f %_bindir/nosetests3 .tox/py%{python_version_nodots python3}/bin/nosetests sed -i "1c #!$(pwd)/.tox/py%{python_version_nodots python3}/bin/python3" \ .tox/py%{python_version_nodots python3}/bin/nosetests %_bindir/tox.py3 --sitepackages -e py%{python_version_nodots python3} -v -- -v popd %files %doc LICENSE *.md %python_sitelibdir/fs/ %python_sitelibdir/fs-*.egg-info/ %if_with docs %exclude %python_sitelibdir/*/pickle %endif %if_with docs %files pickles %python_sitelibdir/*/pickle %files docs %doc docs/build/html/* %endif %files -n python3-module-%oname %doc LICENSE *.md %python3_sitelibdir/fs/ %python3_sitelibdir/fs-*.egg-info/ %changelog * Sat Jan 12 2019 Stanislav Levin <slev@altlinux.org> 2.2.1-alt1 - 2.1.0 -> 2.2.1. - Fixed build. * Mon Sep 10 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 2.1.0-alt1 - Updated to upstream version 2.1.0. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 2.0.17-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Fri Jan 12 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.17-alt1 - Updated to upstream release 2.0.17. * Thu Nov 02 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.13-alt1 - Updated to upstream release 2.0.13. * Thu Aug 03 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.5-alt1 - Updated to upstream release 2.0.5 * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.5.2-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) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 0.5.2-alt1.1 - NMU: Use buildreq for BR. * Sun Aug 16 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.5.2-alt1 - Version 0.5.2 * Mon Dec 22 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.5.0-alt1 - Initial build for Sisyphus |