diff --git a/python-databases.spec b/python-databases.spec index 8222fc4..0237b8c 100644 --- a/python-databases.spec +++ b/python-databases.spec @@ -3,10 +3,6 @@ # When bootstrapping, break circular dependency on starlette in the tests. %bcond_with bootstrap -# We would need to package mkautodoc to build these; that should wait on -# https://github.com/tomchristie/mkautodoc/issues/30. -%bcond_with mkdocs - Name: python-databases Summary: Async database support for Python Version: 0.5.2 @@ -38,6 +34,8 @@ BuildRequires: python3dist(starlette) BuildRequires: python3dist(requests) %endif +Obsoletes: python-databases-doc < 0.5.2-4 + %global common_description %{expand: Databases gives you simple asyncio support for a range of databases. @@ -115,19 +113,6 @@ Summary: %{summary} %description -n python3-databases %{common_description} -%package doc -Summary: Documentation for %{name} - -%if %{with mkdocs} -# See scripts/publish. These BR’s cannot be automatically generated. -BuildRequires: python3dist(mkdocs) -# https://github.com/tomchristie/mkautodoc/issues/30 -BuildRequires: python3dist(mkautodoc) -%endif - -%description doc %{common_description} - - %prep %autosetup -n databases-%{version} # The following is equivalent to the former patch file @@ -144,12 +129,6 @@ BuildRequires: python3dist(mkautodoc) # e018bb630a92efd4609c2b60955e9c4678cd6c11/CONTRIBUTING.md), # so I raised the issue in the Gitter chat on 2021-04-26. sed -i -r '/data_files=\[\("", \["LICENSE.md"\]\)\],/d' setup.py -%if %{with mkdocs} -# Drop dependency on mkdocs-material. See -# https://bugzilla.redhat.com/show_bug.cgi?id=1960274#c3. The result doesn’t -# look as nice but is still usable. -sed -r -i 's/\bmaterial\b/mkdocs/' mkdocs.yml -%endif %generate_buildrequires @@ -158,9 +137,6 @@ sed -r -i 's/\bmaterial\b/mkdocs/' mkdocs.yml %build %pyproject_wheel -%if %{with mkdocs} -mkdocs build -%endif %install @@ -185,17 +161,8 @@ export TEST_DATABASE_URLS="sqlite:///testsuite" %files -n python3-databases -f %{pyproject_files} - - -%files doc -%license LICENSE.md %doc CHANGELOG.md %doc README.md -%if %{with mkdocs} -%doc site -%else -%doc docs -%endif %changelog