summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Denemark <Jiri.Denemark@gmail.com>2014-07-29 16:24:48 +0200
committerJiri Denemark <Jiri.Denemark@gmail.com>2014-07-29 16:24:48 +0200
commite715a1c86b775882da1c6798298f31eb2eeb2051 (patch)
treec8ff86ba56e449790e39a4fb2119f58f4055b45b
parentf37d0c4f2b01278b6c301477aac275a3e891fbca (diff)
downloadlibvirt-python-e715a1c86b775882da1c6798298f31eb2eeb2051.tar.gz
spec: Reorganize to satisfy buggy spectoolv1.2.7
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.
-rw-r--r--libvirt-python.spec.in14
1 files 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