commit 31cbdbc50635e9d0e6185bb83389b412d8ce5a41
Author: Jakub Bogusz <[email protected]>
Date:   Thu Nov 18 18:21:09 2021 +0100

    - spec cleanups, updated dependencies

 python3-charset_normalizer.spec | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/python3-charset_normalizer.spec b/python3-charset_normalizer.spec
index 6298ae4..90fd315 100644
--- a/python3-charset_normalizer.spec
+++ b/python3-charset_normalizer.spec
@@ -1,3 +1,4 @@
+#
 # Conditional build:
 %bcond_without doc     # API documentation
 %bcond_without tests   # unit tests
@@ -10,23 +11,23 @@ Version:    2.0.7
 Release:       3
 License:       MIT
 Group:         Libraries/Python
-Source0:       
https://files.pythonhosted.org/packages/9f/c5/334c019f92c26e59637bb42bd14a190428874b2b2de75a355da394cf16c1/charset-normalizer-%{version}.tar.gz
+#Source0Download: https://pypi.org/simple/charset-normalizer/
+Source0:       
https://files.pythonhosted.org/packages/source/c/charset-normalizer/charset-normalizer-%{version}.tar.gz
 # Source0-md5: b28e4463613ff3911d5a2dc62b96233f
 URL:           https://github.com/ousret/charset_normalizer
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-recommonmark
+BuildRequires: python3-modules >= 1:3.5.0
+BuildRequires: python3-setuptools
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with tests}
 BuildRequires: python3-pytest-cov
 %endif
-# when using /usr/bin/env or other in-place substitutions
-BuildRequires: sed >= 4.0
 %if %{with doc}
+BuildRequires: python3-recommonmark
+BuildRequires: python3-sphinx_rtd_theme
 BuildRequires: sphinx-pdg-3
 %endif
-# replace with other requires if defined in setup.py
-Requires:      python3-modules >= 1:3.2
+Requires:      python3-modules >= 1:3.5.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -36,7 +37,7 @@ maintained alternative to Chardet.
 
 %description -l pl.UTF-8
 Pierwszy prawdziwy uniwersalny wykrywacz kodowania znaków. Otwarta,
-noweczesna i aktywnie rozwijana alternatywa dla Chardet.
+nowoczesna i aktywnie rozwijana alternatywa dla Chardet.
 
 %package apidocs
 Summary:       API documentation for Python %{module} module
@@ -52,20 +53,18 @@ Dokumentacja API modułu Pythona %{module}.
 %prep
 %setup -q -n charset-normalizer-%{version}
 
-# fix #!%{_bindir}/env python -> #!%{_bindir}/python:
-#%{__sed} -i -e '1s,^#!.*python3,#!%{__python3},' %{name}.py
-
 %build
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_cov.plugin" \
 %{__python3} -m pytest tests
 %endif
 
 %if %{with doc}
 %{__make} -C docs html \
        SPHINXBUILD=sphinx-build-3
-rm -rf docs/_build/html/_sources
 %endif
 
 %install
@@ -95,5 +94,5 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc docs/_build/html/*
+%doc docs/_build/html/{_static,*.html,*.js}
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-charset_normalizer.git/commitdiff/31cbdbc50635e9d0e6185bb83389b412d8ce5a41

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to