From 10e4a67128a5e9a605fbf295c81c49ed89f45bbe Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sep 30 2019 06:42:17 +0000 Subject: python, keygen: drop comments after %endif New RPMs (rpmbuild, rpmlint) print an ugly warning for this: warning: extra tokens at the end of %endif directive in line 106: %endif # with python2 warning: extra tokens at the end of %endif directive in line 140: %endif # with python3 warning: extra tokens at the end of %endif directive in line 160: %endif # with python3 warning: extra tokens at the end of %endif directive in line 206: %endif # with python3 warning: extra tokens at the end of %endif directive in line 213: %endif # with python2 Merges: #1029 --- diff --git a/keygen/copr-keygen.spec b/keygen/copr-keygen.spec index b5e0121..811a44c 100644 --- a/keygen/copr-keygen.spec +++ b/keygen/copr-keygen.spec @@ -75,7 +75,7 @@ and submit new builds and COPR will create yum repository from latests builds. This package contains document for copr-keygen service. -%endif # ?fedora +%endif %prep diff --git a/python/python-copr.spec b/python/python-copr.spec index 42620de..fcfb17d 100644 --- a/python/python-copr.spec +++ b/python/python-copr.spec @@ -103,7 +103,7 @@ Requires: python2-six >= 1.9.0 %{?python_provide:%python_provide python2-copr} %description -n python2-copr %_description -%endif # with python2 +%endif %if %{with python3} %package -n python3-copr @@ -137,7 +137,7 @@ and submit new builds and COPR will create yum repository from latest builds. This package contains python interface to access Copr service. Mostly useful for developers only. -%endif # with python3 +%endif %package -n python-copr-doc @@ -157,7 +157,7 @@ developers only. %if %{with python3} rm -rf %{py3dir} cp -a . %{py3dir} -%endif # with python3 +%endif %build %if %{with python3} @@ -203,14 +203,14 @@ cp -a docs/_build/html %{buildroot}%{_pkgdocdir}/ %license LICENSE %doc README.rst %{python3_sitelib}/* -%endif # with python3 +%endif %if %{with python2} %files -n python2-copr %license LICENSE %doc README.rst %{python2_sitelib}/* -%endif # with python2 +%endif %files -n python-copr-doc %license LICENSE