]> git.pld-linux.org Git - packages/python-secretstorage.git/commitdiff
- disabled python2 here master
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Mar 2022 18:36:07 +0000 (19:36 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Mar 2022 18:36:07 +0000 (19:36 +0100)
python-secretstorage.spec

index 116ccfff2802c808eac8e2c0bb1058680d435e8a..0751aa04b8c4c3fb97cf518515b6875a1e3c0002 100644 (file)
@@ -3,11 +3,12 @@
 %bcond_without doc     # Sphinx documentation
 %bcond_with    tests   # unit tests [require dbus and some Secret Service daemon running]
 %bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_with    python3 # CPython 3.x module (built from python3-secretstorage.spec)
 
 Summary:       Python 2 bindings to Freedesktop.org Secret Service API
 Summary(pl.UTF-8):     Wiązania Pythona 2 do API Secret Service z Freedesktop.org
 Name:          python-secretstorage
+# keep 2.x here for python2 support
 Version:       2.3.1
 Release:       4
 License:       BSD
@@ -19,6 +20,9 @@ URL:          https://github.com/mitya57/secretstorage
 %if %{with python2}
 BuildRequires: python-modules >= 1:2.7
 BuildRequires: python-setuptools
+%if %{with doc}
+BuildRequires: python-Sphinx
+%endif
 %if %{with tests}
 BuildRequires: python-cryptography
 BuildRequires: python-dbus
@@ -27,9 +31,6 @@ BuildRequires:        python-dbus
 %if %{with python3}
 BuildRequires: python3-modules >= 1:3.3
 BuildRequires: python3-setuptools
-%if %{with doc}
-BuildRequires: python3-Sphinx
-%endif
 %if %{with tests}
 BuildRequires: python3-cryptography
 BuildRequires: python3-dbus
@@ -91,7 +92,7 @@ Dokumentacja API secretstorage.
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build %{?with_tests:test} %{?with_doc:build_sphinx}
 
 %if %{with tests}
 %{__python} -m unittest discover -s tests
@@ -99,7 +100,7 @@ Dokumentacja API secretstorage.
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test} %{?with_doc:build_sphinx}
+%py3_build %{?with_tests:test}
 
 %if %{with tests}
 %{__python3} -m unittest discover -s tests
@@ -141,5 +142,5 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc build-3/sphinx/html/{_static,*.html,*.js}
+%doc build-2/sphinx/html/{_static,*.html,*.js}
 %endif
This page took 0.047117 seconds and 4 git commands to generate.