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 | %define oname fs %def_without docs Name: python-module-%oname Version: 0.5.5a1 Release: alt1 Summary: Filesystem abstraction layer License: BSD Group: Development/Python Url: https://pypi.python.org/pypi/fs/ # https://github.com/PyFilesystem/pyfilesystem Source: %name-%version.tar Patch: %name-%version-%release.patch BuildArch: noarch #BuildPreReq: python-devel python-module-setuptools-tests #BuildPreReq: python-module-wx python-module-dexml #BuildPreReq: python-module-django # for test_expose in %%check: BuildPreReq: python-module-paramiko # for test_ftpfs in %%check: BuildPreReq: python-module-pyftpdlib # for FUSE tests (which are not run in hasher anyway, but some setup is done) BuildPreReq: libfuse # for archivefs tests in %%check: BuildPreReq: python-module-libarchive #BuildPreReq: python-module-sphinx-devel #BuildPreReq: python-module-sphinxcontrib-spelling # upstream commentary: # # fs/tests/test_s3fs: testcases for the S3FS module # # These tests are set up to be skipped by default, since they're very slow, # require a valid AWS account, and cost money. # # ALT: the availability of boto module determines whether they are run. # (Thanks to the annotations from https://github.com/smartfile/pyfilesystem .) BuildConflicts: python-module-boto %py_provides %oname BuildRequires(pre): rpm-macros-sphinx # Automatically added by buildreq on Thu Jan 28 2016 (-bi) # optimized out: python-base python-devel python-module-PyStemmer python-module-Pygments python-module-babel python-module-cffi python-module-cryptography python-module-cssselect python-module-docutils python-module-enum34 python-module-genshi python-module-jinja2 python-module-numpy python-module-psycopg2 python-module-pyasn1 python-module-pytest python-module-pytz python-module-setuptools python-module-snowballstemmer python-module-sphinx python-module-yaml python-modules python-modules-compiler python-modules-ctypes python-modules-email python-modules-encodings python-modules-unittest python-modules-wsgiref python3 python3-base python3-module-chardet python3-module-psycopg2 python3-module-pytest python3-module-setuptools python3-module-yaml python3-module-yieldfrom.http.client python3-module-yieldfrom.urllib3 BuildRequires: python-module-chardet python-module-django python-module-ecdsa python-module-html5lib python-module-ndg-httpsclient python-module-ntlm python-module-pycrypto python-module-setuptools-tests python-module-sphinxcontrib-spelling python-module-wx %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 tests Summary: Tests for %oname Group: Development/Python Requires: %name = %EVR %description tests 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 tests for %oname. %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_sphinx . ln -s ../objects.inv docs/ %endif %build %python_build_debug %install %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 # for filenames: export LC_ALL=en_US.utf8 # for print statements: export PYTHONIOENCODING=UTF-8 python setup.py test %files %doc AUTHORS *.txt %_bindir/* %python_sitelibdir/* %exclude %python_sitelibdir/*/tests %exclude %python_sitelibdir/*/*/*/test* %if_with docs %exclude %python_sitelibdir/*/pickle %endif %if_with docs %files pickles %python_sitelibdir/*/pickle %files docs %doc docs/_build/html/* %endif %files tests %python_sitelibdir/*/tests %python_sitelibdir/*/*/*/test* %changelog * Wed Jun 17 2020 Ivan Zakharyaschev <imz@altlinux.org> 0.5.5a1-alt1 - updated to the most fresh upsteram version (commit) of pyfilesystem1 (0.x.y) from https://github.com/PyFilesystem/pyfilesystem - with fixes and extensions from smartfile https://github.com/smartfile/pyfilesystem - run most tests * Wed Jun 17 2020 Ivan Zakharyaschev <imz@altlinux.org> 0.5.2-alt1.M80C.1 - (.spec) Made the package rebuildable without %%check. - (.spec) Changed the Gear packaging scheme to build from upstream Git commits. - (.spec) Fixed %%check BRs for c8.1, where there is no yieldfrom.requests. * 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 |