From e83849cdeb546954cc71b5375c231732baa6ffa7 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 20 Aug 2019 09:42:20 +0200 Subject: [PATCH] Drop python3 conditionals --- libpeas.spec | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libpeas.spec b/libpeas.spec index 8e079d7..6e3e066 100644 --- a/libpeas.spec +++ b/libpeas.spec @@ -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}/