## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 24; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global short_name lsp-jsonrpc %global _description %{expand: A python server implementation of JSON RPC 2.0 protocol. This library has been pulled out of the python LSP server project (a community maintained fork of python-language-server). } Name: python-%{short_name} Version: 1.1.2 Release: %autorelease Summary: Python implementation of JSON RPC 2.0 protocol %global forgeurl https://github.com/python-lsp/python-lsp-jsonrpc %forgemeta # SPDX License: MIT URL: https://github.com/python-lsp/python-lsp-jsonrpc Source: %forgesource BuildArch: noarch BuildRequires: python3-devel BuildRequires: git-core # Everything in the “test” extra except pytest is a coverage analysis or # linting tool. # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters BuildRequires: %{py3_dist pytest} %description %_description %package -n python3-%{short_name} Summary: %{summary} %description -n python3-%{short_name} %_description %prep %forgeautosetup -S git # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -r -i 's/^addopts = "[^"]*"/# &/' pyproject.toml git add pyproject.toml git commit -m '[Fedora] Remove pytest options pertaining to coverage analysis' git tag v%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pylsp_jsonrpc %check # test_writer_bad_message asserts epoch values only valid in specific # timezones; pin TZ for determinism. export TZ=UTC %pyproject_check_import %pytest -v %files -n python3-%{short_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Thu Nov 05 2026 Filipe Rosset - 1.1.2-24 - run all tests * Wed Nov 04 2026 Filipe Rosset - 1.1.2-23 - run pyproject_check_import during check * Wed Nov 04 2026 Filipe Rosset - 1.1.2-22 - Update to 1.1.2 upstream release * Fri Jul 21 2023 Fedora Release Engineering - 1.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 14 2023 Python Maint - 1.0.0-8 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.0.0-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 07 2021 Mukundan Ragavan - 1.0.0-2 - Use pytest macro - address other spec sanity comments * Mon Jul 05 2021 Mukundan Ragavan - 1.0.0-1 - Initial package ## END: Generated by rpmautospec