1
0
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:
Jiri Denemark
2014-07-29 16:24:48 +02:00
parent f37d0c4f2b
commit e715a1c86b

View File

@ -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