Package python3-module-jq: 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 _unpackaged_files_terminate_build 1 %define pypi_name jq %def_without check Name: python3-module-%pypi_name Version: 1.6.0 Release: alt2 Summary: Python bindings for jq License: BSD-2-Clause Group: Development/Python3 Url: https://pypi.org/project/jq/ Vcs: https://github.com/mwilliamson/jq.py Source0: %name-%version.tar Source1: %pyproject_deps_config_name %py3_provides %pypi_name %pyproject_runtimedeps_metadata BuildRequires(pre): rpm-build-pyproject %pyproject_builddeps_build BuildRequires: python3-module-cython BuildRequires: libjq-devel %if_with check %pyproject_builddeps_metadata %pyproject_builddeps_check %endif %description jq is a lightweight and flexible JSON processor. This project contains Python bindings for jq. %prep %setup sed -i '/sources=/ s/jq.c/jq.pyx/' setup.py sed -i '/link_args_deps/ s/"-lonig"//' setup.py %pyproject_deps_resync_build %pyproject_deps_resync_metadata %if_with check %pyproject_deps_resync_check_pipreqfile test-requirements.txt %endif # remove vendored libraries rm -fvr deps %build export JQPY_USE_SYSTEM_LIBS=1 %pyproject_build %install export JQPY_USE_SYSTEM_LIBS=1 %pyproject_install %check %pyproject_run_pytest -vra %files %doc *.rst LICENSE %python3_sitelibdir/%pypi_name.*.so %python3_sitelibdir/%{pyproject_distinfo %pypi_name}/ %changelog * Sun Jan 07 2024 Grigory Ustinov <grenka@altlinux.org> 1.6.0-alt2 - Fixed FTBFS, building without check. * Tue Sep 26 2023 Anton Zhukharev <ancieg@altlinux.org> 1.6.0-alt1 - Updated to 1.6.0. * Thu Aug 31 2023 Anton Zhukharev <ancieg@altlinux.org> 1.5.0-alt1 - Updated to 1.5.0. * Thu Mar 16 2023 Anton Zhukharev <ancieg@altlinux.org> 1.4.1-alt1 - 1.4.0 -> 1.4.0. * Thu Jan 12 2023 Anton Zhukharev <ancieg@altlinux.org> 1.4.0-alt2 - remove unused liboniguruma-devel build requirement * Thu Jan 12 2023 Anton Zhukharev <ancieg@altlinux.org> 1.4.0-alt1 - 1.4.0 - update whole package building - use modern pyproject macros - actualize Summary, License and Url tags * Fri Dec 13 2019 Andrey Bychkov <mrdrew@altlinux.org> 0.1.6-alt2 - build for python2 disabled * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.1.6-alt1.1.1 - (NMU) Rebuilt with python-3.6.4. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 0.1.6-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Tue Dec 19 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 0.1.6-alt1 - Updated to upstream version 0.1.6. * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.1.2-alt1.git20150118.1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 0.1.2-alt1.git20150118.1 - NMU: Use buildreq for BR. * Sun Jan 18 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.1.2-alt1.git20150118 - Initial build for Sisyphus |