Projects
Eulaceura:Factory
python-codespell
_service:obs_scm:python-codespell.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:python-codespell.spec of Package python-codespell
%global pypi_name codespell Name: python-%{pypi_name} Version: 2.3.0 Release: 1 Summary: Fix common misspellings in text files License: GPL v2 URL: https://github.com/codespell-project/codespell Source0: https://files.pythonhosted.org/packages/a0/a9/98353dfc7afcdf18cffd2dd3e959a25eaaf2728cf450caa59af89648a8e4/codespell-2.3.0.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-hatchling %description Fix common misspellings in text files. It’s designed primarily for checking misspelled words in source code, but it can be used with other files as well. It does not check for word membership in a complete dictionary, but instead looks for a set of common misspellings. Therefore it should catch errors like “adn”, but it will not catch “adnasdfasdf”. This also means it shouldn’t generate false-positives when you use a niche term it doesn’t know about. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %package help Summary: Fix common misspellings in text files. Provides: python3-codespell-doc %description help Fix common misspellings in text files. %description -n python3-%{pypi_name} Fix common misspellings in text files. It’s designed primarily for checking misspelled words in source code, but it can be used with other files as well. It does not check for word membership in a complete dictionary, but instead looks for a set of common misspellings. Therefore it should catch errors like “adn”, but it will not catch “adnasdfasdf”. This also means it shouldn’t generate false-positives when you use a niche term it doesn’t know about. %prep %autosetup -n %{pypi_name}-%{version} %build %pyproject_build %install %pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/doclist.lst . %files -n python3-%{pypi_name} %doc README.rst %{_bindir}/codespell %{python3_sitelib}/codespell* %files help %{_docdir}/* %changelog * Fri Jul 12 2024 Hann <hannannan@kylinos.cn> - 2.3.0-1 - Update package to version 2.3.0-1 - Fix ruff alerts (currently) not caught - Add spelling correction for specialiaze/specialiase and variants * Thu Nov 30 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 2.2.6-1 - Upgrade package to version 2.2.6 * Thu Sep 14 2023 luolu12 <luluoc@isoftstone.com> - 2.2.5-1 - Initial package. * Sun Jun 25 2023 luolu12 <luluoc@isoftstone.com> - 2.2.2-1 - Initial package.
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2