From bf121c5c6c29113a633d7b50d08c8c788c60f859 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sep 09 2019 15:05:53 +0000 Subject: RPM now disallows comments in macro lines --- diff --git a/python-psycopg2.spec b/python-psycopg2.spec index a2f0853..8c0938d 100644 --- a/python-psycopg2.spec +++ b/python-psycopg2.spec @@ -91,7 +91,7 @@ Requires: python2-%srcname = %version-%release %description -n python2-%{srcname}-tests %desc This sub-package delivers set of tests for the adapter. -%endif # python2 +%endif %if %{with python2_debug} @@ -104,7 +104,7 @@ Requires: python2-%{srcname} = %{version}-%{release} %description -n python2-%{srcname}-debug This is a build of the psycopg PostgreSQL database adapter for the debug build of Python 2. -%endif # python2_debug +%endif %if %{with python3} @@ -123,7 +123,7 @@ Requires: python3-%srcname = %version-%release %description -n python3-%{srcname}-tests %desc This sub-package delivers set of tests for the adapter. -%endif # python3 +%endif %if %{with python3_debug} @@ -135,7 +135,7 @@ Requires: python3-psycopg2 = %{version}-%{release} %description -n python3-%{srcname}-debug This is a build of the psycopg PostgreSQL database adapter for the debug build of Python 3. -%endif # python3_debug +%endif %package doc @@ -200,7 +200,7 @@ PYTHONPATH=%buildroot%python2_sitearch %__python2 -c "$cmd" --verbose %if %{with python3} PYTHONPATH=%buildroot%python3_sitearch %__python3 -c "$cmd" --verbose %endif -%endif # check +%endif %install @@ -231,14 +231,14 @@ done %files -n python2-%{srcname}-tests %{python2_sitearch}/psycopg2/tests -%endif # python2 +%endif %if %{with python2_debug} %files -n python2-%{srcname}-debug %license LICENSE %{python2_sitearch}/psycopg2/_psycopg_d.so -%endif # python2_debug +%endif %if %{with python3} @@ -255,14 +255,14 @@ done %files -n python3-%{srcname}-tests %{python3_sitearch}/psycopg2/tests -%endif # python3 +%endif %if %{with python3_debug} %files -n python3-psycopg2-debug %license LICENSE %{python3_sitearch}/psycopg2/_psycopg.cpython-3?d*.so -%endif # python3_debug +%endif %files doc