SHA256
1
0
forked from pool/codespell
Files
codespell/codespell.spec

71 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package codespell
#
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
%define pythons python3
Name: codespell
Accepting request 1114899 from home:jubalh:branches:devel:tools - Update to 2.2.6: * Test to check our string escape word triggers on its own #2879 * feat(dictionary): add additiional additional entry #2882 * Add currebtly Misspelling #2881 * Add more typos for "approximate" #2884 * Add new typos for "load" #2885 * Add typos for "accommodate" #2886 * Add spelling correction for 'prodive' #2889 * Add annhilate Mispelling #2891 * Add alternative spelling corrections for "merget" #2890 * Add various typos #2887 * Add suffixes to existing typos #2895 * Add twine As Dev Dependency #2901 * frustrum->frustum #2899 * Add several spelling corrections #2900 * Add suffixes to existing typos, part 2 #2902 * Add iamges->images and cannel variants #2893 * Add all corrections in #2857 #2898 * Add suffixes to typos that start with "a" #2905 * Add suffixes to typos from "b" to "ch" #2906 * Add suffixes to typos from "cop" to "cy" #2911 * Add spelling corrections for upperace and lowerace. #2909 * Add suffixes to typos from "ci" to "con" #2907 * Add variations of 'check' #2904 * Add suffixes to typos that start with "de" #2913 * Add suffixes to typos from "di" to "dy" #2914 * Add suffixes to typos that start with "e" #2915 * Add some spelling corrections #2918 * Add suffixes to typos that start with "f" #2916 * Add typos for "general", "generate", "generic" #2919 OBS-URL: https://build.opensuse.org/request/show/1114899 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=27
2023-10-03 11:50:43 +00:00
Version: 2.2.6
Release: 0
Summary: Source code checker for common misspellings
License: GPL-2.0-only
Group: Development/Tools/Other
URL: https://github.com/codespell-project/codespell/
Source0: https://github.com/codespell-project/codespell/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
# PATCH-FIX-OPENSUSE - patch_version.patch
Patch0: patch_version.patch
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-chardet
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
BuildRequires: python3-pip
BuildRequires: python3-pytest
BuildRequires: python3-setuptools
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
BuildRequires: python3-wheel
Requires: python3-chardet
Requires: python3-setuptools
BuildArch: noarch
%description
codespell fixes common misspellings in text files. It primarily checks
misspelled words in source code, but it can be used with other files as well.
%prep
%autosetup -p1
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
# remove everything coverage-related
sed -i '/\-cov/ d' pyproject.toml
%build
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
%pyproject_wheel
%check
# disable command test; does not work in chroot
export PATH=$PATH:%{buildroot}%{_bindir}
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
%pytest -k 'not test_command'
%install
Accepting request 1073752 from home:sebix:branches:devel:tools - remove manpage as the build of the page no longer works it requires an executable file, which no longer is present - add patch_version.patch to add the version to the lib - remove help2man-run-needs-utf8-locale.patch - update to version 2.2.4: - BUG: Fix bug with toml triage (#2774) - update to version 2.2.3: - Misspelling of sufficient, sufficiently by @vikivivi in #2531 - insuffient->insufficient by @tkoyama010 in #2527 - add anayltic(s|al|ally) -> analytic(s|al|ally) by @robin-wayve in #2507 - Ignore flake8 rule W503 by @DimitriPapadopoulos in #2069 - Dead code found by vulture by @DimitriPapadopoulos in #2101 - Move falsy and accreting to more appropriate files by @janosh in #2511 - Add subtrate->substrate by @janosh in #2525 - Add "subtask" by @int-y1 in #2537 - Apply pyupgrade to project by @jdufresne in #2364 - {speherical,sperhical}->spherical by @janosh in #2540 - interepolation->interpolation by @tkoyama010 in #2512 - Ignore .mypy_cache folder by @kianmeng in #2361 - Fix uncaught exception on unreadable files by @DimitriPapadopoulos in #2196 - Add constrainst to dictionary by @jonathanberthias in #2546 - Add relative hidden directory and basic subdir tests by @peternewman in #2542 - Add trignometric->trigonometric by @janosh in #2549 - Add virtualied->virtualized, virtualised and friends by @peternewman in #2553 - Add several spelling corrections by @luzpaz in #2521 - Slightly simplify some boolean expressions by @jdufresne in #2556 - MAINT: Add CODEOWNERS by @larsoner in #2535 - positivie->positive by @janosh in #2558 - DOC/ENH: Clarify usage or configuration files and log about it by @sappelhoff in #2552 - Document required setuptools version by @DimitriPapadopoulos in #2560 OBS-URL: https://build.opensuse.org/request/show/1073752 OBS-URL: https://build.opensuse.org/package/show/devel:tools/codespell?expand=0&rev=20
2023-03-22 20:11:20 +00:00
%pyproject_install
%fdupes %{buildroot}%{python3_sitelib}
%files
%license COPYING
%doc README.rst
%{_bindir}/codespell
%{python3_sitelib}/codespell_lib
%{_prefix}/lib/python3.11/site-packages/codespell-2.2.5.dist-info/
%changelog