From: Jiri Denemark <Jiri.Denemark(a)gmail.com>
spectool parses a specfile and strips everything but a preamble.
However, if the first section is preceded by %if clause, it keeps it
there which then makes rpmbuild complain about unmatched %if. Let's make
the buggy tool happy by moving sections around so that the first one is
not in any conditional.
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
libvirt-python.spec.in | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index b51571e..8a21003 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -22,14 +22,6 @@ BuildRequires: python3-nose
BuildRequires: python3-lxml
%endif
-%if %{with_python3}
-%package -n libvirt-python3
-Summary: The libvirt virtualization API python3 binding
-Url:
http://libvirt.org
-License: LGPLv2+
-Group: Development/Libraries
-%endif
-
# Don't want provides for python shared objects
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
%{?filter_setup}
@@ -41,6 +33,12 @@ supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).
%if %{with_python3}
+%package -n libvirt-python3
+Summary: The libvirt virtualization API python3 binding
+Url:
http://libvirt.org
+License: LGPLv2+
+Group: Development/Libraries
+
%description -n libvirt-python3
The libvirt-python package contains a module that permits applications
written in the Python programming language to use the interface
--
2.0.2