mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-22 20:59:34 +03:00
spec: Reorganize to satisfy buggy spectool
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.
This commit is contained in:
@ -22,14 +22,6 @@ BuildRequires: python3-nose
|
|||||||
BuildRequires: python3-lxml
|
BuildRequires: python3-lxml
|
||||||
%endif
|
%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
|
# Don't want provides for python shared objects
|
||||||
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
|
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
|
||||||
%{?filter_setup}
|
%{?filter_setup}
|
||||||
@ -41,6 +33,12 @@ supplied by the libvirt library to use the virtualization capabilities
|
|||||||
of recent versions of Linux (and other OSes).
|
of recent versions of Linux (and other OSes).
|
||||||
|
|
||||||
%if %{with_python3}
|
%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
|
%description -n libvirt-python3
|
||||||
The libvirt-python package contains a module that permits applications
|
The libvirt-python package contains a module that permits applications
|
||||||
written in the Python programming language to use the interface
|
written in the Python programming language to use the interface
|
||||||
|
Reference in New Issue
Block a user