From b75ee12e9608eb9f94253c9185ded6dfe8bfa0d4b936372e420e36cd7b0bbecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 21 Jan 2025 10:12:05 +0000 Subject: [PATCH] reduced the amount of rpmlint warnings OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=48 --- python-mysqlclient.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-mysqlclient.spec b/python-mysqlclient.spec index 4cc6c5d..cc19b60 100644 --- a/python-mysqlclient.spec +++ b/python-mysqlclient.spec @@ -35,6 +35,7 @@ URL: https://github.com/PyMySQL/mysqlclient-python Source: https://files.pythonhosted.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: libmysqlclient-devel BuildRequires: python-rpm-macros @@ -69,6 +70,7 @@ BuildRequires: python3-Sphinx BuildRequires: python3-attrs BuildRequires: python3-sphinx_rtd_theme Requires: python3-mysqlclient = %{version} +BuildArch: noarch %description -n python-mysqlclient-doc This package contains HTML docs for python-mysqlclient. @@ -76,6 +78,8 @@ This package contains HTML docs for python-mysqlclient. %prep %setup -q -n mysqlclient-%{version} %autopatch -p1 +# wrong end-of-line encoding +dos2unix doc/*.rst README.md MANIFEST.in HISTORY.rst %build %if !%{with test} @@ -115,13 +119,15 @@ exit $exit_code mkdir -p %{buildroot}%{_docdir}/python-mysqlclient/ mv build/sphinx/html %{buildroot}%{_docdir}/python-mysqlclient/ +%fdupes %{buildroot}%{_docdir}/python-mysqlclient %endif %if !%{with test} %files %{python_files} %license LICENSE %doc HISTORY.rst MANIFEST.in README.md -%{python_sitearch}/* +%{python_sitearch}/MySQLdb +%{python_sitearch}/mysqlclient-%{version}*-info %files -n python-mysqlclient-doc %license LICENSE