Пакет python3-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 | %define _unpackaged_files_terminate_build 1 %define oname fs %def_with check %def_with docs Name: python3-module-%oname Version: 2.4.13 Release: alt1 Summary: Filesystem abstraction layer License: MIT Group: Development/Python3 Url: https://pypi.org/project/fs/ BuildArch: noarch # https://github.com/PyFilesystem/pyfilesystem2.git Source: %name-%version.tar # Fix tests due to girar environment # # girar uses non-default(1) hidepid mount option for /proc. # Python psutil doesn't expect an inaccessibility of non-user # components of /proc. The 'children' method recursively tries # to get the parent pid for all the processes using /proc. # Actually, ftp daemon has been stopped and then check for # children processes and tcp connections is performed. For now, # this assertion can be relaxed. Patch: fs-2.4.11-alt-fix-tests-due-to-girar-environment.patch BuildRequires(pre): rpm-build-python3 %if_with docs BuildRequires(pre): rpm-macros-sphinx3 BuildRequires: python3-module-sphinx BuildRequires: python3-module-sphinx_rtd_theme %endif %if_with check BuildRequires: /proc BuildRequires: python3-module-pytest BuildRequires: python3-module-appdirs BuildRequires: python3-module-pyftpdlib-tests %endif %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 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 %if_with docs %prepare_sphinx3 . ln -s ../objects.inv docs/ %endif %build %python3_build %if_with docs export PYTHONPATH=%buildroot%python3_sitelibdir %make SPHINXBUILD="sphinx-build-3" -C docs pickle %make SPHINXBUILD="sphinx-build-3" -C docs html %make SPHINXBUILD="sphinx-build-3" -C docs man %endif %install %python3_install %if_with docs mkdir -p %buildroot%python3_sitelibdir/%oname cp -fr docs/build/pickle %buildroot%python3_sitelibdir/%oname mkdir -p %buildroot%_man1dir cp -fr docs/build/man/*.1 %buildroot%_man1dir %endif %check py.test3 -vv %files %doc LICENSE *.md %python3_sitelibdir/fs/ %python3_sitelibdir/fs-*.egg-info/ %if_with docs %_man1dir/* %exclude %python3_sitelibdir/*/pickle %endif %if_with docs %files pickles %python3_sitelibdir/*/pickle %files docs %doc docs/build/html/* %endif %changelog * Thu Apr 01 2021 Grigory Ustinov <grenka@altlinux.org> 2.4.13-alt1 - Automatically updated to 2.4.13. * Fri Mar 26 2021 Grigory Ustinov <grenka@altlinux.org> 2.4.12-alt1 - Automatically updated to 2.4.12. * Tue Sep 08 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 2.4.11-alt2 - Removed backports.os dependency since it's not needed for python-3. * Thu Feb 27 2020 Grigory Ustinov <grenka@altlinux.org> 2.4.11-alt1 - Build new version. - Build without python2 support. - Build with man page. - Switch checking to pytest. * 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 |