Drop python3 conditionals

This commit is contained in:
Kalev Lember 2019-08-20 09:42:20 +02:00
parent ffa07580b7
commit e83849cdeb

View File

@ -2,12 +2,6 @@
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1
%if 0%{?fedora} || 0%{?rhel} > 7
%global use_python3 1
%else
%global use_python3 0
%endif
%global apiver 1.0
Name: libpeas
@ -31,9 +25,7 @@ BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(pygobject-3.0)
%if %{use_python3}
BuildRequires: python3-devel
%endif
%description
libpeas is a convenience library making adding plug-ins support
@ -47,7 +39,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
libpeas-gtk is a convenience library making adding plug-ins support
to GTK+-based applications.
%if %{use_python3}
%package loader-python3
Summary: Python 3 loader for libpeas
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -59,7 +50,6 @@ Provides: libpeas-loader-python = %{version}-%{release}
%description loader-python3
This package contains the Python 3 loader that is needed to
run Python 3 plugins that use libpeas.
%endif
%package devel
Summary: Development files for libpeas
@ -101,10 +91,8 @@ that are needed to write applications that use libpeas.
%{_libdir}/libpeas-gtk-%{apiver}.so.*
%{_libdir}/girepository-1.0/PeasGtk-%{apiver}.typelib
%if %{use_python3}
%files loader-python3
%{_libdir}/libpeas-%{apiver}/loaders/libpython3loader.so
%endif
%files devel
%{_includedir}/libpeas-%{apiver}/