|
|
|
@ -1,24 +1,18 @@
|
|
|
|
|
%global framework kconfig
|
|
|
|
|
%{!?docs: %global docs 1}
|
|
|
|
|
|
|
|
|
|
# uncomment to enable bootstrap mode
|
|
|
|
|
#global bootstrap 1
|
|
|
|
|
|
|
|
|
|
%if !0%{?bootstrap}
|
|
|
|
|
# FIXME/TODO: sip currently segfaults on s390x
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%ifnarch ppc64 s390x
|
|
|
|
|
%if 0%{?fedora} < 29
|
|
|
|
|
%global python_bindings 1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%{!?docs: %global docs 1}
|
|
|
|
|
#global python_bindings 1
|
|
|
|
|
%global tests 1
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?flatpak}
|
|
|
|
|
%global docs 0
|
|
|
|
|
%endif
|
|
|
|
|
%global tests 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# use ninja instead of make
|
|
|
|
|
%global ninja 1
|
|
|
|
@ -57,20 +51,15 @@ BuildRequires: cmake(Qt5Qml)
|
|
|
|
|
BuildRequires: cmake(Qt5Xml)
|
|
|
|
|
|
|
|
|
|
%if 0%{?python_bindings}
|
|
|
|
|
%if 0%{?fedora} && 0%{?fedora} < 27
|
|
|
|
|
BuildRequires: bundled(python2-clang) >= 4.0.1
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python2-clang
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: clang
|
|
|
|
|
BuildRequires: clang-devel
|
|
|
|
|
BuildRequires: python2-PyQt5-devel
|
|
|
|
|
BuildRequires: python3-clang
|
|
|
|
|
BuildRequires: python3-PyQt5-devel
|
|
|
|
|
%else
|
|
|
|
|
Obsoletes: python2-pykf5-%{framework} < %{version}-%{release}
|
|
|
|
|
Obsoletes: python3-pykf5-%{framework} < %{version}-%{release}
|
|
|
|
|
Obsoletes: pykf5-%{framework}-devel < %{version}-%{release}
|
|
|
|
|
%endif
|
|
|
|
|
Obsoletes: python2-pykf5-%{framework} < %{version}
|
|
|
|
|
|
|
|
|
|
%if 0%{?tests}
|
|
|
|
|
BuildRequires: dbus-x11
|
|
|
|
@ -124,12 +113,6 @@ BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?python_bindings}
|
|
|
|
|
%package -n python2-pykf5-%{framework}
|
|
|
|
|
Summary: Python2 bindings for %{framework}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
%description -n python2-pykf5-%{framework}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%package -n python3-pykf5-%{framework}
|
|
|
|
|
Summary: Python3 bindings for %{framework}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
@ -226,9 +209,6 @@ make test %{?_smp_mflags} -C redhat-linux-build ARGS="--output-on-failure --time
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?python_bindings}
|
|
|
|
|
%files -n python2-pykf5-%{framework}
|
|
|
|
|
%{python2_sitearch}/PyKF5/
|
|
|
|
|
|
|
|
|
|
%files -n python3-pykf5-%{framework}
|
|
|
|
|
%{python3_sitearch}/PyKF5/
|
|
|
|
|
|
|
|
|
|