diff --git a/85.patch b/85.patch new file mode 100644 index 0000000..a1d6121 --- /dev/null +++ b/85.patch @@ -0,0 +1,15 @@ +From f53f9128939bf178f6dbd0f294d4cbfbdc1481dc Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Tue, 26 Sep 2023 14:08:21 -0400 +Subject: [PATCH] Remove executable bit from filesystem permissions of + README.md + +An executable readme makes no sense, of course. +--- + README.md | 0 + 1 file changed, 0 insertions(+), 0 deletions(-) + mode change 100755 => 100644 README.md + +diff --git a/README.md b/README.md +old mode 100755 +new mode 100644 diff --git a/python-textdistance.spec b/python-textdistance.spec index a1749fa..27feacb 100644 --- a/python-textdistance.spec +++ b/python-textdistance.spec @@ -11,6 +11,8 @@ Source: %{pypi_source textdistance} Patch: https://github.com/life4/textdistance/pull/75.patch # JaroWinkler boosting fix Patch: https://github.com/life4/textdistance/pull/76.patch +# Remove executable bit from filesystem permissions of README.md +Patch: https://github.com/life4/textdistance/pull/85.patch BuildArch: noarch @@ -58,11 +60,6 @@ rm -rf textdistance.egg-info %install %py3_install -# Fix bad executable permission -mkdir -p %{buildroot}%{_docdir}/python3-textdistance -cp -pr README.md %{buildroot}%{_docdir}/python3-textdistance -chmod 644 %{buildroot}%{_docdir}/python3-textdistance/README.md - %check # disable tests that need abydos @@ -75,7 +72,7 @@ k="${k-}${k+ and }not test_test_compare" %files -n python3-textdistance %license LICENSE -%{_docdir}/python3-textdistance +%doc README.md %{python3_sitelib}/textdistance %{python3_sitelib}/textdistance-%{version}-py%{python3_version}.egg-info