diff --git a/python-sphinxcontrib-htmlhelp.changes b/python-sphinxcontrib-htmlhelp.changes
index 1d3163a..856e822 100644
--- a/python-sphinxcontrib-htmlhelp.changes
+++ b/python-sphinxcontrib-htmlhelp.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Fri Jul 19 23:59:01 UTC 2024 - Matej Cepl
+
+- Clean up SPEC file.
+
-------------------------------------------------------------------
Sun Jan 14 10:47:30 UTC 2024 - Dirk Müller
diff --git a/python-sphinxcontrib-htmlhelp.rpmlintrc b/python-sphinxcontrib-htmlhelp.rpmlintrc
new file mode 100644
index 0000000..b2b55f2
--- /dev/null
+++ b/python-sphinxcontrib-htmlhelp.rpmlintrc
@@ -0,0 +1,2 @@
+addFilter("hidden-file-or-dir /usr/lib/python.*/sphinxcontrib/htmlhelp/locales/\.tx")
+addFilter("file-not-in-%lang /usr/lib/python.*/site-packages/sphinxcontrib/htmlhelp/locales/.*\.mo")
diff --git a/python-sphinxcontrib-htmlhelp.spec b/python-sphinxcontrib-htmlhelp.spec
index d17e81f..25218fd 100644
--- a/python-sphinxcontrib-htmlhelp.spec
+++ b/python-sphinxcontrib-htmlhelp.spec
@@ -1,5 +1,5 @@
#
-# spec file
+# spec file for package python-sphinxcontrib-htmlhelp
#
# Copyright (c) 2024 SUSE LLC
#
@@ -16,7 +16,6 @@
#
-%{?sle15_python_module_pythons}
%define skip_python2 1
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
@@ -26,14 +25,16 @@
%define psuffix %{nil}
%bcond_with test
%endif
+%{?sle15_python_module_pythons}
Name: python-sphinxcontrib-htmlhelp%{psuffix}
Version: 2.0.5
Release: 0
-Summary: Sphinx contrib extension to generate html help files
+Summary: Sphinx extension to generate HTML help files
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/sphinx-doc/sphinxcontrib-htmlhelp
-Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib_htmlhelp/sphinxcontrib_htmlhelp-%{version}.tar.gz
+Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib_htmlhelp/sphinxcontrib_htmlhelp-%{version}.tar.gz
+Source99: python-sphinxcontrib-htmlhelp.rpmlintrc
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
@@ -49,7 +50,7 @@ BuildRequires: %{python_module sphinxcontrib-htmlhelp >= %{version}}
%python_subpackages
%description
-Html help generating extension.
+sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.
%prep
%autosetup -p1 -n sphinxcontrib_htmlhelp-%{version}